PageSourceSearch

https://dostartu.pl/app/js/app.099f14d4.js

js dostartu.pl collected 2026-10-03 21:37:30 UTC 1,399,987 bytes, 2 lines download raw bytes

1(function(t){function e(e){for(var n,o,r=e[0],l=e[1],c=e[2],u=0,p=[];u<r.length;u++)o=r[u],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&p.push(i[o][0]),i[o]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n]);d&&d(e);while(p.length)p.shift()();return s.push.apply(s,c||[]),a()}function a(){for(var t,e=0;e<s.length;e++){for(var a=s[e],n=!0,r=1;r<a.length;r++){var l=a[r];0!==i[l]&&(n=!1)}n&&(s.splice(e--,1),t=o(o.s=a[0]))}return t}var n={},i={app:0},s=[];function o(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=n,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(a,n,function(e){return t[e]}.bind(null,n));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/app/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var d=l;s.push([4,"chunk-vendors"]),a()})({0:function(t,e){},"0039":function(t,e,a){},"0255":function(t,e,a){t.exports=a.p+"img/[email protected]"},"034b":function(t,e,a){},"03bb":function(t,e,a){t.exports=a.p+"img/failed.e07f0e5c.svg"},"0412":function(t,e,a){},"041f":function(t,e,a){"use strict";a("e0d6")},"0429":function(t,e,a){t.exports=a.p+"img/error-exclamation-mark.b373f6c3.svg"},"0463":function(t,e,a){"use strict";var n=a("c1df"),i=a.n(n),s=a("4360");e["a"]={methods:{canRegister(t,e){return 2===t.status&&"registration"===t.formType&&e.playersAvailable},canRegisterOutside(t){return"insurance"===t.formType&&t.websitePl},canRegisterClassification(t,e){return 2===t.status&&e.playersLimit>0},canEditChild(t){return t.enabled&&!t.childActive},canPlayerPay(t,e){return 2===e.status&&!t.pay&&s["a"].getters.classificationsSettings[t.classification].isPay&&e.payOnline&&(s["a"].getters.limits[t.classification].playersAvailable&&"pay"===s["a"].getters.competitionsSettings[e.id].playersKindLimit||"register"===s["a"].getters.competitionsSettings[e.id].playersKindLimit)},canPlayerEdit(t,e){return 2===e.status&&!t.pay},canPlayerTransfer(t,e){return 2===e.status&&t.pay&&!!e.cycle},canPlayerTransferStart(t,e){return e.transferAllowed&&t.pay&&(!e.transferDeadline||i()().isSameOrBefore(e.transferDeadline))},canPlayerShop(t,e){return 2===e.status&&t.pay},canPlayerResign(t,e){return 2===e.status&&!t.pay},canPlayerDelete(t,e){return 2!==e.status&&!t.pay},canPlayerDeclareResult(t,e){return e.isRemote&&6!==e.status&&(s["a"].getters.classificationsSettings[t.classification].isPay&&t.pay||!s["a"].getters.classificationsSettings[t.classification].isPay)},canPlayerAskForResult(t,e){return![4,5].includes(e.status)&&i()().unix()-86400>e.startedTime&&t.pay},canDeclareResults(t,e){return t&&t.roles.includes("ROLE_USER")&&e.isRemote}}}},"05fe":function(t,e,a){t.exports=a.p+"img/sign-out-white.41e744d6.svg"},"0622":function(t,e,a){t.exports=a.p+"img/sign-in.0677177f.svg"},"065b":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return t.validationList.length?e("base-notification-local",{attrs:{negative:""},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.say.correct_form_fields)+": ")]},proxy:!0},{key:"content",fn:function(){return[t._v(" "+t._s(t.validationList)+". ")]},proxy:!0}],null,!1,2833925022)}):t._e()},i=[],s=a("5530"),o=(a("ddb0"),a("2f62")),r=a("7c9b"),l=a("2db4"),c={props:{validation:{type:Object,required:!0}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say"])),{},{validationList(){const t=Object.entries(this.validation).filter(([,t])=>null!==t).map(([t])=>Object(l["c"])(t));return Object.values(Object(r["c"])(this.say,t)).join(", ")}})},d=c,u=a("2877"),p=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=p.exports},"0701":function(t,e,a){var n=a("24fb"),i=a("6b76"),s=a("3295"),o=a("2308"),r=a("1783"),l=a("e1c5"),c=a("853e"),d=a("da38"),u=a("4972"),p=a("8c69"),m=a("98ec"),f=
1a("a56e"),h=a("2544"),b=a("43b4"),_=a("5e93"),v=a("32f5"),g=a("373e"),y=a("e11d"),C=a("634b"),w=a("9c89"),k=a("170e"),x=a("80b6"),O=a("1c9d"),A=a("82ba"),S=a("5fd4"),z=a("fe13");e=n(!1),e.i(i),e.i(s),e.i(o),e.i(r),e.i(l),e.i(c),e.i(d),e.i(u),e.i(p),e.i(m),e.i(f),e.i(h),e.i(b),e.i(_),e.i(v),e.i(g),e.i(y),e.i(C),e.i(w),e.i(k),e.i(x),e.i(O),e.i(A),e.i(S),e.i(z),e.push([t.i,"@charset \"UTF-8\"\n/* @import './footer.css'; */\n",""]),t.exports=e},"0751":function(t,e,a){},"0946":function(t,e,a){"use strict";a("fec0")},"0995":function(t,e,a){},"09ae":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgB7djBDYAgDEbh6iS6DgOzjm6CJt5IGqH8Jhrfd+HE9aWtGQAAwH9NJpZS2s5nsT57znm1gNnESinWK/IHwKW5QsG6eMLVqTVXSFkKqgPouBUSV2eUWy23Qm8qBdUCfOGN7IFKheaj8EamLgOlAWLkd6FaQ62GtjP5Xah2VxfqAwDAlx1rZzbyUzPUCgAAAABJRU5ErkJggg=="},"09f1":function(t,e,a){"use strict";a("4b89")},"0a48":function(t,e,a){},"0a64":function(t,e,a){},"0ac0":function(t,e,a){"use strict";a("e43c")},"0b2b":function(t,e,a){t.exports=a.p+"img/users.a43207be.svg"},"0b59":function(t,e,a){"use strict";a("9539")},"0ca1":function(t,e,a){},"0dfc":function(t,e,a){},"0e98":function(t,e,a){t.exports=a.p+"img/marker-ds.261ed7b1.svg"},"0ee6":function(t,e,a){"use strict";a("5baf")},"0f34":function(t,e,a){"use strict";a("1b6d")},"0f4d":function(t,e,a){"use strict";a("8239")},"0fbd":function(t,e,a){t.exports=a.p+"img/clock.e82eedce.svg"},1:function(t,e){},1047:function(t,e,a){"use strict";e["a"]={props:{value:{type:[String,Object,Array,Date,Number],default:null},label:{type:String,default:null},hint:{type:String,default:null},error:{type:String,default:null},icon:{type:String,default:null},badge:{type:String,default:null},disabled:{type:Boolean,default:!1},withoutErrorMessage:{type:Boolean,default:!1},isShort:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},accept:{type:String,default:"*"}},computed:{isInput(){return Boolean(this.hint||this.value)},placeholder(){return this.hint?this.hint:this.label},isInputValid(){return this.isInput&&!this.error}},watch:{value(){this.$emit("update:error",null)}}}},1061:function(t,e,a){},1084:function(t,e,a){},"10a3":function(t,e,a){},1138:function(t,e,a){t.exports=a.p+"img/user-plus.f2964971.svg"},1147:function(t,e,a){},"115d":function(t,e,a){"use strict";a("2fba")},"116a":function(t,e,a){var n=a("2dba"),i=a("0701");i=i.__esModule?i.default:i,"string"===typeof i&&(i=[[t.i,i,""]]);var s,o=0,r={injectType:"lazySingletonStyleTag",insert:"head",singleton:!0},l={};l.locals=i.locals||{},l.use=function(){return o++||(s=n(i,r)),l},l.unuse=function(){o>0&&!--o&&(s(),s=null)},t.exports=l},1274:function(t,e,a){"use strict";a("dc45")},"133d":function(t,e,a){},"13ca":function(t,e,a){"use strict";a("8f2f")},"141b":function(t,e,a){t.exports=a.p+"img/[email protected]"},1469:function(t,e,a){"use strict";a("b2d0")},"150b":function(t,e,a){t.exports=a.p+"img/[email protected]"},1628:function(t,e,a){"use strict";a("68da")},1683:function(t,e,a){"use strict";a("482c")},1698:function(t,e,a){},"170e":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"/* Minisite-results. */\n\n.table-list {\n    border-spacing: 0;\n    white-space: nowrap;\n    width: 100%;\n}\n\n.container-result {\n    margin: 24px -15px 0 -15px;\n    overflow: auto;\n}\n\n.table-list__header {\n    text-align: left;\n    padding: 12px 16px 12px 8px;\n}\n\n.table-list__data {\n    padding: 12px 16px 12px 8px;\n}\n\ntbody .table-list__row:nth-of-type(odd) {\n    background-color: #f6f8f8;\n    box-shadow: 0 1px 0 0 #e0e0e0, inset 0 1px 0 0 #e0e0e0;\n}\n\n.table-list__row:nth-of-type(odd) .table-list__data--first-cell {\n    background-color: #f6f8f8\n}\n\n.table-list__row:nth-of-type(odd) .table-list__data--second-cell {\n    background-color: #f6f8f8\n}\n\n.table-list__header--first-cell {\n    background-color: white;\n    position: -webkit-sticky;\n    position: sticky;\n    left: 0;\n    padding-left: 15px;\n    min-width: 48px;\n    box-sizing: border-box;\n}\n\n.table-list__header--second-cell {\n    background-color: white;\n    position: -webkit-sticky;\n    position: sticky;\n    left: 48px;\n    box-shadow: inset -1px 0 0 0 #e0e0e0;\n    min-width: 48px;\n    box-sizing: border-box;\n}\n\n.table-list__data--first-cell {\n    position: -webkit-sticky;\n    position: sticky;\n    left: 0;\n    background-color: white;\n    padding-left: 15px;\n    box-shadow: 0 1px 0 0 #e0e0e0, inset 0 1px 0 0 #e0e0e0;\n    min-width: 48px;\n    box-sizing: border-box;\n}\n\n.table-list__data--second-cell {\n    box-shadow: inset -1px 1px 0 0 #e0e0e0;\n    position: -webkit-sticky;\n    position: sticky;\n    left: 48px;\n    background-color: white;\n    min-width: 48px;\n    box-sizing: border-box;\n}\n\n.table-list__data--info-time {\n    background-color: #e1f5fe;\n    color: var(--color-slate);\n    border-radius: 10px;\n    padding: 4px 12px;\n    font-size: 12px;\n    display: inline;\n    line-height: 1;\n}\n\n.table-list__data--padding {\n    padding: 0;\n    text-align: right;\n}\n\n/* Minisite-list. */\n\n.table-list__data-pay {\n    box-shadow: inset 1px 1px 0 0 #e0e0e0;\n    position: -webkit-sticky;\n    position: sticky;\n    right: 0;\n    background-color: #f6f8f8;\n    padding-left: 20px;\n    padding-right: 20px;\n}\n\n.table-list__header-pay {\n    position: -webkit-sticky;\n    position: sticky;\n    right: 0;\n    background-color: white;\n    box-shadow: inset 1px 0px 0 0 #e0e0e0;\n}\n\n.table-list__row:nth-of-type(even) .table-list__data-pay {\n    background-color: white;\n}\n\n.table-list__data--right-border {\n    box-shadow: inset -1px 1px 0 0 #e0e0e0;\n}\n\n@media(min-width: 992px) {\n    .table-list__data-pay {\n        box-shadow: inset 0px 1px 0 0 #e0e0e0;\n    }\n    .table-list__header-pay {\n        box-shadow: none\n    }\n}",""]),t.exports=e}
1,1783:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'/*!\r\n * Datetimepicker for Bootstrap 3\r\n * version : 4.17.47\r\n * https://github.com/Eonasdan/bootstrap-datetimepicker/\r\n */\r\n.datepicker{font-family: inherit;font-size:14px; z-index: 1001;}\r\n.bootstrap-datetimepicker-widget{list-style:none};\r\n.bootstrap-datetimepicker-widget.dropdown-menu{display:block;margin:20px 20;padding:20px;width:19em}\r\n@media (min-width:576px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}\r\n@media (min-width:768px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}\r\n@media (min-width:992px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}\r\n.bootstrap-datetimepicker-widget.dropdown-menu:before,\r\n.bootstrap-datetimepicker-widget.dropdown-menu:after{content:\'\';display:inline-block;position:absolute}\r\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);top:-7px;left:7px}\r\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid white;top:-6px;left:8px}\r\n.bootstrap-datetimepicker-widget.dropdown-menu.top:before{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,0.2);bottom:-7px;left:6px}\r\n.bootstrap-datetimepicker-widget.dropdown-menu.top:after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;bottom:-6px;left:7px}\r\n.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:before{left:auto;right:6px}\r\n.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:after{left:auto;right:7px}\r\n.bootstrap-datetimepicker-widget .list-unstyled{margin:0}\r\n.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}\r\n.bootstrap-datetimepicker-widget a[data-action]:active{box-shadow:none}\r\n.bootstrap-datetimepicker-widget .timepicker-hour,\r\n.bootstrap-datetimepicker-widget .timepicker-minute,\r\n.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:bold;font-size:1.2em;margin:0}\r\n.bootstrap-datetimepicker-widget button[data-action]{padding:6px}\r\n.bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Increment Hours"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Increment Minutes"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Decrement Hours"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Decrement Minutes"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Show Hours"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Show Minutes"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Toggle AM/PM"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="clear"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Clear the picker"}\r\n.bootstrap-datetimepicker-widget .btn[data-action="today"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Set the date to today"}\r\n.bootstrap-datetimepicker-widget .picker-switch{text-align:center}\r\n.bootstrap-datetimepicker-widget .picker-switch::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Toggle Date and Time Screens"}\r\n.bootstrap-datetimepicker-widget .picker-switch td{padding:0;margin:0;height:auto;width:auto;line-height:inherit}\r\n.bootstrap-datetimepicker-widget .picker-switch td span,\r\n.bootstrap-datetimepicker-widget .picker-switch td i{line-height:2.5;height:2.5em;width:100%}\r\n.bootstrap-datetimepicker-widget table{width:100%;margin:0}\r\n.bootstrap-datetimepicker-widget table td,\r\n.bootstrap-datetimepicker-widget table th{text-align:center;border-radius:.25rem;padding:.5em}\r\n.bootstrap-datetimepicker-widget table th{height:20px;line-height:20px;width:20px}\r\n.bootstrap-datetimepicker-widget table th.picker-switch{width:220px}\r\n.bootstrap-datetimepicker-widget table th.disabled,\r\n.bootstrap-datetimepicker-widget table th.disabled:hover{background:none;color:#546e7a;cursor:not-allowed}\r\n.bootstrap-datetimepicker-widget table th.prev::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Previous Month"}\r\n.bootstrap-datetimepicker-widget table th.next::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Next Month"}\r\n.bootstrap-datetimepicker-widget table thead tr:first-child th{cursor:pointer}\r\n.bootstrap-datetimepicker-widget table thead tr:first-child th:hover{background:#f8f9fa}\r\n.bootstrap-datetimepicker-widget table td{height:54px;line-height:54px;width:54px}\r\n.bootstrap-datetimepicker-widget table td.cw{font-size:30px;height:20px;line-height:20px;color:#546e7a}\r\n.bootstrap-datetimepicker-widget table td.day{height:15px;line-height:15px;width:15px}\r\n.bootstrap-datetimepicker-widget table td.day:hover,\r\n.bootstrap-datetimepicker-widget table td.hour:hover,\r\n.bootstrap-datetimepicker-widget table td.minute:hover,\r\n.bootstrap-datetimepicker-widget table td.second:hover{background:#f8f9fa;cursor:pointer}\r\n.bootstrap-datetimepicker-widget table td.old,\r\n.bootstrap-datetimepicker-widget table td.new{color:#546e7a}\r\n.bootstrap-datetimepicker-widget table td.today{position:relative}\r\n.bootstrap-datetimepicker-widget table td.today:before{content:\'\';display:inline-block;border:solid transparent;border-width:0 0 7px 7px;border-bottom-color:#546e7a;border-top-color:rgba(0,0,0,0.2);position:absolute;bottom:4px;right:4px}\r\n.bootstrap-datetimepicker-widget table td.active,\r\n.bootstrap-datetimepicker-widget table td.active:hover{background-color:#546e7a;color:#f8f9fa;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}\r\n.bootstrap-datetimepicker-widget table td.active.today:before{border-bottom-color:#fff}\r\n.bootstrap-datetimepicker-widget table td.disabled,\r\n.bootstrap-datetimepicker-widget table td.disabled:hover{background:none;color:#546e7a;cursor:not-allowed}\r\n.bootstrap-datetimepicker-widget table td span,\r\n.bootstrap-datetimepicker-widget table td i{display:inline-block;width:54px;height:54px;line-height:54px;margin:4px 3px;cursor:pointer;border-radius:.25rem}\r\n.bootstrap-datetimepicker-widget table td span:hover,\r\n.bootstrap-datetimepicker-widget table td i:hover{background:#f8f9fa}\r\n.bootstrap-datetimepicker-widget table td span.active,\r\n.bootstrap-datetimepicker-widget table td i.active{background-color:#546e7a;color:#f8f9fa;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}\r\n.bootstrap-datetimepicker-widget table td span.old,\r\n.bootstrap-datetimepicker-widget table td i.old{color:#546e7a}\r\n.bootstrap-datetimepicker-widget table td span.disabled,\r\n.bootstrap-datetimepicker-widget table td i.disabled,\r\n.bootstrap-datetimepicker-widget table td span.disabled:hover,\r\n.bootstrap-datetimepicker-widget table td i.disabled:hover{background:none;color:#546e7a;cursor:not-allowed}\r\n.bootstrap-datetimepicker-widget.usetwentyfour td.hour{height:27px;line-height:27px}\r\n.bootstrap-datetimepicker-widget.wider{width:21em}\r\n.bootstrap-datetimepicker-widget .datepicker-decades .decade{line-height:1.8em !important}.input-group.date .input-group-addon{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}\r\n.bootstrap-datetimepicker-widget{   \r\n\tz-index: 1000;\r\n  display: none;\r\n  float: left;\r\n  min-width: 260px;\r\n  list-style: none;\r\n  background-color: #fff;\r\n  border: 1px solid #ccc;\r\n  border: 1px solid rgba(0, 0, 0, 0.15);\r\n  border-radius: 4px;\r\n  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\r\n  -webkit-background-clip: padding-box;\r\n  -moz-background-clip: padding;\r\n  background-clip: padding-box;\r\n  color: #333333;\r\n  font-size: 13px;\r\n  line-height: 1.42857143;\r\n}',""]),t.exports=e},"18ef":function(t,e,a){"use strict";a("6be5")},1986:function(t,e,a){t.exports=a.p+"img/icon-enter.c4c1d1cc.svg"},"198a":function(t,e,a){t.exports=a.p+"img/[email protected]"},"199a":function(t,e,a){},"19ad":function(t,e,a){"use strict";a("7b57")},"1ab1":function(t,e,a){"use strict";a("d877")},"1ad2":function(t,e,a){"use strict";a("8f9c")}
1,"1add":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div")},i=[],s=a("5530"),o=(a("ddb0"),a("14d9"),a("a779")),r=a.n(o),l=a("2f62"),c={props:{map:{type:Object,required:!0},classifications:{type:Array,required:!0},selectedClassificationId:{type:Number,default:null}},data(){return{tracks:{},highlightedTrackColor:"#37474f",disabledTrackColor:"#78909c"}},computed:Object(s["a"])(Object(s["a"])({},Object(l["c"])(["gpxFiles"])),{},{classificationsIds(){const t=[];for(const e of this.classifications)t.push(e.id);return t}}),watch:{selectedClassificationId(){this.setDisabledTracks();for(const t in this.tracks)this.tracks[t].classification===this.selectedClassificationId&&(this.highlightTrack(this.tracks[t]),this.centerOnTrack(this.tracks[t]))},gpxFiles:{deep:!0,handler(){this.clearGpxLayers(),this.readGpxFiles()}}},mounted(){this.readGpxFiles()},methods:{readGpxFiles(){this.tracks={};for(const t of this.classificationsIds)this.tracks[t]=new r.a.GPX(this.gpxFiles[t].url,{async:!0,gpx_options:{parseElements:["track","route"]},polyline_options:{color:this.disabledTrackColor,opacity:1,weight:5,lineCap:"round"},marker_options:{startIconUrl:null,endIconUrl:null,shadowUrl:null}}).on("loaded",e=>{e.target.classification=t,e.target.bringToBack(),this.selectedClassificationId===t&&(this.centerOnTrack(e.target),this.setDisabledTracks(),this.highlightTrack(e.target))}).on("click",t=>this.$emit("trackClick",t.target)).on("mouseover",t=>{this.setDisabledTracks(),this.highlightTrack(t.target)}).on("mouseout",()=>{const t=this.findSelectedTrack();this.setDisabledTracks(),this.highlightTrack(t)}).addTo(this.map)},centerOnTrack(t){this.map.fitBounds(t.getBounds())},setDisabledTracks(){for(const t in this.tracks)Object.prototype.hasOwnProperty.call(this.tracks,t)&&(this.tracks[t].bringToBack(),this.tracks[t].setStyle({color:this.disabledTrackColor}))},highlightTrack(t){void 0!==t&&(t.bringToFront(),t.setStyle({color:this.highlightedTrackColor}))},findSelectedTrack(){for(const t in this.tracks)if(Number.parseInt(t,10)===this.selectedClassificationId)return this.tracks[t]},clearGpxLayers(){this.map.eachLayer(t=>{t._gpx&&this.map.removeLayer(t)})}}},d=c,u=a("2877"),p=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=p.exports},"1b11":function(t,e,a){"use strict";a("ea63")},"1b67":function(t,e,a){var n={"./BaseButton.vue":"82ea","./BaseButtonDownload.vue":"7ea1","./BaseButtonDownloadGPS.vue":"4618","./BaseButtonGroup.vue":"f013","./BaseButtonInfo.vue":"8560","./BaseButtonLight.vue":"2374","./BaseButtonPrimary.vue":"2d45","./BaseFormInput.vue":"b74d","./BaseFormSection.vue":"dfd9","./BaseFormValidation.vue":"065b","./BaseInputArea.vue":"5936","./BaseInputAutocomplete.vue":"9245","./BaseInputCheckbox.vue":"e9e1","./BaseInputDate.vue":"d8d6","./BaseInputFile.vue":"fc4f","./BaseInputFilearea.vue":"9f8c","./BaseInputLocation.vue":"bd22","./BaseInputMask.vue":"f169","./BaseInputMultiple.vue":"dd6d","./BaseInputPassword.vue":"5f6d","./BaseInputRadio.vue":"8965","./BaseInputSelect.vue":"896a","./BaseInputSwitch.vue":"ebf4","./BaseInputText.vue":"aa77","./BaseInputTextWithIcon.vue":"1c45","./BaseInputTime.vue":"6583","./BaseItemClassification.vue":"d92d3","./BaseItemCompetition.vue":"d713","./BaseItemCompetitionIconPhoto.vue":"2962","./BaseItemCompetitionPromoted.vue":"5134","./BaseItemCompetitionSmall.vue":"e3d9","./BaseLinkInput.vue":"7f02","./BaseMap.vue":"3779","./BaseMapMarker.vue":"25db","./BaseMapTrack.vue":"1add","./BaseNotificationGlobal.vue":"1edc","./BaseNotificationLocal.vue":"cc14","./BasePhotoSport.vue":"cbf9","./BasePopup.vue":"8f07","./BaseTable.vue":"3de1","./BaseTooltip.vue":"7282","./PanelInputBaseRadio.vue":"b1a3"};function i(t){var e=s(t);return a(e)}function s(t){if(!a.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=s,t.exports=i,i.id="1b67"},"1b6d":function(t,e,a){},"1bf8":function(t,e,a){"use strict";a("639b")},"1c2d":function(t,e,a){"use strict";a("1698")},"1c45":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder"}
1,[e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.value}},[t._v(t._s(t.label))]),e("input",{staticClass:"input-field__input",class:{"input-field__input--padding-top":t.value},attrs:{type:"text",placeholder:t.label},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),e("i",{staticClass:"input-field__icon",class:[t.value&&t.badge?t.badge:t.icon],on:{click:function(e){return t.$emit("icon-click")}}})])},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l={mixins:[r["a"]],computed:Object(s["a"])({},Object(o["c"])(["say"]))},c=l,d=a("2877"),u=Object(d["a"])(c,n,i,!1,null,null,null);e["default"]=u.exports},"1c9d":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".list-header {\n    background-color: rgba(84, 110, 122, 0.1);\n    padding: 24px 0;\n    margin-bottom: 16px;\n}\n\n.list-header__select {\n    margin-top: 16px;\n    background-color: white;\n    height: 48px;\n}\n\n.list-header__select .vs__dropdown-toggle {\n    height: 100%;\n    padding-bottom: 0;\n    border: 1px solid var(--color-slate-two)\n}\n\n.list-header__select .vs__selected {\n    height: 100%;\n    margin-top: 0;\n}\n\n.list-header__search-input {\n    margin-top: 16px;\n}\n\n.list-header__select {\n    margin-top: 16px;\n}\n\n.list-header__switch {\n    border-radius: 24px;\n    border: solid 1px var(--color-slate-two);\n    background-color: var(--color-white);\n    padding: 4px;\n    width: 98px;\n    display: flex;\n    margin-top: 16px;\n}\n\n.list-header--right {\n    margin-left: auto;\n}\n\n.list-header__switch-btn {\n    padding: 7px 12px;\n    border-radius: 20px;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2);\n    background-color: var(--color-slate-two);\n    color: var(--color-white);\n    cursor: pointer;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n            user-select: none;\n    text-align: center;\n    transition: all 0.6s;\n}\n\n.list-header__switch-btn--right {\n    transform: translateX(33px);\n}\n\n@media (min-width: 992px) {\n    .list-header--right {\n        margin-left: 15px;\n        ;\n    }\n    .list-header__switch {\n        margin-top: 0;\n    }\n    .list-header {\n        margin-bottom: 32px\n    }\n    .list-header__select {\n        margin: 0 15px;\n    }\n    .list-header__search-input {\n        margin: 0 15px;\n    }\n    .list-header__select {\n        margin: 0 15px;\n    }\n}",""]),t.exports=e},"1ca6":function(t,e,a){t.exports=a.p+"img/podcast-banner-bg.72a8dc61.svg"},"1cf1":function(t,e,a){"use strict";a("751a")},"1d06":function(t,e,a){"use strict";a("51f2")},"1d2d":function(t,e,a){t.exports=a.p+"img/stoper-icon-white.6fa67e51.svg"},"1e85":function(t,e,a){t.exports=a.p+"img/shopping-trolley.a43207be.svg"},"1edc":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return t.notification?e("div",{class:t.classes},[t._v(" "+t._s(t.say[t.notification])+" ")]):t._e()},i=[],s=a("5530"),o=(a("ac1f"),a("2f62")),r=a("90d2"),l={computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["notification","say"])),{},{positive(){return this.notification.search("positive")>=0},negative(){return!this.positive},isPanel(){const t=this.$route.matched.find(t=>t.meta.layout);return"back"===t.meta.layout},classes(){return{notification:!0,"notification--positive":this.positive&&!this.isPanel,"notification--negative":this.negative&&!this.isPanel,"notification--positive-panel":this.positive&&this.isPanel,"notification--negative-panel":this.negative&&this.isPanel}}}),watch:{notification(){this.notification&&(this.scrollToTop(),setTimeout(this.CLEAR_NOTIFICATION,3e3))}},methods:Object(s["a"])(Object(s["a"])({},Object(o["d"])([r["c"]])),{},{scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}})},c=l,d=(a("8dcd"),a("2877")),u=Object(d["a"])(c,n,i,!1,null,"13332f8a",null);e["default"]=u.exports},"1eeb":function(t,e,a){"use strict";a("e5b0")},"1fca":function(t,e,a){t.exports=a.p+"img/stoper-icon.c9dc4a5a.svg"},2:function(t,e){},"201b7":function(t,e,a){t.exports=a.p+"img/checkmark-circle.a86082f5.svg"},"20a8":function(t,e,a){},"20fe":function(t,e,a){},"21c6":function(t,e,a){t.exports=a.p+"img/[email protected]"},"220b":function(t,e,a){t.exports=a.p+"img/arrow-down-icon.c32ab61b.svg"},"225f":function(t,e,a){"use strict";a("9920")},2308:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'.select2-container {\n  box-sizing: border-box;\n  display: inline-block;\n  margin: 0;\n  position: relative;\n  vertical-align: middle; }\n  .select2-container .select2-selection--single {\n    box-sizing: border-box;\n    cursor: pointer;\n    display: block;\n    height: 48px;\n    -moz-user-select: none;\n         user-select: none;\n    -webkit-user-select: none; }\n    .select2-container .select2-selection--single .select2-selection__rendered {\n      display: block;\n      padding-left: 9px;\n      padding-right: 20px;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap; }\n    .select2-container .select2-selection--single .select2-selection__clear {\n      position: relative; }\n  .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {\n    padding-right: 8px;\n    padding-left: 20px; }\n  .select2-container .select2-selection--multiple {\n    box-sizing: border-box;\n    cursor: pointer;\n    display: block;\n    min-height: 32px;\n    -moz-user-select: none;\n         user-select: none;\n    -webkit-user-select: none; }\n    .select2-container .select2-selection--multiple .select2-selection__rendered {\n      display: inline-block;\n      overflow: hidden;\n      padding-left: 8px;\n      text-overflow: ellipsis;\n      white-space: nowrap; }\n  .select2-container .select2-search--inline {\n    float: left; }\n    .select2-container .select2-search--inline .select2-search__field {\n      box-sizing: border-box;\n      border: none;\n      font-size: 100%;\n      margin-top: 5px;\n      padding: 0; }\n      .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {\n        -webkit-appearance: none; }\n\n.select2-dropdown {\n  background-color: white;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n  box-sizing: border-box;\n  display: block;\n  position: absolute;\n  left: -100000px;\n  width: 100%;\n  z-index: 1051; }\n\n.select2-results {\n  display: block; }\n\n.select2-results__options {\n  list-style: none;\n  margin: 0;\n  padding: 0; }\n\n.select2-results__option {\n  padding: 6px;\n  -moz-user-select: none;\n       user-select: none;\n  -webkit-user-select: none; }\n  .select2-results__option[aria-selected] {\n    cursor: pointer; }\n\n.select2-container--open .select2-dropdown {\n  left: 0; }\n\n.select2-container--open .select2-dropdown--above {\n  border-bottom: none;\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0; }\n\n.select2-container--open .select2-dropdown--below {\n  border-top: none;\n  border-top-left-radius: 0;\n  border-top-right-radius: 0; }\n\n.select2-search--dropdown {\n  display: block;\n  padding: 4px; }\n  .select2-search--dropdown .select2-search__field {\n    padding: 4px;\n    width: 100%;\n    box-sizing: border-box; }\n    .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {\n      -webkit-appearance: none; }\n  .select2-search--dropdown.select2-search--hide {\n    display: none; }\n\n.select2-close-mask {\n  border: 0;\n  margin: 0;\n  padding: 0;\n  display: block;\n  position: fixed;\n  left: 0;\n  top: 0;\n  min-height: 100%;\n  min-width: 100%;\n  height: auto;\n  width: auto;\n  opacity: 0;\n  z-index: 99;\n  background-color: #fff;\n  filter: alpha(opacity=0); }\n\n.select2-hidden-accessible {\n  border: 0 !important;\n  clip: rect(0 0 0 0) !important;\n  height: 1px !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  padding: 0 !important;\n  position: absolute !important;\n  width: 1px !important; }\n\n.select2-container--default .select2-selection--single {\n  /* background-color: #fff; */\n  border: 1px solid;\n  border-radius: 4px; }\n  .select2-container--default .select2-selection--single .select2-selection__rendered {\n    line-height: 48px; }\n  .select2-container--default .select2-selection--single .select2-selection__clear {\n    cursor: pointer;\n    float: right;\n    font-weight: bold; }\n  .select2-container--default .select2-selection--single .select2-selection__placeholder {\n    color: #999; }\n  .select2-container--default .select2-selection--single .select2-selection__arrow {\n    height: 46px;\n    position: absolute;\n    top: 1px;\n    right: 1px;\n    width: 30px; }\n    .select2-container--default .select2-selection--single .select2-selection__arrow b {\n      border-color: #888 transparent transparent transparent;\n      border-style: solid;\n      border-width: 5px 4px 0 4px;\n      height: 0;\n      left: 50%;\n      margin-left: -4px;\n      margin-top: -2px;\n      position: absolute;\n      top: 50%;\n      width: 0; }\n\n.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {\n  float: left; }\n\n.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {\n  left: 1px;\n  right: auto; }\n\n.select2-container--default.select2-container--disabled .select2-selection--single {\n  background-color: #eee;\n  cursor: default; }\n  .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {\n    display: none; }\n\n.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {\n  border-color: transparent transparent #888 transparent;\n  border-width: 0 4px 5px 4px; }\n\n.select2-container--default .select2-selection--multiple {\n  background-color: white;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n  cursor: text; }\n  .select2-container--default .select2-selection--multiple .select2-selection__rendered {\n    box-sizing: border-box;\n    list-style: none;\n    margin: 0;\n    padding: 0 5px;\n    width: 100%; }\n    .select2-container--default .select2-selection--multiple .select2-selection__rendered li {\
1n      list-style: none; }\n  .select2-container--default .select2-selection--multiple .select2-selection__placeholder {\n    color: #999;\n    margin-top: 5px;\n    float: left; }\n  .select2-container--default .select2-selection--multiple .select2-selection__clear {\n    cursor: pointer;\n    float: right;\n    font-weight: bold;\n    margin-top: 5px;\n    margin-right: 10px; }\n  .select2-container--default .select2-selection--multiple .select2-selection__choice {\n    background-color: #e4e4e4;\n    border: 1px solid #aaa;\n    border-radius: 4px;\n    cursor: default;\n    float: left;\n    margin-right: 5px;\n    margin-top: 5px;\n    padding: 0 5px; }\n  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {\n    color: #999;\n    cursor: pointer;\n    display: inline-block;\n    font-weight: bold;\n    margin-right: 2px; }\n    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {\n      color: #333; }\n\n.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {\n  float: right; }\n\n.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {\n  margin-left: 5px;\n  margin-right: auto; }\n\n.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {\n  margin-left: 2px;\n  margin-right: auto; }\n\n.select2-container--default.select2-container--focus .select2-selection--multiple {\n  border: solid black 1px;\n  outline: 0; }\n\n.select2-container--default.select2-container--disabled .select2-selection--multiple {\n  background-color: #eee;\n  cursor: default; }\n\n.select2-container--default.select2-container--disabled .select2-selection__choice__remove {\n  display: none; }\n\n.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {\n  border-top-left-radius: 0;\n  border-top-right-radius: 0; }\n\n.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0; }\n\n.select2-container--default .select2-search--dropdown .select2-search__field {\n  border: 1px solid #aaa; }\n\n.select2-container--default .select2-search--inline .select2-search__field {\n  background: transparent;\n  border: none;\n  outline: 0;\n  box-shadow: none;\n  -webkit-appearance: textfield; }\n\n.select2-container--default .select2-results > .select2-results__options {\n  max-height: 200px;\n  overflow-y: auto; }\n\n.select2-container--default .select2-results__option[role=group] {\n  padding: 0; }\n\n.select2-container--default .select2-results__option[aria-disabled=true] {\n  color: #999; }\n\n.select2-container--default .select2-results__option[aria-selected=true] {\n  background-color: #ddd; }\n\n.select2-container--default .select2-results__option .select2-results__option {\n  padding-left: 1em; }\n  .select2-container--default .select2-results__option .select2-results__option .select2-results__group {\n    padding-left: 0; }\n  .select2-container--default .select2-results__option .select2-results__option .select2-results__option {\n    margin-left: -1em;\n    padding-left: 2em; }\n    .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {\n      margin-left: -2em;\n      padding-left: 3em; }\n      .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {\n        margin-left: -3em;\n        padding-left: 4em; }\n        .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {\n          margin-left: -4em;\n          padding-left: 5em; }\n          .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {\n            margin-left: -5em;\n            padding-left: 6em; }\n\n.select2-container--default .select2-results__option--highlighted[aria-selected] {\n  background-color: #5897fb;\n  color: white; }\n\n.select2-container--default .select2-results__group {\n  cursor: default;\n  display: block;\n  padding: 6px; }\n\n.select2-container--classic .select2-selection--single {\n  background-color: #f7f7f7;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n  outline: 0;\n  background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#FFFFFFFF\', endColorstr=\'#FFEEEEEE\', GradientType=0); }\n  .select2-container--classic .select2-selection--single:focus {\n    border: 1px solid #5897fb; }\n  .select2-container--classic .select2-selection--single .select2-selection__rendered {\n    color: #444;\n    line-height: 28px; }\n  .select2-container--classic .select2-selection--single .select2-selection__clear {\n    cursor: pointer;\n    float: right;\n    font-weight: bold;\n    margin-right: 10px; }\n  .select2-container--classic .select2-selection--single .select2-selection__placeholder {\n    color: #999; }\n  .select2-container--classic .select2-selection--single .select2-selection__arrow {\n    background-color: #ddd;\n    border: none;\n    border-left: 1px solid #aaa;\n    border-top-right-radius: 4px;\n    border-bottom-right-radius: 4px;
1\n    height: 26px;\n    position: absolute;\n    top: 1px;\n    right: 1px;\n    width: 20px;\n    background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);\n    background-repeat: repeat-x;\n    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#FFEEEEEE\', endColorstr=\'#FFCCCCCC\', GradientType=0); }\n    .select2-container--classic .select2-selection--single .select2-selection__arrow b {\n      border-color: #888 transparent transparent transparent;\n      border-style: solid;\n      border-width: 5px 4px 0 4px;\n      height: 0;\n      left: 50%;\n      margin-left: -4px;\n      margin-top: -2px;\n      position: absolute;\n      top: 50%;\n      width: 0; }\n\n.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {\n  float: left; }\n\n.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {\n  border: none;\n  border-right: 1px solid #aaa;\n  border-radius: 0;\n  border-top-left-radius: 4px;\n  border-bottom-left-radius: 4px;\n  left: 1px;\n  right: auto; }\n\n.select2-container--classic.select2-container--open .select2-selection--single {\n  border: 1px solid #5897fb; }\n  .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {\n    background: transparent;\n    border: none; }\n    .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {\n      border-color: transparent transparent #888 transparent;\n      border-width: 0 4px 5px 4px; }\n\n.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {\n  border-top: none;\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n  background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#FFFFFFFF\', endColorstr=\'#FFEEEEEE\', GradientType=0); }\n\n.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {\n  border-bottom: none;\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0;\n  background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#FFEEEEEE\', endColorstr=\'#FFFFFFFF\', GradientType=0); }\n\n.select2-container--classic .select2-selection--multiple {\n  background-color: white;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n  cursor: text;\n  outline: 0; }\n  .select2-container--classic .select2-selection--multiple:focus {\n    border: 1px solid #5897fb; }\n  .select2-container--classic .select2-selection--multiple .select2-selection__rendered {\n    list-style: none;\n    margin: 0;\n    padding: 0 5px; }\n  .select2-container--classic .select2-selection--multiple .select2-selection__clear {\n    display: none; }\n  .select2-container--classic .select2-selection--multiple .select2-selection__choice {\n    background-color: #e4e4e4;\n    border: 1px solid #aaa;\n    border-radius: 4px;\n    cursor: default;\n    float: left;\n    margin-right: 5px;\n    margin-top: 5px;\n    padding: 0 5px; }\n  .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {\n    color: #888;\n    cursor: pointer;\n    display: inline-block;\n    font-weight: bold;\n    margin-right: 2px; }\n    .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {\n      color: #555; }\n\n.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {\n  float: right; }\n\n.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {\n  margin-left: 5px;\n  margin-right: auto; }\n\n.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {\n  margin-left: 2px;\n  margin-right: auto; }\n\n.select2-container--classic.select2-container--open .select2-selection--multiple {\n  border: 1px solid #5897fb; }\n\n.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {\n  border-top: none;\n  border-top-left-radius: 0;\n  border-top-right-radius: 0; }\n\n.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {\n  border-bottom: none;\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0; }\n\n.select2-container--classic .select2-search--dropdown .select2-search__field {\n  border: 1px solid #aaa;\n  outline: 0; }\n\n.select2-container--classic .select2-search--inline .select2-search__field {\n  outline: 0;\n  box-shadow: none; }\n\n.select2-container--classic .select2-dropdown {\n  background-color: white;\n  border: 1px solid transparent; }\n\n.select2-container--classic .select2-dropdown--above {\n  border-bottom: none; }\n\n.select2-container--classic .select2-dropdown--below {\n  border-top: none; }\n\n.select2-container--classic .select2-results > .select2-results__options {\n  max-height: 200px;\n  overflow-y: auto; }\n\n.select2-container--classic .select2-results__option[role=group] {\n  padding: 0; }\n\n.select2-container--classic .select2-results__option[aria-disabled=true] {\n  color: grey; }\n\n.select2-container--classic .select2-results__option--highlighted[aria-selected] {\n  background-color: #3875d7;\n  color: white; }\n\n.select2-container--classic .select2-results__group {\n  cursor: default;\n  display: block;\n  padding: 6px; }\n\n.select2-container--classic.select2-container--open .select2-dropdown {\n  border-color: #5897fb; }\n',""]),t.exports=e},2337:function(t,e,a){},23666:function(t,e,a){"use strict";a("7cb8")},2374:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a",{staticClass:"abtn abtn--6",on:{click:function(e){return t.$emit("click")}}},[t._t("default")],2)},i=[],s=a("2877"),o={},r=Object(s["a"])(o,n,i,!1,null,null,null);e["default"]=r.exports},"23a1":function(t,e,a){},"23fe":function(t,e,a){},"24af":function(t,e,a){"use strict";a("6cb4")},"24bf":function(t,e,a){"use strict";a("df5f")},2544:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".login-section {\n    padding: 32px 16px 16px 16px;\n    margin-top: 16px;\n}\n\n.login__buttons-box {\n    margin-top: 24px;\n}\n\n.login__btn-secondary {\n    margin-top: 16px;\n}\n\n.login__btn-cancel {\n    margin-top: 16px;\n}\n\n.register__buttons-box {\n    margin-top: 24px;\n}\n\n.login__content {\n    margin-top: 16px;\n}\n\n.reset-password__email-input {\n    padding: 32px 16px 16px 16px;\n    margin-top: 16px\n}\n\n.reset-password__box-buttons {\n    margin-top: 24px;\n}\n\n.reset-password__hint {\n    margin-bottom: 16px;\n    line-height: 1.71;\n}\n\n.box-buttons__cancel {\n    margin-top: 16px;\n}\n\n.reset-password {\n    margin-top: 16px;\n}\n\n.reset-password__confirmation {\n    padding: 32px 16px 16px 16px;\n    margin-top: 16px;\n}\n\n.confirmation__message {\n    margin-top: 16px;\n    line-height: 1.43;\n}\n\n.confirmation__return-button {\n    flex-wrap: nowrap;\n    margin-top: 16px;\n    background-color: white;\n    border: none;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1), 0 0 2px 0 rgba(55, 71, 79, 0.2);\n}\n\n.register-without-account {\n    margin-top: 16px;\n    line-height: 1.43;\n    padding-top: 16px;\n    border-top: 1px solid rgba(84, 110, 122, 0.1);\n}\n\n.register-without-account__btn {\n    margin-top: 16px;\n}\n\n.login-section__password-hint {\n    margin-top: 16px;\n    line-height: 1.71;\n}\n\n@media (min-width: 992px) {\n\n    .login-section__password-hint {\n        margin-left: 30px;\n        margin-right: auto;\n        margin-top: 0;\n    }\n\n    .register-without-account__btn {\n        margin-top: 0;\n        margin-left: 30px;\n    }\n    .register-without-account {\n        margin-top: 48px;\n        padding-top: 48px;\n        border-top: 1px solid rgba(84, 110, 122, 0.1);\n        justify-content: flex-end;\n        text-align: end;\n    }\n    .confirmation__return-button {\n        margin-right: 15px;\n        margin-top: 85px;\n    }\n    .reset-password__confirmation {\n        padding: 24px 32px 32px 32px;\n        margin-top: 0;\n    }\n    .reset-password__hint {\n        margin-bottom: 0;\n    }\n    .reset-password {\n        margin-top: 95px;\n    }\n    .reset-password__email-input {\n        padding: 48px 98px;\n        margin-top: 0;\n        flex-direction: row-reverse;\n        justify-content: flex-end\n    }\n    .reset-password__hint {\n        margin-top: 0;\n        margin-left: 30px\n    }\n    .box-buttons__cancel {\n        margin-top: 0;\n    }\n    .reset-password__box-buttons {\n        margin-top: 48px;\n        flex-direction: row-reverse;\n        margin-right: -15px;\n    }\n    .box-buttons__reset-button {\n        margin: 0 15px;\n    }\n    .login__buttons-box {\n        justify-content: left;\n        flex-direction: row-reverse;\n        margin-top: 48px;\n    }\n    .login__btn-primary {\n        margin-left: 30px;\n    }\n    .login__btn-secondary {\n        margin: 0 0 0 30px;\n    }\n    .login__btn-cancel {\n        margin-top: 0;\n        max-width: 133px;\n    }\n    .login-section {\n        padding: 64px 0 64px 0;\n        margin: 0;\n    }\n    .login-section--reset {\n        padding: 48px 0 48px 98px;\n    }\n    .login-section__inputs {\n        margin-left: 98px;\n    }\n    .login__content {\n        margin-top: 48px;\n    }\n    .register__buttons-box {\n        flex-direction: row-reverse;\n        margin-top: 48px;\n    }\n}\n",""]),t.exports=e},"25db":function(t,e,a){"use strict";a.r(e);a("ddb0");var n=function(){var t=this,e=t._self._c;return e("l-marker",{attrs:{draggable:!t.readOnly,"lat-lng":[t.lat,t.lng]},on:{ready:function(e){return t.hookEvents(e)},click:function(e){return t.$emit("click")}}},[e("l-icon",{attrs:{"class-name":Object.entries(t.iconClasses).filter(([t,e])=>e).map(([t])=>t).join(" "),"icon-anchor":[20,41]}},[t._t("icon"),e("div",{class:t.pointerClasses})],2),t.readOnly?t._e():e("l-popup",{staticClass:"marker__popup",attrs:{options:{closeButton:!1,offset:t.pointAnchorPopup}}},[t._t("popup")],2)],1)},i=[],s=a("5530"),o=(a("14d9"),a("4e2b")),r=a("fbba"),l=a("f60f"),c=a("e11e"),d=a.n(c),u=a("2f62"),p=a("f121"),m={components:{LMarker:o["a"],LIcon:r["a"],LPopup:l["a"]},props:{lat:{type:Number,required:!0},lng:{type:Number,required:!0},point:{type:Object,required:!0},selectedClassificationId:{type:Number,default:null},readOnly:{type:Boolean,default:!1}},data(){return{pointAnchorPopup:d.a.point(10,-40),types:p["s"]}},computed:Object(s["a"])(Object(s["a"])({},Object(u["c"])(["trackpoints"])),{},{isSelectedClassificationMarker(){const t=[];for(const a of this.trackpointsIds)t.push(this.trackpoints[a]);const e=new Set;for(const a of t)for(const t of a.classifications)e.add(t);return e.has(this.selectedClassificationId)}
1,trackpointsIds(){return Object.values(this.point.trackpoints)},isMeta(){var t;const e=[];for(const a of this.trackpointsIds)e.push(this.trackpoints[a].type);return e.includes(this.types.meta)&&this.trackpoints[null===(t=this.point.trackpoints)||void 0===t?void 0:t.MET].classifications.includes(this.selectedClassificationId)},iconClasses(){return{marker:!0,"marker--with-icons":!0,"marker--disabled":!this.isSelectedClassificationMarker,"marker--red":this.isMeta&&this.isSelectedClassificationMarker}},pointerClasses(){return{marker__pointer:!0,"marker__pointer--disabled":!this.isSelectedClassificationMarker,"marker__pointer--red":this.isMeta&&this.isSelectedClassificationMarker}}}),methods:{hookEvents(t){t.on("dragend",()=>this.$emit("change:latlng",t.getLatLng()))}}},f=m,h=(a("4572"),a("2877")),b=Object(h["a"])(f,n,i,!1,null,null,null);e["default"]=b.exports},2627:function(t,e,a){},2674:function(t,e,a){"use strict";a("3314")},"26d0":function(t,e,a){},"26d4":function(t,e,a){t.exports=a.p+"fonts/fa-brands-400.cff6d3b9.eot"},"26ff":function(t,e,a){"use strict";a("7793")},"278c":function(t,e,a){},"293f":function(t,e,a){},2949:function(t,e,a){"use strict";a("b25a")},"294c":function(t,e,a){t.exports=a.p+"img/[email protected]"},"294d":function(t,e,a){t.exports=a.p+"img/hamburger-icon-white.659ebc26.svg"},2962:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cbx--photo--container"},[e("base-photo-sport",{attrs:{type:t.competition.type,colour:t.competitionLayout.colourDefault}},[e("div",{staticClass:"cbx--photo"},[e("h4",{staticClass:"mab16"},[e("router-link",{attrs:{to:{name:"minisite-landing",params:t.competition,alias:!0}}},[t._v(" "+t._s(t._f("asType")(t.competition.type))+" ")])],1)])])],1)},i=[],s={props:{competition:{type:Object,required:!0},competitionLayout:{type:Object,required:!0}}},o=s,r=(a("f426"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"46eca3cc",null);e["default"]=l.exports},2988:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgB7djBDYAgDEbh6iS6DgOzjm6CJt5IGqH8Jhrfd+HE9aWtGQAAwH9NJpZS2s5nsT57znm1gNnESinWK/IHwKW5QsG6eMLVqTVXSFkKqgPouBUSV2eUWy23Qm8qBdUCfOGN7IFKheaj8EamLgOlAWLkd6FaQ62GtjP5Xah2VxfqAwDAlx1rZzbyUzPUCgAAAABJRU5ErkJggg=="},"29dc":function(t,e,a){"use strict";a("ddd9")},"2a08":function(t,e,a){},"2a0f":function(t,e,a){},"2b28":function(t,e,a){t.exports=a.p+"img/close-white-icon.4f4fc605.svg"},"2b9e":function(t,e,a){"use strict";a("c4e2")},"2c16":function(t,e,a){},"2c8b":function(t,e,a){},"2ccd":function(t,e,a){"use strict";a("b28d")},"2d27":function(t,e,a){},"2d45":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a",{staticClass:"abtn abtn--4 tupc w100",on:{click:function(e){return t.$emit("click")}}},[t._t("default")],2)},i=[],s=a("2877"),o={},r=Object(s["a"])(o,n,i,!1,null,null,null);e["default"]=r.exports},"2db4":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return o}));a("ac1f"),a("5319");function n(t){const e=parseInt(t.substr(1,2),16),a=parseInt(t.substr(3,2),16),n=parseInt(t.substr(5,2),16);return[e,a,n]}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function s(t){return t.split(/(?=[A-Z])/).join("_").toLowerCase()}function o(t){const e=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#/%?=~|!:,.;]*[-A-Z0-9+&@#/%=~|])/gim,a=/(^|[^/])(www.[\S]+(\b|$))/gim,n=/(([a-zA-Z0-9-_.])+@[a-zA-Z_]+?(.[a-zA-Z]{2,6})+)/gim;return t.replace(e,'<a href="$1" target="_blank">$1</a>').replace(a,'$1<a href="http://$2" target="_blank">$2</a>').replace(n,'<a href="mailto:$1">$1</a>')}},"2e37":function(t,e,a){"use strict";a("545e")},"2f7e":function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return r})),a.d(e,"b",(function(){return l}));a("0481"),a("4069"),a("ddb0");function n(t,e){return t.splice(t.indexOf(e),1),t}function i(t,e){return t.filter(t=>e.includes(t))}function s(t,e){return i(t,e).length>0}function o(t){const e=null!==t&&void 0!==t?t:[];return Array.isArray(e)?e:[e]}function r(t,e){return t.map(t=>t[e])}function l(t,e,a){return[...t.slice(0,e),...a,...t.slice(e)]}},"2fba":function(t,e,a){},3:function(t,e){},"30aa":function(t,e,a){"use strict";a("9cbb")},"320b":function(t,e,a){t.exports=a.p+"img/novelty-shop.453c05f1.png"},3295:function(t,e,a){var n=a("24fb"),i=a("1de5"),s=a("26d4"),o=a("7630"),r=a("8621"),l=a("cdc5"),c=a("ecf4"),d=a("b835"),u=a("e6ca"),p=a("c2bf"),m=a("8757"),f=a("347e"),h=a("ac48"),b=a("79d5"),_=a("4626"),v=a("32e7"),g=a("f074");e=n(!1);var y=i(s),C=i(s,{hash:"?#iefix"}),w=i(o),k=i(r),x=i(l),O=i(c,{hash:"#fontawesome"}),A=i(d),S=i(d,{hash:"?#iefix"}),z=i(u),j=i(p),I=i(m),P=i(f,{hash:"#fontawesome"}),E=i(h),T=i(h,{hash:"?#iefix"}),N=i(b),R=i(_),L=i(v),M=i(g,{hash:"#fontawesome"});e.push([t.i,'/*!\n * Font Awesome Free 5.12.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\n\n.fa,\n.fas,\n.far,\n.fal,\n.fad,\n.fab {\n    -moz-osx-font-smoothing: grayscale;\n    -webkit-font-smoothing: antialiased;\n    display: inline-block;\n    font-style: normal;\n    font-variant: normal;\n    text-rendering: auto;\n    line-height: 1;\n}\n\n.fa-lg {\n    font-size: 1.33333em;\n    line-height: 0.75em;\n    vertical-align: -.0667em;\n}\n\n.fa-xs {\n    font-size: .75em;\n}\n\n.fa-sm {\n    font-size: .875em;\n}\n\n.fa-1x {\n    font-size: 1em;\n}\n\n.fa-2x {\n    font-size: 2em;\n}\n\n.fa-3x {\n    font-size: 3em;\n}\n\n.fa-4x {\n    font-size: 4em;\n}\n\n.fa-5x {\n    font-size: 5em;
1\n}\n\n.fa-6x {\n    font-size: 6em;\n}\n\n.fa-7x {\n    font-size: 7em;\n}\n\n.fa-8x {\n    font-size: 8em;\n}\n\n.fa-9x {\n    font-size: 9em;\n}\n\n.fa-10x {\n    font-size: 10em;\n}\n\n.fa-fw {\n    text-align: center;\n    width: 1.25em;\n}\n\n.fa-ul {\n    list-style-type: none;\n    margin-left: 2.5em;\n    padding-left: 0;\n}\n\n.fa-ul>li {\n    position: relative;\n}\n\n.fa-li {\n    left: -2em;\n    position: absolute;\n    text-align: center;\n    width: 2em;\n    line-height: inherit;\n}\n\n.fa-border {\n    border: solid 0.08em #eee;\n    border-radius: .1em;\n    padding: .2em .25em .15em;\n}\n\n.fa-pull-left {\n    float: left;\n}\n\n.fa-pull-right {\n    float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n    margin-right: .3em;\n}\n\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n    margin-left: .3em;\n}\n\n.fa-spin {\n    animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n    animation: fa-spin 1s infinite steps(8);\n}\n\n@keyframes fa-spin {\n    0% {\n        transform: rotate(0deg);\n    }\n    100% {\n        transform: rotate(360deg);\n    }\n}\n\n.fa-rotate-90 {\n    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n    transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n    transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n    transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n    transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n    transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n    transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n    filter: none;\n}\n\n.fa-stack {\n    display: inline-block;\n    height: 2em;\n    line-height: 2em;\n    position: relative;\n    vertical-align: middle;\n    width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n    left: 0;\n    position: absolute;\n    text-align: center;\n    width: 100%;\n}\n\n.fa-stack-1x {\n    line-height: inherit;\n}\n\n.fa-stack-2x {\n    font-size: 2em;\n}\n\n.fa-inverse {\n    color: #fff;\n}\n\n\n/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen\nreaders do not read off random characters that represent icons */\n\n.fa-500px:before {\n    content: "\\f26e";\n}\n\n.fa-accessible-icon:before {\n    content: "\\f368";\n}\n\n.fa-accusoft:before {\n    content: "\\f369";\n}\n\n.fa-acquisitions-incorporated:before {\n    content: "\\f6af";\n}\n\n.fa-ad:before {\n    content: "\\f641";\n}\n\n.fa-address-book:before {\n    content: "\\f2b9";\n}\n\n.fa-address-card:before {\n    content: "\\f2bb";\n}\n\n.fa-adjust:before {\n    content: "\\f042";\n}\n\n.fa-adn:before {\n    content: "\\f170";\n}\n\n.fa-adobe:before {\n    content: "\\f778";\n}\n\n.fa-adversal:before {\n    content: "\\f36a";\n}\n\n.fa-affiliatetheme:before {\n    content: "\\f36b";\n}\n\n.fa-air-freshener:before {\n    content: "\\f5d0";\n}\n\n.fa-airbnb:before {\n    content: "\\f834";\n}\n\n.fa-algolia:before {\n    content: "\\f36c";\n}\n\n.fa-align-center:before {\n    content: "\\f037";\n}\n\n.fa-align-justify:before {\n    content: "\\f039";\n}\n\n.fa-align-left:before {\n    content: "\\f036";\n}\n\n.fa-align-right:before {\n    content: "\\f038";\n}\n\n.fa-alipay:before {\n    content: "\\f642";\n}\n\n.fa-allergies:before {\n    content: "\\f461";\n}\n\n.fa-amazon:before {\n    content: "\\f270";\n}\n\n.fa-amazon-pay:before {\n    content: "\\f42c";\n}\n\n.fa-ambulance:before {\n    content: "\\f0f9";\n}\n\n.fa-american-sign-language-interpreting:before {\n    content: "\\f2a3";\n}\n\n.fa-amilia:before {\n    content: "\\f36d";\n}\n\n.fa-anchor:before {\n    content: "\\f13d";\n}\n\n.fa-android:before {\n    content: "\\f17b";\n}\n\n.fa-angellist:before {\n    content: "\\f209";\n}\n\n.fa-angle-double-down:before {\n    content: "\\f103";\n}\n\n.fa-angle-double-left:before {\n    content: "\\f100";\n}\n\n.fa-angle-double-right:before {\n    content: "\\f101";\n}\n\n.fa-angle-double-up:before {\n    content: "\\f102";\n}\n\n.fa-angle-down:before {\n    content: "\\f107";\n}\n\n.fa-angle-left:before {\n    content: "\\f104";\n}\n\n.fa-angle-right:before {\n    content: "\\f105";\n}\n\n.fa-angle-up:before {\n    content: "\\f106";\n}\n\n.fa-angry:before {\n    content: "\\f556";\n}\n\n.fa-angrycreative:before {\n    content: "\\f36e";\n}\n\n.fa-angular:before {\n    content: "\\f420";\n}\n\n.fa-ankh:before {\n    content: "\\f644";\n}\n\n.fa-app-store:before {\n    content: "\\f36f";\n}\n\n.fa-app-store-ios:before {\n    content: "\\f370";\n}\n\n.fa-apper:before {\n    content: "\\f371";\n}\n\n.fa-apple:before {\n    content: "\\f179";\n}\n\n.fa-apple-alt:before {\n    content: "\\f5d1";\n}\n\n.fa-apple-pay:before {\n    content: "\\f415";
1\n}\n\n.fa-archive:before {\n    content: "\\f187";\n}\n\n.fa-archway:before {\n    content: "\\f557";\n}\n\n.fa-arrow-alt-circle-down:before {\n    content: "\\f358";\n}\n\n.fa-arrow-alt-circle-left:before {\n    content: "\\f359";\n}\n\n.fa-arrow-alt-circle-right:before {\n    content: "\\f35a";\n}\n\n.fa-arrow-alt-circle-up:before {\n    content: "\\f35b";\n}\n\n.fa-arrow-circle-down:before {\n    content: "\\f0ab";\n}\n\n.fa-arrow-circle-left:before {\n    content: "\\f0a8";\n}\n\n.fa-arrow-circle-right:before {\n    content: "\\f0a9";\n}\n\n.fa-arrow-circle-up:before {\n    content: "\\f0aa";\n}\n\n.fa-arrow-down:before {\n    content: "\\f063";\n}\n\n.fa-arrow-left:before {\n    content: "\\f060";\n}\n\n.fa-arrow-right:before {\n    content: "\\f061";\n}\n\n.fa-arrow-up:before {\n    content: "\\f062";\n}\n\n.fa-arrows-alt:before {\n    content: "\\f0b2";\n}\n\n.fa-arrows-alt-h:before {\n    content: "\\f337";\n}\n\n.fa-arrows-alt-v:before {\n    content: "\\f338";\n}\n\n.fa-artstation:before {\n    content: "\\f77a";\n}\n\n.fa-assistive-listening-systems:before {\n    content: "\\f2a2";\n}\n\n.fa-asterisk:before {\n    content: "\\f069";\n}\n\n.fa-asymmetrik:before {\n    content: "\\f372";\n}\n\n.fa-at:before {\n    content: "\\f1fa";\n}\n\n.fa-atlas:before {\n    content: "\\f558";\n}\n\n.fa-atlassian:before {\n    content: "\\f77b";\n}\n\n.fa-atom:before {\n    content: "\\f5d2";\n}\n\n.fa-audible:before {\n    content: "\\f373";\n}\n\n.fa-audio-description:before {\n    content: "\\f29e";\n}\n\n.fa-autoprefixer:before {\n    content: "\\f41c";\n}\n\n.fa-avianex:before {\n    content: "\\f374";\n}\n\n.fa-aviato:before {\n    content: "\\f421";\n}\n\n.fa-award:before {\n    content: "\\f559";\n}\n\n.fa-aws:before {\n    content: "\\f375";\n}\n\n.fa-baby:before {\n    content: "\\f77c";\n}\n\n.fa-baby-carriage:before {\n    content: "\\f77d";\n}\n\n.fa-backspace:before {\n    content: "\\f55a";\n}\n\n.fa-backward:before {\n    content: "\\f04a";\n}\n\n.fa-bacon:before {\n    content: "\\f7e5";\n}\n\n.fa-bahai:before {\n    content: "\\f666";\n}\n\n.fa-balance-scale:before {\n    content: "\\f24e";\n}\n\n.fa-balance-scale-left:before {\n    content: "\\f515";\n}\n\n.fa-balance-scale-right:before {\n    content: "\\f516";\n}\n\n.fa-ban:before {\n    content: "\\f05e";\n}\n\n.fa-band-aid:before {\n    content: "\\f462";\n}\n\n.fa-bandcamp:before {\n    content: "\\f2d5";\n}\n\n.fa-barcode:before {\n    content: "\\f02a";\n}\n\n.fa-bars:before {\n    content: "\\f0c9";\n}\n\n.fa-baseball-ball:before {\n    content: "\\f433";\n}\n\n.fa-basketball-ball:before {\n    content: "\\f434";\n}\n\n.fa-bath:before {\n    content: "\\f2cd";\n}\n\n.fa-battery-empty:before {\n    content: "\\f244";\n}\n\n.fa-battery-full:before {\n    content: "\\f240";\n}\n\n.fa-battery-half:before {\n    content: "\\f242";\n}\n\n.fa-battery-quarter:before {\n    content: "\\f243";\n}\n\n.fa-battery-three-quarters:before {\n    content: "\\f241";\n}\n\n.fa-battle-net:before {\n    content: "\\f835";\n}\n\n.fa-bed:before {\n    content: "\\f236";\n}\n\n.fa-beer:before {\n    content: "\\f0fc";\n}\n\n.fa-behance:before {\n    content: "\\f1b4";\n}\n\n.fa-behance-square:before {\n    content: "\\f1b5";\n}\n\n.fa-bell:before {\n    content: "\\f0f3";\n}\n\n.fa-bell-slash:before {\n    content: "\\f1f6";\n}\n\n.fa-bezier-curve:before {\n    content: "\\f55b";\n}\n\n.fa-bible:before {\n    content: "\\f647";\n}\n\n.fa-bicycle:before {\n    content: "\\f206";\n}\n\n.fa-biking:before {\n    content: "\\f84a";\n}\n\n.fa-bimobject:before {\n    content: "\\f378";\n}\n\n.fa-binoculars:before {\n    content: "\\f1e5";\n}\n\n.fa-biohazard:before {\n    content: "\\f780";\n}\n\n.fa-birthday-cake:before {\n    content: "\\f1fd";\n}\n\n.fa-bitbucket:before {\n    content: "\\f171";\n}\n\n.fa-bitcoin:before {\n    content: "\\f379";\n}\n\n.fa-bity:before {\n    content: "\\f37a";\n}\n\n.fa-black-tie:before {\n    content: "\\f27e";\n}\n\n.fa-blackberry:before {\n    content: "\\f37b";\n}\n\n.fa-blender:before {\n    content: "\\f517";\n}\n\n.fa-blender-phone:before {\n    content: "\\f6b6";\n}\n\n.fa-blind:before {\n    content: "\\f29d";\n}\n\n.fa-blog:before {\n    content: "\\f781";\n}\n\n.fa-blogger:before {\n    content: "\\f37c";\n}\n\n.fa-blogger-b:before {\n    content: "\\f37d";\n}\n\n.fa-bluetooth:before {\n    content: "\\f293";\n}\n\n.fa-bluetooth-b:before {\n    content: "\\f294";\n}\n\n.fa-bold:before {\n    content: "\\f032";\n}\n\n.fa-bolt:before {\n    content: "\\f0e7";\n}\n\n.fa-bomb:before {\n    content: "\\f1e2";\n}\n\n.fa-bone:before {\n    content: "\\f5d7";\n}\n\n.fa-bong:before {\n    content: "\\f55c";\n}\n\n.fa-book:before {\n    content: "\\f02d";\n}\n\n.fa-book-dead:before {\n    content: "\\f6b7";\n}\n\n.fa-book-medical:before {\n    content: "\\f7e6";\n}\n\n.fa-book-open:before {\n    content: "\\f518";\n}\n\n.fa-book-reader:before {\n    content: "\\f5da";\n}\n\n.fa-bookmark:before {\n    content: "\\f02e";\n}\n\n.fa-bootstrap:before {\n    content: "\\f836";\n}\n\n.fa-border-all:before {\n    content: "\\f84c";\n}\n\n.fa-border-none:before {\n    content: "\\f850";\n}\n\n.fa-border-style:before {\n    content: "\\f853";\n}\n\n.fa-bowling-ball:before {\n    content: "\\f436";\n}\n\n.fa-box:before {\n    content: "\\f466";\n}\n\n.fa-box-open:before {\n    content: "\\f49e";\n}\n\n.fa-boxes:before {\n    content: "\\f468";\n}\n\n.fa-braille:before {\n    content: "\\f2a1";\n}\n\n.fa-brain:before {\n    content: "\\f5dc";\n}\n\n.fa-bread-slice:before {\n    content: "\\f7ec";\n}\n\n.fa-briefcase:before {\n    content: "\\f0b1";\n}\n\n.fa-briefcase-medical:before {\n    content: "\\f469";\n}\n\n.fa-broadcast-tower:before {\n    content: "\\f519";\n}\n\n.fa-broom:before {\n    content: "\\f51a";\n}\n\n.fa-brush:before {\n    content: "\\f55d";\n}\n\n.fa-btc:before {\n    content: "\\f15a";\n}\n\n.fa-buffer:before {\n    content: "\\f837";\n}\n\n.fa-bug:before {\n    content: "\\f188";\n}\n\n.fa-building:before {\n    content: "\\f1ad";\n}\n\n.fa-bullhorn:before {\n    content: "\\f0a1";\n}\n\n.fa-bullseye:before {\n    content: "\\f140";\n}\n\n.fa-burn:before {\n    content: "\\f46a";\n}\n\n.fa-buromobelexperte:before {\n    content: "\\f37f";\n}\n\n.fa-bus:before {\n    content: "\\f207";\n}\n\n.fa-bus-alt:before {\n    content: "\\f55e";\n}\n\n.fa-business-time:before {\n    content: "\\f64a";\n}\n\n.fa-buy-n-large:before {\n    content: "\\f8a6";\n}\n\n.fa-buysellads:before {\n    content: "\\f20d";\n}\n\n.fa-calculator:before {\n    content: "\\f1ec";\n}\n\n.fa-calendar:before {\n    content: "\\f133";\n}\n\n.fa-calendar-alt:before {\n    content: "\\f073";\n}\n\n.fa-calendar-check:before {\n    content: "\\f274";\n}\n\n.fa-calendar-day:before {\n    content: "\\f783";\n}\n\n.fa-calendar-minus:before {\n    content: "\\f272";\n}\n\n.fa-calendar-plus:before {\n    content: "\\f271";\n}\n\n.fa-calendar-times:before {\n    content: "\\f273";\n}\n\n.fa-calendar-week:before {\n    content: "\\f784";\n}\n\n.fa-camera:before {\n    content: "\\f030";\n}\n\n.fa-camera-retro:before {\n    content: "\\f083";\n}\n\n.fa-campground:before {\n    content: "\\f6bb";\n}\n\n.fa-canadian-maple-leaf:before {\n    content: "\\f785";\n}\n\n.fa-candy-cane:before {\n    content: "\\f786";\n}\n\n.fa-cannabis:before {\n    content: "\\f55f";\n}\n\n.fa-capsules:before {\n    content: "\\f46b";\n}\n\n.fa-car:before {\n    content: "\\f1b9";\n}\n\n.fa-car-alt:before {\n    content: "\\f5de";\n}\n\n.fa-car-battery:before {\n    content: "\\f5df";\n}\n\n.fa-car-crash:before {\n    content: "\\f5e1";\n}\n\n.fa-car-side:before {\n    content: "\\f5e4";\n}\n\n.fa-caravan:before {\n    content: "\\f8ff";\n}\n\n.fa-caret-down:before {\n    content: "\\f0d7";\n}\n\n.fa-caret-left:before {\n    content: "\\f0d9";\n}\n\n.fa-caret-right:before {\n    content: "\\f0da";\n}\n\n.fa-caret-square-down:before {\n    content: "\\f150";\n}\n\n.fa-caret-square-left:before {\n    content: "\\f191";\n}\n\n.fa-caret-square-right:before {\n    content: "\\f152";\n}\n\n.fa-caret-square-up:before {\n    content: "\\f151";\n}\n\n.fa-caret-up:before {\n    content: "\\f0d8";\n}\n\n.fa-carrot:before {\n    content: "\\f787";\n}\n\n.fa-cart-arrow-down:before {\n    content: "\\f218";\n}\n\n.fa-cart-plus:before {\n    content: "\\f217";\n}\n\n.fa-cash-register:before {\n    content: "\\f788";\n}\n\n.fa-cat:before {\n    content: "\\f6be";\n}\n\n.fa-cc-amazon-pay:before {\n    content: "\\f42d";\n}\n\n.fa-cc-amex:before {\n    content: "\\f1f3";\n}\n\n.fa-cc-apple-pay:before {\n    content: "\\f416";\n}\n\n.fa-cc-diners-club:before {\n    content: "\\f24c";\n}\n\n.fa-cc-discover:before {\n    content: "\\f1f2";\n}\n\n.fa-cc-jcb:before {\n    content: "\\f24b";\n}\n\n.fa-cc-mastercard:before {\n    content: "\\f1f1";\n}\n\n.fa-cc-paypal:before {\n    content: "\\f1f4";\n}\n\n.fa-cc-stripe:before {\n    content: "\\f1f5";\n}\n\n.fa-cc-visa:before {\n    content: "\\f1f0";\n}\n\n.fa-centercode:before {\n    content: "\\f380";\n}\n\n.fa-centos:before {\n    content: "\\f789";\n}\n\n.fa-certificate:before {\n    content: "\\f0a3";\n}\n\n.fa-chair:before {\n    content: "\\f6c0";\n}\n\n.fa-chalkboard:before {\n    content: "\\f51b";\n}\n\n.fa-chalkboard-teacher:before {\n    content: "\\f51c";\n}\n\n.fa-charging-station:before {\n    content: "\\f5e7";\n}\n\n.fa-chart-area:before {\n    content: "\\f1fe";\n}\n\n.fa-chart-bar:before {\n    content: "\\f080";\n}\n\n.fa-chart-line:before {\n    content: "\\f201";\n}\n\n.fa-chart-pie:before {\n    content: "\\f200";\n}\n\n.fa-check:before {\n    content: "\\f00c";\n}\n\n.fa-check-circle:before {\n    content: "\\f058";\n}\n\n.fa-check-double:before {\n    content: "\\f560";\n}\n\n.fa-check-square:before {\n    content: "\\f14a";\n}\n\n.fa-cheese:before {\n    content: "\\f7ef";\n}\n\n.fa-chess:before {\n    content: "\\f439";\n}\n\n.fa-chess-bishop:before {\n    content: "\\f43a";\n}\n\n.fa-chess-board:before {\n    content: "\\f43c";\n}\n\n.fa-chess-king:before {\n    content: "\\f43f";\n}\n\n.fa-chess-knight:before {\n    content: "\\f441";\n}\n\n.fa-chess-pawn:before {\n    content: "\\f443";\n}\n\n.fa-chess-queen:before {\n    content: "\\f445";\n}\n\n.fa-chess-rook:before {\n    content: "\\f447";\n}\n\n.fa-chevron-circle-down:before {\n    content: "\\f13a";\n}\n\n.fa-chevron-circle-left:before {\n    content: "\\f137";\n}\n\n.fa-chevron-circle-right:before {\n    content: "\\f138";\n}\n\n.fa-chevron-circle-up:before {\n    content: "\\f139";\n}\n\n.fa-chevron-down:before {\n    content: "\\f078";\n}\n\n.fa-chevron-left:before {\n    content: "\\f053";\n}\n\n.fa-chevron-right:before {\n    content: "\\f054";\n}\n\n.fa-chevron-up:before {\n    content: "\\f077";\n}\n\n.fa-child:before {\n    content: "\\f1ae";\n}\n\n.fa-chrome:before {\n    content: "\\f268";\n}\n\n.fa-chromecast:before {\n    content: "\\f838";\n}\n\n.fa-church:before {\n    content: "\\f51d";\n}\n\n.fa-circle:before {\n    content: "\\f111";\n}\n\n.fa-circle-notch:before {\n    content: "\\f1ce";\n}\n\n.fa-city:before {\n    content: "\\f64f";\n}\n\n.fa-clinic-medical:before {\n    content: "\\f7f2";\n}\n\n.fa-clipboard:before {\n    content: "\\f328";\n}\n\n.fa-clipboard-check:before {\n    content: "\\f46c";\n}\n\n.fa-clipboard-list:before {\n    content: "\\f46d";\n}\n\n.fa-clock:before {\n    content: "\\f017";\n}\n\n.fa-clone:before {\n    content: "\\f24d";\n}\n\n.fa-closed-captioning:before {\n    content: "\\f20a";\n}\n\n.fa-cloud:before {\n    content: "\\f0c2";\n}\n\n.fa-cloud-download-alt:before {\n    content: "\\f381";\n}\n\n.fa-cloud-meatball:before {\n    content: "\\f73b";\n}\n\n.fa-cloud-moon:before {\n    content: "\\f6c3";\n}\n\n.fa-cloud-moon-rain:before {\n    content: "\\f73c";\n}\n\n.fa-cloud-rain:before {\n    content: "\\f73d";\n}\n\n.fa-cloud-showers-heavy:before {\n    content: "\\f740";\n}\n\n.fa-cloud-sun:before {\n    content: "\\f6c4";\n}\n\n.fa-cloud-sun-rain:before {\n    content: "\\f743";\n}\n\n.fa-cloud-upload-alt:before {\n    content: "\\f382";\n}\n\n.fa-cloudscale:before {\n    content: "\\f383";\n}\n\n.fa-cloudsmith:before {\n    content: "\\f384";\n}\n\n.fa-cloudversify:before {\n    content: "\\f385";\n}\n\n.fa-cocktail:before {\n    content: "\\f561";\n}\n\n.fa-code:before {\n    content: "\\f121";\n}\n\n.fa-code-branch:before {\n    content: "\\f126";\n}\n\n.fa-codepen:before {\n    content: "\\f1cb";\n}\n\n.fa-codiepie:before {\n    content: "\\f284";\n}\n\n.fa-coffee:before {\n    content: "\\f0f4";\n}\n\n.fa-cog:before {\n    content: "\\f013";\n}\n\n.fa-cogs:before {\n    content: "\\f085";\n}\n\n.fa-coins:before {\n    content: "\\f51e";\n}\n\n.fa-columns:before {\n    content: "\\f0db";\n}\n\n.fa-comment:before {\n    content: "\\f075";\n}\n\n.fa-comment-alt:before {\n    content: "\\f27a";
1\n}\n\n.fa-comment-dollar:before {\n    content: "\\f651";\n}\n\n.fa-comment-dots:before {\n    content: "\\f4ad";\n}\n\n.fa-comment-medical:before {\n    content: "\\f7f5";\n}\n\n.fa-comment-slash:before {\n    content: "\\f4b3";\n}\n\n.fa-comments:before {\n    content: "\\f086";\n}\n\n.fa-comments-dollar:before {\n    content: "\\f653";\n}\n\n.fa-compact-disc:before {\n    content: "\\f51f";\n}\n\n.fa-compass:before {\n    content: "\\f14e";\n}\n\n.fa-compress:before {\n    content: "\\f066";\n}\n\n.fa-compress-alt:before {\n    content: "\\f422";\n}\n\n.fa-compress-arrows-alt:before {\n    content: "\\f78c";\n}\n\n.fa-concierge-bell:before {\n    content: "\\f562";\n}\n\n.fa-confluence:before {\n    content: "\\f78d";\n}\n\n.fa-connectdevelop:before {\n    content: "\\f20e";\n}\n\n.fa-contao:before {\n    content: "\\f26d";\n}\n\n.fa-cookie:before {\n    content: "\\f563";\n}\n\n.fa-cookie-bite:before {\n    content: "\\f564";\n}\n\n.fa-copy:before {\n    content: "\\f0c5";\n}\n\n.fa-copyright:before {\n    content: "\\f1f9";\n}\n\n.fa-cotton-bureau:before {\n    content: "\\f89e";\n}\n\n.fa-couch:before {\n    content: "\\f4b8";\n}\n\n.fa-cpanel:before {\n    content: "\\f388";\n}\n\n.fa-creative-commons:before {\n    content: "\\f25e";\n}\n\n.fa-creative-commons-by:before {\n    content: "\\f4e7";\n}\n\n.fa-creative-commons-nc:before {\n    content: "\\f4e8";\n}\n\n.fa-creative-commons-nc-eu:before {\n    content: "\\f4e9";\n}\n\n.fa-creative-commons-nc-jp:before {\n    content: "\\f4ea";\n}\n\n.fa-creative-commons-nd:before {\n    content: "\\f4eb";\n}\n\n.fa-creative-commons-pd:before {\n    content: "\\f4ec";\n}\n\n.fa-creative-commons-pd-alt:before {\n    content: "\\f4ed";\n}\n\n.fa-creative-commons-remix:before {\n    content: "\\f4ee";\n}\n\n.fa-creative-commons-sa:before {\n    content: "\\f4ef";\n}\n\n.fa-creative-commons-sampling:before {\n    content: "\\f4f0";\n}\n\n.fa-creative-commons-sampling-plus:before {\n    content: "\\f4f1";\n}\n\n.fa-creative-commons-share:before {\n    content: "\\f4f2";\n}\n\n.fa-creative-commons-zero:before {\n    content: "\\f4f3";\n}\n\n.fa-credit-card:before {\n    content: "\\f09d";\n}\n\n.fa-critical-role:before {\n    content: "\\f6c9";\n}\n\n.fa-crop:before {\n    content: "\\f125";\n}\n\n.fa-crop-alt:before {\n    content: "\\f565";\n}\n\n.fa-cross:before {\n    content: "\\f654";\n}\n\n.fa-crosshairs:before {\n    content: "\\f05b";\n}\n\n.fa-crow:before {\n    content: "\\f520";\n}\n\n.fa-crown:before {\n    content: "\\f521";\n}\n\n.fa-crutch:before {\n    content: "\\f7f7";\n}\n\n.fa-css3:before {\n    content: "\\f13c";\n}\n\n.fa-css3-alt:before {\n    content: "\\f38b";\n}\n\n.fa-cube:before {\n    content: "\\f1b2";\n}\n\n.fa-cubes:before {\n    content: "\\f1b3";\n}\n\n.fa-cut:before {\n    content: "\\f0c4";\n}\n\n.fa-cuttlefish:before {\n    content: "\\f38c";\n}\n\n.fa-d-and-d:before {\n    content: "\\f38d";\n}\n\n.fa-d-and-d-beyond:before {\n    content: "\\f6ca";\n}\n\n.fa-dashcube:before {\n    content: "\\f210";\n}\n\n.fa-database:before {\n    content: "\\f1c0";\n}\n\n.fa-deaf:before {\n    content: "\\f2a4";\n}\n\n.fa-delicious:before {\n    content: "\\f1a5";\n}\n\n.fa-democrat:before {\n    content: "\\f747";\n}\n\n.fa-deploydog:before {\n    content: "\\f38e";\n}\n\n.fa-deskpro:before {\n    content: "\\f38f";\n}\n\n.fa-desktop:before {\n    content: "\\f108";\n}\n\n.fa-dev:before {\n    content: "\\f6cc";\n}\n\n.fa-deviantart:before {\n    content: "\\f1bd";\n}\n\n.fa-dharmachakra:before {\n    content: "\\f655";\n}\n\n.fa-dhl:before {\n    content: "\\f790";\n}\n\n.fa-diagnoses:before {\n    content: "\\f470";\n}\n\n.fa-diaspora:before {\n    content: "\\f791";\n}\n\n.fa-dice:before {\n    content: "\\f522";\n}\n\n.fa-dice-d20:before {\n    content: "\\f6cf";\n}\n\n.fa-dice-d6:before {\n    content: "\\f6d1";\n}\n\n.fa-dice-five:before {\n    content: "\\f523";\n}\n\n.fa-dice-four:before {\n    content: "\\f524";\n}\n\n.fa-dice-one:before {\n    content: "\\f525";\n}\n\n.fa-dice-six:before {\n    content: "\\f526";\n}\n\n.fa-dice-three:before {\n    content: "\\f527";\n}\n\n.fa-dice-two:before {\n    content: "\\f528";\n}\n\n.fa-digg:before {\n    content: "\\f1a6";\n}\n\n.fa-digital-ocean:before {\n    content: "\\f391";\n}\n\n.fa-digital-tachograph:before {\n    content: "\\f566";\n}\n\n.fa-directions:before {\n    content: "\\f5eb";\n}\n\n.fa-discord:before {\n    content: "\\f392";\n}\n\n.fa-discourse:before {\n    content: "\\f393";\n}\n\n.fa-divide:before {\n    content: "\\f529";\n}\n\n.fa-dizzy:before {\n    content: "\\f567";\n}\n\n.fa-dna:before {\n    content: "\\f471";\n}\n\n.fa-dochub:before {\n    content: "\\f394";\n}\n\n.fa-docker:before {\n    content: "\\f395";\n}\n\n.fa-dog:before {\n    content: "\\f6d3";\n}\n\n.fa-dollar-sign:before {\n    content: "\\f155";
1\n}\n\n.fa-dolly:before {\n    content: "\\f472";\n}\n\n.fa-dolly-flatbed:before {\n    content: "\\f474";\n}\n\n.fa-donate:before {\n    content: "\\f4b9";\n}\n\n.fa-door-closed:before {\n    content: "\\f52a";\n}\n\n.fa-door-open:before {\n    content: "\\f52b";\n}\n\n.fa-dot-circle:before {\n    content: "\\f192";\n}\n\n.fa-dove:before {\n    content: "\\f4ba";\n}\n\n.fa-download:before {\n    content: "\\f019";\n}\n\n.fa-draft2digital:before {\n    content: "\\f396";\n}\n\n.fa-drafting-compass:before {\n    content: "\\f568";\n}\n\n.fa-dragon:before {\n    content: "\\f6d5";\n}\n\n.fa-draw-polygon:before {\n    content: "\\f5ee";\n}\n\n.fa-dribbble:before {\n    content: "\\f17d";\n}\n\n.fa-dribbble-square:before {\n    content: "\\f397";\n}\n\n.fa-dropbox:before {\n    content: "\\f16b";\n}\n\n.fa-drum:before {\n    content: "\\f569";\n}\n\n.fa-drum-steelpan:before {\n    content: "\\f56a";\n}\n\n.fa-drumstick-bite:before {\n    content: "\\f6d7";\n}\n\n.fa-drupal:before {\n    content: "\\f1a9";\n}\n\n.fa-dumbbell:before {\n    content: "\\f44b";\n}\n\n.fa-dumpster:before {\n    content: "\\f793";\n}\n\n.fa-dumpster-fire:before {\n    content: "\\f794";\n}\n\n.fa-dungeon:before {\n    content: "\\f6d9";\n}\n\n.fa-dyalog:before {\n    content: "\\f399";\n}\n\n.fa-earlybirds:before {\n    content: "\\f39a";\n}\n\n.fa-ebay:before {\n    content: "\\f4f4";\n}\n\n.fa-edge:before {\n    content: "\\f282";\n}\n\n.fa-edit:before {\n    content: "\\f044";\n}\n\n.fa-egg:before {\n    content: "\\f7fb";\n}\n\n.fa-eject:before {\n    content: "\\f052";\n}\n\n.fa-elementor:before {\n    content: "\\f430";\n}\n\n.fa-ellipsis-h:before {\n    content: "\\f141";\n}\n\n.fa-ellipsis-v:before {\n    content: "\\f142";\n}\n\n.fa-ello:before {\n    content: "\\f5f1";\n}\n\n.fa-ember:before {\n    content: "\\f423";\n}\n\n.fa-empire:before {\n    content: "\\f1d1";\n}\n\n.fa-envelope:before {\n    content: "\\f0e0";\n}\n\n.fa-envelope-open:before {\n    content: "\\f2b6";\n}\n\n.fa-envelope-open-text:before {\n    content: "\\f658";\n}\n\n.fa-envelope-square:before {\n    content: "\\f199";\n}\n\n.fa-envira:before {\n    content: "\\f299";\n}\n\n.fa-equals:before {\n    content: "\\f52c";\n}\n\n.fa-eraser:before {\n    content: "\\f12d";\n}\n\n.fa-erlang:before {\n    content: "\\f39d";\n}\n\n.fa-ethereum:before {\n    content: "\\f42e";\n}\n\n.fa-ethernet:before {\n    content: "\\f796";\n}\n\n.fa-etsy:before {\n    content: "\\f2d7";\n}\n\n.fa-euro-sign:before {\n    content: "\\f153";\n}\n\n.fa-evernote:before {\n    content: "\\f839";\n}\n\n.fa-exchange-alt:before {\n    content: "\\f362";\n}\n\n.fa-exclamation:before {\n    content: "\\f12a";\n}\n\n.fa-exclamation-circle:before {\n    content: "\\f06a";\n}\n\n.fa-exclamation-triangle:before {\n    content: "\\f071";\n}\n\n.fa-expand:before {\n    content: "\\f065";\n}\n\n.fa-expand-alt:before {\n    content: "\\f424";\n}\n\n.fa-expand-arrows-alt:before {\n    content: "\\f31e";\n}\n\n.fa-expeditedssl:before {\n    content: "\\f23e";\n}\n\n.fa-external-link-alt:before {\n    content: "\\f35d";\n}\n\n.fa-external-link-square-alt:before {\n    content: "\\f360";\n}\n\n.fa-eye:before {\n    content: "\\f06e";\n}\n\n.fa-eye-dropper:before {\n    content: "\\f1fb";\n}\n\n.fa-eye-slash:before {\n    content: "\\f070";\n}\n\n.fa-facebook:before {\n    content: "\\f09a";\n}\n\n.fa-facebook-f:before {\n    content: "\\f39e";\n}\n\n.fa-facebook-messenger:before {\n    content: "\\f39f";\n}\n\n.fa-facebook-square:before {\n    content: "\\f082";\n}\n\n.fa-fan:before {\n    content: "\\f863";\n}\n\n.fa-fantasy-flight-games:before {\n    content: "\\f6dc";\n}\n\n.fa-fast-backward:before {\n    content: "\\f049";\n}\n\n.fa-fast-forward:before {\n    content: "\\f050";\n}\n\n.fa-fax:before {\n    content: "\\f1ac";\n}\n\n.fa-feather:before {\n    content: "\\f52d";\n}\n\n.fa-feather-alt:before {\n    content: "\\f56b";\n}\n\n.fa-fedex:before {\n    content: "\\f797";\n}\n\n.fa-fedora:before {\n    content: "\\f798";\n}\n\n.fa-female:before {\n    content: "\\f182";\n}\n\n.fa-fighter-jet:before {\n    content: "\\f0fb";\n}\n\n.fa-figma:before {\n    content: "\\f799";\n}\n\n.fa-file:before {\n    content: "\\f15b";\n}\n\n.fa-file-alt:before {\n    content: "\\f15c";\n}\n\n.fa-file-archive:before {\n    content: "\\f1c6";\n}\n\n.fa-file-audio:before {\n    content: "\\f1c7";\n}\n\n.fa-file-code:before {\n    content: "\\f1c9";\n}\n\n.fa-file-contract:before {\n    content: "\\f56c";\n}\n\n.fa-file-csv:before {\n    content: "\\f6dd";\n}\n\n.fa-file-download:before {\n    content: "\\f56d";\n}\n\n.fa-file-excel:before {\n    content: "\\f1c3";\n}\n\n.fa-file-export:before {\n    content: "\\f56e";\n}\n\n.fa-file-image:before {\n    content: "\\f1c5";\n}\n\n.fa-file-import:before {\n    content: "\\f56f";\n}\n\n.fa-file-invoice:before {\n    content: "\\f570";\n}\n\n.fa-file-invoice-dollar:before {\n    content: "\\f571";\n}\n\n.fa-file-medical:before {\n    content: "\\f477";\n}\n\n.fa-file-medical-alt:before {\n    content: "\\f478";\n}\n\n.fa-file-pdf:before {\n    content: "\\f1c1";\n}\n\n.fa-file-powerpoint:before {\n    content: "\\f1c4";\n}\n\n.fa-file-prescription:before {\n    content: "\\f572";\n}\n\n.fa-file-signature:before {\n    content: "\\f573";\n}\n\n.fa-file-upload:before {\n    content: "\\f574";\n}\n\n.fa-file-video:before {\n    content: "\\f1c8";\n}\n\n.fa-file-word:before {\n    content: "\\f1c2";\n}\n\n.fa-fill:before {\n    content: "\\f575";\n}\n\n.fa-fill-drip:before {\n    content: "\\f576";\n}\n\n.fa-film:before {\n    content: "\\f008";\n}\n\n.fa-filter:before {\n    content: "\\f0b0";\n}\n\n.fa-fingerprint:before {\n    content: "\\f577";\n}\n\n.fa-fire:before {\n    content: "\\f06d";\n}\n\n.fa-fire-alt:before {\n    content: "\\f7e4";\n}\n\n.fa-fire-extinguisher:before {\n    content: "\\f134";\n}\n\n.fa-firefox:before {\n    content: "\\f269";\n}\n\n.fa-firefox-browser:before {\n    content: "\\f907";\n}\n\n.fa-first-aid:before {\n    content: "\\f479";\n}\n\n.fa-first-order:before {\n    content: "\\f2b0";\n}\n\n.fa-first-order-alt:before {\n    content: "\\f50a";\n}\n\n.fa-firstdraft:before {\n    content: "\\f3a1";\n}\n\n.fa-fish:before {\n    content: "\\f578";\n}\n\n.fa-fist-raised:before {\n    content: "\\f6de";\n}\n\n.fa-flag:before {\n    content: "\\f024";\n}\n\n.fa-flag-checkered:before {\n    content: "\\f11e";\n}\n\n.fa-flag-usa:before {\n    content: "\\f74d";\n}\n\n.fa-flask:before {\n    content: "\\f0c3";\n}\n\n.fa-flickr:before {\n    content: "\\f16e";\n}\n\n.fa-flipboard:before {\n    content: "\\f44d";\n}\n\n.fa-flushed:before {\n    content: "\\f579";\n}\n\n.fa-fly:before {\n    content: "\\f417";\n}\n\n.fa-folder:before {\n    content: "\\f07b";\n}\n\n.fa-folder-minus:before {\n    content: "\\f65d";\n}\n\n.fa-folder-open:before {\n    content: "\\f07c";\n}\n\n.fa-folder-plus:before {\n    content: "\\f65e";\n}\n\n.fa-font:before {\n    content: "\\f031";\n}\n\n.fa-font-awesome:before {\n    content: "\\f2b4";\n}\n\n.fa-font-awesome-alt:before {\n    content: "\\f35c";\n}\n\n.fa-font-awesome-flag:before {\n    content: "\\f425";\n}\n\n.fa-font-awesome-logo-full:before {\n    content: "\\f4e6";\n}\n\n.fa-fonticons:before {\n    content: "\\f280";\n}\n\n.fa-fonticons-fi:before {\n    content: "\\f3a2";\n}\n\n.fa-football-ball:before {\n    content: "\\f44e";\n}\n\n.fa-fort-awesome:before {\n    content: "\\f286";\n}\n\n.fa-fort-awesome-alt:before {\n    content: "\\f3a3";\n}\n\n.fa-forumbee:before {\n    content: "\\f211";\n}\n\n.fa-forward:before {\n    content: "\\f04e";\n}\n\n.fa-foursquare:before {\n    content: "\\f180";\n}\n\n.fa-free-code-camp:before {\n    content: "\\f2c5";\n}\n\n.fa-freebsd:before {\n    content: "\\f3a4";\n}\n\n.fa-frog:before {\n    content: "\\f52e";\n}\n\n.fa-frown:before {\n    content: "\\f119";\n}\n\n.fa-frown-open:before {\n    content: "\\f57a";\n}\n\n.fa-fulcrum:before {\n    content: "\\f50b";\n}\n\n.fa-funnel-dollar:before {\n    content: "\\f662";\n}\n\n.fa-futbol:before {\n    content: "\\f1e3";\n}\n\n.fa-galactic-republic:before {\n    content: "\\f50c";\n}\n\n.fa-galactic-senate:before {\n    content: "\\f50d";\n}\n\n.fa-gamepad:before {\n    content: "\\f11b";\n}\n\n.fa-gas-pump:before {\n    content: "\\f52f";\n}\n\n.fa-gavel:before {\n    content: "\\f0e3";\n}\n\n.fa-gem:before {\n    content: "\\f3a5";\n}\n\n.fa-genderless:before {\n    content: "\\f22d";\n}\n\n.fa-get-pocket:before {\n    content: "\\f265";\n}\n\n.fa-gg:before {\n    content: "\\f260";\n}\n\n.fa-gg-circle:before {\n    content: "\\f261";\n}\n\n.fa-ghost:before {\n    content: "\\f6e2";\n}\n\n.fa-gift:before {\n    content: "\\f06b";\n}\n\n.fa-gifts:before {\n    content: "\\f79c";\n}\n\n.fa-git:before {\n    content: "\\f1d3";\n}\n\n.fa-git-alt:before {\n    content: "\\f841";\n}\n\n.fa-git-square:before {\n    content: "\\f1d2";\n}\n\n.fa-github:before {\n    content: "\\f09b";\n}\n\n.fa-github-alt:before {\n    content: "\\f113";\n}\n\n.fa-github-square:before {\n    content: "\\f092";\n}\n\n.fa-gitkraken:before {\n    content: "\\f3a6";\n}\n\n.fa-gitlab:before {\n    content: "\\f296";\n}\n\n.fa-gitter:before {\n    content: "\\f426";\n}\n\n.fa-glass-cheers:before {\n    content: "\\f79f";\n}\n\n.fa-glass-martini:before {\n    content: "\\f000";\n}\n\n.fa-glass-martini-alt:before {\n    content: "\\f57b";\n}\n\n.fa-glass-whiskey:before {\n    content: "\\f7a0";\n}\n\n.fa-glasses:before {\n    content: "\\f530";\n}\n\n.fa-glide:before {\n    content: "\\f2a5";\n}\n\n.fa-glide-g:before {\n    content: "\\f2a6";\n}\n\n.fa-globe:before {\n    content: "\\f0ac";\n}\n\n.fa-globe-africa:before {\n    content: "\\f57c";\n}\n\n.fa-globe-americas:before {\n    content: "\\f57d";\n}\n\n.fa-globe-asia:before {\n    content: "\\f57e";\n}\n\n.fa-globe-europe:before {\n    content: "\\f7a2";\n}\n\n.fa-gofore:before {\n    content: "\\f3a7";\n}\n\n.fa-golf-ball:before {\n    content: "\\f450";\n}\n\n.fa-goodreads:before {\n    content: "\\f3a8";\n}\n\n.fa-goodreads-g:before {\n    content: "\\f3a9";\n}\n\n.fa-google:before {\n    content: "\\f1a0";\n}\n\n.fa-google-drive:before {\n    content: "\\f3aa";
1\n}\n\n.fa-google-play:before {\n    content: "\\f3ab";\n}\n\n.fa-google-plus:before {\n    content: "\\f2b3";\n}\n\n.fa-google-plus-g:before {\n    content: "\\f0d5";\n}\n\n.fa-google-plus-square:before {\n    content: "\\f0d4";\n}\n\n.fa-google-wallet:before {\n    content: "\\f1ee";\n}\n\n.fa-gopuram:before {\n    content: "\\f664";\n}\n\n.fa-graduation-cap:before {\n    content: "\\f19d";\n}\n\n.fa-gratipay:before {\n    content: "\\f184";\n}\n\n.fa-grav:before {\n    content: "\\f2d6";\n}\n\n.fa-greater-than:before {\n    content: "\\f531";\n}\n\n.fa-greater-than-equal:before {\n    content: "\\f532";\n}\n\n.fa-grimace:before {\n    content: "\\f57f";\n}\n\n.fa-grin:before {\n    content: "\\f580";\n}\n\n.fa-grin-alt:before {\n    content: "\\f581";\n}\n\n.fa-grin-beam:before {\n    content: "\\f582";\n}\n\n.fa-grin-beam-sweat:before {\n    content: "\\f583";\n}\n\n.fa-grin-hearts:before {\n    content: "\\f584";\n}\n\n.fa-grin-squint:before {\n    content: "\\f585";\n}\n\n.fa-grin-squint-tears:before {\n    content: "\\f586";\n}\n\n.fa-grin-stars:before {\n    content: "\\f587";\n}\n\n.fa-grin-tears:before {\n    content: "\\f588";\n}\n\n.fa-grin-tongue:before {\n    content: "\\f589";\n}\n\n.fa-grin-tongue-squint:before {\n    content: "\\f58a";\n}\n\n.fa-grin-tongue-wink:before {\n    content: "\\f58b";\n}\n\n.fa-grin-wink:before {\n    content: "\\f58c";\n}\n\n.fa-grip-horizontal:before {\n    content: "\\f58d";\n}\n\n.fa-grip-lines:before {\n    content: "\\f7a4";\n}\n\n.fa-grip-lines-vertical:before {\n    content: "\\f7a5";\n}\n\n.fa-grip-vertical:before {\n    content: "\\f58e";\n}\n\n.fa-gripfire:before {\n    content: "\\f3ac";\n}\n\n.fa-grunt:before {\n    content: "\\f3ad";\n}\n\n.fa-guitar:before {\n    content: "\\f7a6";\n}\n\n.fa-gulp:before {\n    content: "\\f3ae";\n}\n\n.fa-h-square:before {\n    content: "\\f0fd";\n}\n\n.fa-hacker-news:before {\n    content: "\\f1d4";\n}\n\n.fa-hacker-news-square:before {\n    content: "\\f3af";\n}\n\n.fa-hackerrank:before {\n    content: "\\f5f7";\n}\n\n.fa-hamburger:before {\n    content: "\\f805";\n}\n\n.fa-hammer:before {\n    content: "\\f6e3";\n}\n\n.fa-hamsa:before {\n    content: "\\f665";\n}\n\n.fa-hand-holding:before {\n    content: "\\f4bd";\n}\n\n.fa-hand-holding-heart:before {\n    content: "\\f4be";\n}\n\n.fa-hand-holding-usd:before {\n    content: "\\f4c0";\n}\n\n.fa-hand-lizard:before {\n    content: "\\f258";\n}\n\n.fa-hand-middle-finger:before {\n    content: "\\f806";\n}\n\n.fa-hand-paper:before {\n    content: "\\f256";\n}\n\n.fa-hand-peace:before {\n    content: "\\f25b";\n}\n\n.fa-hand-point-down:before {\n    content: "\\f0a7";\n}\n\n.fa-hand-point-left:before {\n    content: "\\f0a5";\n}\n\n.fa-hand-point-right:before {\n    content: "\\f0a4";\n}\n\n.fa-hand-point-up:before {\n    content: "\\f0a6";\n}\n\n.fa-hand-pointer:before {\n    content: "\\f25a";\n}\n\n.fa-hand-rock:before {\n    content: "\\f255";\n}\n\n.fa-hand-scissors:before {\n    content: "\\f257";\n}\n\n.fa-hand-spock:before {\n    content: "\\f259";\n}\n\n.fa-hands:before {\n    content: "\\f4c2";\n}\n\n.fa-hands-helping:before {\n    content: "\\f4c4";\n}\n\n.fa-handshake:before {\n    content: "\\f2b5";\n}\n\n.fa-hanukiah:before {\n    content: "\\f6e6";\n}\n\n.fa-hard-hat:before {\n    content: "\\f807";\n}\n\n.fa-hashtag:before {\n    content: "\\f292";\n}\n\n.fa-hat-cowboy:before {\n    content: "\\f8c0";\n}\n\n.fa-hat-cowboy-side:before {\n    content: "\\f8c1";\n}\n\n.fa-hat-wizard:before {\n    content: "\\f6e8";\n}\n\n.fa-hdd:before {\n    content: "\\f0a0";\n}\n\n.fa-heading:before {\n    content: "\\f1dc";\n}\n\n.fa-headphones:before {\n    content: "\\f025";\n}\n\n.fa-headphones-alt:before {\n    content: "\\f58f";\n}\n\n.fa-headset:before {\n    content: "\\f590";\n}\n\n.fa-heart:before {\n    content: "\\f004";\n}\n\n.fa-heart-broken:before {\n    content: "\\f7a9";\n}\n\n.fa-heartbeat:before {\n    content: "\\f21e";\n}\n\n.fa-helicopter:before {\n    content: "\\f533";\n}\n\n.fa-highlighter:before {\n    content: "\\f591";\n}\n\n.fa-hiking:before {\n    content: "\\f6ec";\n}\n\n.fa-hippo:before {\n    content: "\\f6ed";\n}\n\n.fa-hips:before {\n    content: "\\f452";\n}\n\n.fa-hire-a-helper:before {\n    content: "\\f3b0";
1\n}\n\n.fa-history:before {\n    content: "\\f1da";\n}\n\n.fa-hockey-puck:before {\n    content: "\\f453";\n}\n\n.fa-holly-berry:before {\n    content: "\\f7aa";\n}\n\n.fa-home:before {\n    content: "\\f015";\n}\n\n.fa-hooli:before {\n    content: "\\f427";\n}\n\n.fa-hornbill:before {\n    content: "\\f592";\n}\n\n.fa-horse:before {\n    content: "\\f6f0";\n}\n\n.fa-horse-head:before {\n    content: "\\f7ab";\n}\n\n.fa-hospital:before {\n    content: "\\f0f8";\n}\n\n.fa-hospital-alt:before {\n    content: "\\f47d";\n}\n\n.fa-hospital-symbol:before {\n    content: "\\f47e";\n}\n\n.fa-hot-tub:before {\n    content: "\\f593";\n}\n\n.fa-hotdog:before {\n    content: "\\f80f";\n}\n\n.fa-hotel:before {\n    content: "\\f594";\n}\n\n.fa-hotjar:before {\n    content: "\\f3b1";\n}\n\n.fa-hourglass:before {\n    content: "\\f254";\n}\n\n.fa-hourglass-end:before {\n    content: "\\f253";\n}\n\n.fa-hourglass-half:before {\n    content: "\\f252";\n}\n\n.fa-hourglass-start:before {\n    content: "\\f251";\n}\n\n.fa-house-damage:before {\n    content: "\\f6f1";\n}\n\n.fa-houzz:before {\n    content: "\\f27c";\n}\n\n.fa-hryvnia:before {\n    content: "\\f6f2";\n}\n\n.fa-html5:before {\n    content: "\\f13b";\n}\n\n.fa-hubspot:before {\n    content: "\\f3b2";\n}\n\n.fa-i-cursor:before {\n    content: "\\f246";\n}\n\n.fa-ice-cream:before {\n    content: "\\f810";\n}\n\n.fa-icicles:before {\n    content: "\\f7ad";\n}\n\n.fa-icons:before {\n    content: "\\f86d";\n}\n\n.fa-id-badge:before {\n    content: "\\f2c1";\n}\n\n.fa-id-card:before {\n    content: "\\f2c2";\n}\n\n.fa-id-card-alt:before {\n    content: "\\f47f";\n}\n\n.fa-ideal:before {\n    content: "\\f913";\n}\n\n.fa-igloo:before {\n    content: "\\f7ae";\n}\n\n.fa-image:before {\n    content: "\\f03e";\n}\n\n.fa-images:before {\n    content: "\\f302";\n}\n\n.fa-imdb:before {\n    content: "\\f2d8";\n}\n\n.fa-inbox:before {\n    content: "\\f01c";\n}\n\n.fa-indent:before {\n    content: "\\f03c";\n}\n\n.fa-industry:before {\n    content: "\\f275";\n}\n\n.fa-infinity:before {\n    content: "\\f534";\n}\n\n.fa-info:before {\n    content: "\\f129";\n}\n\n.fa-info-circle:before {\n    content: "\\f05a";\n}\n\n.fa-instagram:before {\n    content: "\\f16d";\n}\n\n.fa-intercom:before {\n    content: "\\f7af";\n}\n\n.fa-internet-explorer:before {\n    content: "\\f26b";\n}\n\n.fa-invision:before {\n    content: "\\f7b0";\n}\n\n.fa-ioxhost:before {\n    content: "\\f208";\n}\n\n.fa-italic:before {\n    content: "\\f033";\n}\n\n.fa-itch-io:before {\n    content: "\\f83a";\n}\n\n.fa-itunes:before {\n    content: "\\f3b4";\n}\n\n.fa-itunes-note:before {\n    content: "\\f3b5";\n}\n\n.fa-java:before {\n    content: "\\f4e4";\n}\n\n.fa-jedi:before {\n    content: "\\f669";\n}\n\n.fa-jedi-order:before {\n    content: "\\f50e";\n}\n\n.fa-jenkins:before {\n    content: "\\f3b6";\n}\n\n.fa-jira:before {\n    content: "\\f7b1";\n}\n\n.fa-joget:before {\n    content: "\\f3b7";\n}\n\n.fa-joint:before {\n    content: "\\f595";\n}\n\n.fa-joomla:before {\n    content: "\\f1aa";\n}\n\n.fa-journal-whills:before {\n    content: "\\f66a";\n}\n\n.fa-js:before {\n    content: "\\f3b8";\n}\n\n.fa-js-square:before {\n    content: "\\f3b9";\n}\n\n.fa-jsfiddle:before {\n    content: "\\f1cc";\n}\n\n.fa-kaaba:before {\n    content: "\\f66b";\n}\n\n.fa-kaggle:before {\n    content: "\\f5fa";\n}\n\n.fa-key:before {\n    content: "\\f084";\n}\n\n.fa-keybase:before {\n    content: "\\f4f5";\n}\n\n.fa-keyboard:before {\n    content: "\\f11c";\n}\n\n.fa-keycdn:before {\n    content: "\\f3ba";\n}\n\n.fa-khanda:before {\n    content: "\\f66d";\n}\n\n.fa-kickstarter:before {\n    content: "\\f3bb";\n}\n\n.fa-kickstarter-k:before {\n    content: "\\f3bc";\n}\n\n.fa-kiss:before {\n    content: "\\f596";\n}\n\n.fa-kiss-beam:before {\n    content: "\\f597";\n}\n\n.fa-kiss-wink-heart:before {\n    content: "\\f598";\n}\n\n.fa-kiwi-bird:before {\n    content: "\\f535";\n}\n\n.fa-korvue:before {\n    content: "\\f42f";\n}\n\n.fa-landmark:before {\n    content: "\\f66f";\n}\n\n.fa-language:before {\n    content: "\\f1ab";\n}\n\n.fa-laptop:before {\n    content: "\\f109";\n}\n\n.fa-laptop-code:before {\n    content: "\\f5fc";\n}\n\n.fa-laptop-medical:before {\n    content: "\\f812";\n}\n\n.fa-laravel:before {\n    content: "\\f3bd";\n}\n\n.fa-lastfm:before {\n    content: "\\f202";\n}\n\n.fa-lastfm-square:before {\n    content: "\\f203";\n}\n\n.fa-laugh:before {\n    content: "\\f599";\n}\n\n.fa-laugh-beam:before {\n    content: "\\f59a";\n}\n\n.fa-laugh-squint:before {\n    content: "\\f59b";\n}\n\n.fa-laugh-wink:before {\n    content: "\\f59c";\n}\n\n.fa-layer-group:before {\n    content: "\\f5fd";\n}\n\n.fa-leaf:before {\n    content: "\\f06c";\n}\n\n.fa-leanpub:before {\n    content: "\\f212";\n}\n\n.fa-lemon:before {\n    content: "\\f094";\n}\n\n.fa-less:before {\n    content: "\\f41d";\n}\n\n.fa-less-than:before {\n    content: "\\f536";\n}\n\n.fa-less-than-equal:before {\n    content: "\\f537";\n}
1\n\n.fa-level-down-alt:before {\n    content: "\\f3be";\n}\n\n.fa-level-up-alt:before {\n    content: "\\f3bf";\n}\n\n.fa-life-ring:before {\n    content: "\\f1cd";\n}\n\n.fa-lightbulb:before {\n    content: "\\f0eb";\n}\n\n.fa-line:before {\n    content: "\\f3c0";\n}\n\n.fa-link:before {\n    content: "\\f0c1";\n}\n\n.fa-linkedin:before {\n    content: "\\f08c";\n}\n\n.fa-linkedin-in:before {\n    content: "\\f0e1";\n}\n\n.fa-linode:before {\n    content: "\\f2b8";\n}\n\n.fa-linux:before {\n    content: "\\f17c";\n}\n\n.fa-lira-sign:before {\n    content: "\\f195";\n}\n\n.fa-list:before {\n    content: "\\f03a";\n}\n\n.fa-list-alt:before {\n    content: "\\f022";\n}\n\n.fa-list-ol:before {\n    content: "\\f0cb";\n}\n\n.fa-list-ul:before {\n    content: "\\f0ca";\n}\n\n.fa-location-arrow:before {\n    content: "\\f124";\n}\n\n.fa-lock:before {\n    content: "\\f023";\n}\n\n.fa-lock-open:before {\n    content: "\\f3c1";\n}\n\n.fa-long-arrow-alt-down:before {\n    content: "\\f309";\n}\n\n.fa-long-arrow-alt-left:before {\n    content: "\\f30a";\n}\n\n.fa-long-arrow-alt-right:before {\n    content: "\\f30b";\n}\n\n.fa-long-arrow-alt-up:before {\n    content: "\\f30c";\n}\n\n.fa-low-vision:before {\n    content: "\\f2a8";\n}\n\n.fa-luggage-cart:before {\n    content: "\\f59d";\n}\n\n.fa-lyft:before {\n    content: "\\f3c3";\n}\n\n.fa-magento:before {\n    content: "\\f3c4";\n}\n\n.fa-magic:before {\n    content: "\\f0d0";\n}\n\n.fa-magnet:before {\n    content: "\\f076";\n}\n\n.fa-mail-bulk:before {\n    content: "\\f674";\n}\n\n.fa-mailchimp:before {\n    content: "\\f59e";\n}\n\n.fa-male:before {\n    content: "\\f183";\n}\n\n.fa-mandalorian:before {\n    content: "\\f50f";\n}\n\n.fa-map:before {\n    content: "\\f279";\n}\n\n.fa-map-marked:before {\n    content: "\\f59f";\n}\n\n.fa-map-marked-alt:before {\n    content: "\\f5a0";\n}\n\n.fa-map-marker:before {\n    content: "\\f041";\n}\n\n.fa-map-marker-alt:before {\n    content: "\\f3c5";\n}\n\n.fa-map-pin:before {\n    content: "\\f276";\n}\n\n.fa-map-signs:before {\n    content: "\\f277";\n}\n\n.fa-markdown:before {\n    content: "\\f60f";\n}\n\n.fa-marker:before {\n    content: "\\f5a1";\n}\n\n.fa-mars:before {\n    content: "\\f222";\n}\n\n.fa-mars-double:before {\n    content: "\\f227";\n}\n\n.fa-mars-stroke:before {\n    content: "\\f229";\n}\n\n.fa-mars-stroke-h:before {\n    content: "\\f22b";\n}\n\n.fa-mars-stroke-v:before {\n    content: "\\f22a";\n}\n\n.fa-mask:before {\n    content: "\\f6fa";\n}\n\n.fa-mastodon:before {\n    content: "\\f4f6";\n}\n\n.fa-maxcdn:before {\n    content: "\\f136";\n}\n\n.fa-mdb:before {\n    content: "\\f8ca";\n}\n\n.fa-medal:before {\n    content: "\\f5a2";\n}\n\n.fa-medapps:before {\n    content: "\\f3c6";\n}\n\n.fa-medium:before {\n    content: "\\f23a";\n}\n\n.fa-medium-m:before {\n    content: "\\f3c7";\n}\n\n.fa-medkit:before {\n    content: "\\f0fa";\n}\n\n.fa-medrt:before {\n    content: "\\f3c8";\n}\n\n.fa-meetup:before {\n    content: "\\f2e0";\n}\n\n.fa-megaport:before {\n    content: "\\f5a3";\n}\n\n.fa-meh:before {\n    content: "\\f11a";\n}\n\n.fa-meh-blank:before {\n    content: "\\f5a4";\n}\n\n.fa-meh-rolling-eyes:before {\n    content: "\\f5a5";\n}\n\n.fa-memory:before {\n    content: "\\f538";\n}\n\n.fa-mendeley:before {\n    content: "\\f7b3";\n}\n\n.fa-menorah:before {\n    content: "\\f676";\n}\n\n.fa-mercury:before {\n    content: "\\f223";\n}\n\n.fa-meteor:before {\n    content: "\\f753";\n}\n\n.fa-microblog:before {\n    content: "\\f91a";\n}\n\n.fa-microchip:before {\n    content: "\\f2db";\n}\n\n.fa-microphone:before {\n    content: "\\f130";\n}\n\n.fa-microphone-alt:before {\n    content: "\\f3c9";\n}\n\n.fa-microphone-alt-slash:before {\n    content: "\\f539";\n}\n\n.fa-microphone-slash:before {\n    content: "\\f131";\n}\n\n.fa-microscope:before {\n    content: "\\f610";\n}\n\n.fa-microsoft:before {\n    content: "\\f3ca";\n}\n\n.fa-minus:before {\n    content: "\\f068";\n}\n\n.fa-minus-circle:before {\n    content: "\\f056";\n}\n\n.fa-minus-square:before {\n    content: "\\f146";\n}\n\n.fa-mitten:before {\n    content: "\\f7b5";\n}\n\n.fa-mix:before {\n    content: "\\f3cb";\n}\n\n.fa-mixcloud:before {\n    content: "\\f289";\n}\n\n.fa-mizuni:before {\n    content: "\\f3cc";\n}\n\n.fa-mobile:before {\n    content: "\\f10b";\n}\n\n.fa-mobile-alt:before {\n    content: "\\f3cd";\n}\n\n.fa-modx:before {\n    content: "\\f285";\n}\n\n.fa-monero:before {\n    content: "\\f3d0";\n}\n\n.fa-money-bill:before {\n    content: "\\f0d6";\n}\n\n.fa-money-bill-alt:before {\n    content: "\\f3d1";\n}\n\n.fa-money-bill-wave:before {\n    content: "\\f53a";\n}\n\n.fa-money-bill-wave-alt:before {\n    content: "\\f53b";\n}\n\n.fa-money-check:before {\n    content: "\\f53c";\n}\n\n.fa-money-check-alt:before {\n    content: "\\f53d";\n}\n\n.fa-monument:before {\n    content: "\\f5a6";\n}\n\n.fa-moon:before {\n    content: "\\f186";\n}\n\n.fa-mortar-pestle:before {\n    content: "\\f5a7";\n}\n\n.fa-mosque:before {\n    content: "\\f678";\n}\n\n.fa-motorcycle:before {\n    content: "\\f21c";\n}\n\n.fa-mountain:before {\n    content: "\\f6fc";\n}\n\n.fa-mouse:before {\n    content: "\\f8cc";\n}\n\n.fa-mouse-pointer:before {\n    content: "\\f245";\n}\n\n.fa-mug-hot:before {\n    content: "\\f7b6";\n}\n\n.fa-music:before {\n    content: "\\f001";\n}\n\n.fa-napster:before {\n    content: "\\f3d2";\n}\n\n.fa-neos:before {\n    content: "\\f612";\n}\n\n.fa-network-wired:before {\n    content: "\\f6ff";\n}\n\n.fa-neuter:before {\n    content: "\\f22c";\n}\n\n.fa-newspaper:before {\n    content: "\\f1ea";\n}\n\n.fa-nimblr:before {\n    content: "\\f5a8";\n}\n\n.fa-node:before {\n    content: "\\f419";\n}\n\n.fa-node-js:before {\n    content: "\\f3d3";\n}\n\n.fa-not-equal:before {\n    content: "\\f53e";\n}\n\n.fa-notes-medical:before {\n    content: "\\f481";\n}\n\n.fa-npm:before {\n    content: "\\f3d4";\n}\n\n.fa-ns8:before {\n    content: "\\f3d5";\n}\n\n.fa-nutritionix:before {\n    content: "\\f3d6";\n}\n\n.fa-object-group:before {\n    content: "\\f247";\n}\n\n.fa-object-ungroup:before {\n    content: "\\f248";\n}\n\n.fa-odnoklassniki:before {\n    content: "\\f263";\n}\n\n.fa-odnoklassniki-square:before {\n    content: "\\f264";\n}\n\n.fa-oil-can:before {\n    content: "\\f613";\n}\n\n.fa-old-republic:before {\n    content: "\\f510";\n}\n\n.fa-om:before {\n    content: "\\f679";\n}\n\n.fa-opencart:before {\n    content: "\\f23d";\n}\n\n.fa-openid:before {\n    content: "\\f19b";\n}\n\n.fa-opera:before {\n    content: "\\f26a";\n}\n\n.fa-optin-monster:before {\n    content: "\\f23c";\n}\n\n.fa-orcid:before {\n    content: "\\f8d2";\n}\n\n.fa-osi:before {\n    content: "\\f41a";\n}\n\n.fa-otter:before {\n    content: "\\f700";\n}\n\n.fa-outdent:before {\n    content: "\\f03b";\n}\n\n.fa-page4:before {\n    content: "\\f3d7";\n}\n\n.fa-pagelines:before {\n    content: "\\f18c";
1\n}\n\n.fa-pager:before {\n    content: "\\f815";\n}\n\n.fa-paint-brush:before {\n    content: "\\f1fc";\n}\n\n.fa-paint-roller:before {\n    content: "\\f5aa";\n}\n\n.fa-palette:before {\n    content: "\\f53f";\n}\n\n.fa-palfed:before {\n    content: "\\f3d8";\n}\n\n.fa-pallet:before {\n    content: "\\f482";\n}\n\n.fa-paper-plane:before {\n    content: "\\f1d8";\n}\n\n.fa-paperclip:before {\n    content: "\\f0c6";\n}\n\n.fa-parachute-box:before {\n    content: "\\f4cd";\n}\n\n.fa-paragraph:before {\n    content: "\\f1dd";\n}\n\n.fa-parking:before {\n    content: "\\f540";\n}\n\n.fa-passport:before {\n    content: "\\f5ab";\n}\n\n.fa-pastafarianism:before {\n    content: "\\f67b";\n}\n\n.fa-paste:before {\n    content: "\\f0ea";\n}\n\n.fa-patreon:before {\n    content: "\\f3d9";\n}\n\n.fa-pause:before {\n    content: "\\f04c";\n}\n\n.fa-pause-circle:before {\n    content: "\\f28b";\n}\n\n.fa-paw:before {\n    content: "\\f1b0";\n}\n\n.fa-paypal:before {\n    content: "\\f1ed";\n}\n\n.fa-peace:before {\n    content: "\\f67c";\n}\n\n.fa-pen:before {\n    content: "\\f304";\n}\n\n.fa-pen-alt:before {\n    content: "\\f305";\n}\n\n.fa-pen-fancy:before {\n    content: "\\f5ac";\n}\n\n.fa-pen-nib:before {\n    content: "\\f5ad";\n}\n\n.fa-pen-square:before {\n    content: "\\f14b";\n}\n\n.fa-pencil-alt:before {\n    content: "\\f303";\n}\n\n.fa-pencil-ruler:before {\n    content: "\\f5ae";\n}\n\n.fa-penny-arcade:before {\n    content: "\\f704";\n}\n\n.fa-people-carry:before {\n    content: "\\f4ce";\n}\n\n.fa-pepper-hot:before {\n    content: "\\f816";\n}\n\n.fa-percent:before {\n    content: "\\f295";\n}\n\n.fa-percentage:before {\n    content: "\\f541";\n}\n\n.fa-periscope:before {\n    content: "\\f3da";\n}\n\n.fa-person-booth:before {\n    content: "\\f756";\n}\n\n.fa-phabricator:before {\n    content: "\\f3db";\n}\n\n.fa-phoenix-framework:before {\n    content: "\\f3dc";\n}\n\n.fa-phoenix-squadron:before {\n    content: "\\f511";\n}\n\n.fa-phone:before {\n    content: "\\f095";\n}\n\n.fa-phone-alt:before {\n    content: "\\f879";\n}\n\n.fa-phone-slash:before {\n    content: "\\f3dd";\n}\n\n.fa-phone-square:before {\n    content: "\\f098";\n}\n\n.fa-phone-square-alt:before {\n    content: "\\f87b";\n}\n\n.fa-phone-volume:before {\n    content: "\\f2a0";\n}\n\n.fa-photo-video:before {\n    content: "\\f87c";\n}\n\n.fa-php:before {\n    content: "\\f457";\n}\n\n.fa-pied-piper:before {\n    content: "\\f2ae";\n}\n\n.fa-pied-piper-alt:before {\n    content: "\\f1a8";\n}\n\n.fa-pied-piper-hat:before {\n    content: "\\f4e5";\n}\n\n.fa-pied-piper-pp:before {\n    content: "\\f1a7";\n}\n\n.fa-pied-piper-square:before {\n    content: "\\f91e";\n}\n\n.fa-piggy-bank:before {\n    content: "\\f4d3";\n}\n\n.fa-pills:before {\n    content: "\\f484";\n}\n\n.fa-pinterest:before {\n    content: "\\f0d2";\n}\n\n.fa-pinterest-p:before {\n    content: "\\f231";\n}\n\n.fa-pinterest-square:before {\n    content: "\\f0d3";\n}\n\n.fa-pizza-slice:before {\n    content: "\\f818";\n}\n\n.fa-place-of-worship:before {\n    content: "\\f67f";\n}\n\n.fa-plane:before {\n    content: "\\f072";\n}\n\n.fa-plane-arrival:before {\n    content: "\\f5af";\n}\n\n.fa-plane-departure:before {\n    content: "\\f5b0";\n}\n\n.fa-play:before {\n    content: "\\f04b";\n}\n\n.fa-play-circle:before {\n    content: "\\f144";\n}\n\n.fa-playstation:before {\n    content: "\\f3df";\n}\n\n.fa-plug:before {\n    content: "\\f1e6";\n}\n\n.fa-plus:before {\n    content: "\\f067";\n}\n\n.fa-plus-circle:before {\n    content: "\\f055";\n}\n\n.fa-plus-square:before {\n    content: "\\f0fe";\n}\n\n.fa-podcast:before {\n    content: "\\f2ce";\n}\n\n.fa-poll:before {\n    content: "\\f681";\n}\n\n.fa-poll-h:before {\n    content: "\\f682";\n}\n\n.fa-poo:before {\n    content: "\\f2fe";\n}\n\n.fa-poo-storm:before {\n    content: "\\f75a";\n}\n\n.fa-poop:before {\n    content: "\\f619";\n}\n\n.fa-portrait:before {\n    content: "\\f3e0";\n}\n\n.fa-pound-sign:before {\n    content: "\\f154";\n}\n\n.fa-power-off:before {\n    content: "\\f011";\n}\n\n.fa-pray:before {\n    content: "\\f683";\n}\n\n.fa-praying-hands:before {\n    content: "\\f684";\n}\n\n.fa-prescription:before {\n    content: "\\f5b1";\n}\n\n.fa-prescription-bottle:before {\n    content: "\\f485";\n}\n\n.fa-prescription-bottle-alt:before {\n    content: "\\f486";\n}\n\n.fa-print:before {\n    content: "\\f02f";\n}\n\n.fa-procedures:before {\n    content: "\\f487";\n}\n\n.fa-product-hunt:before {\n    content: "\\f288";\n}\n\n.fa-project-diagram:before {\n    content: "\\f542";\n}\n\n.fa-pushed:before {\n    content: "\\f3e1";\n}\n\n.fa-puzzle-piece:before {\n    content: "\\f12e";\n}\n\n.fa-python:before {\n    content: "\\f3e2";\n}\n\n.fa-qq:before {\n    content: "\\f1d6";\n}\n\n.fa-qrcode:before {\n    content: "\\f029";\n}\n\n.fa-question:before {\n    content: "\\f128";\n}\n\n.fa-question-circle:before {\n    content: "\\f059";\n}\n\n.fa-quidditch:before {\n    content: "\\f458";\n}\n\n.fa-quinscape:before {\n    content: "\\f459";\n}\n\n.fa-quora:before {\n    content: "\\f2c4";\n}\n\n.fa-quote-left:before {\n    content: "\\f10d";\n}\n\n.fa-quote-right:before {\n    content: "\\f10e";\n}\n\n.fa-quran:before {\n    content: "\\f687";\n}\n\n.fa-r-project:before {\n    content: "\\f4f7";\n}\n\n.fa-radiation:before {\n    content: "\\f7b9";\n}\n\n.fa-radiation-alt:before {\n    content: "\\f7ba";\n}\n\n.fa-rainbow:before {\n    content: "\\f75b";\n}\n\n.fa-random:before {\n    content: "\\f074";\n}\n\n.fa-raspberry-pi:before {\n    content: "\\f7bb";\n}\n\n.fa-ravelry:before {\n    content: "\\f2d9";\n}\n\n.fa-react:before {\n    content: "\\f41b";\n}\n\n.fa-reacteurope:before {\n    content: "\\f75d";\n}\n\n.fa-readme:before {\n    content: "\\f4d5";\n}\n\n.fa-rebel:before {\n    content: "\\f1d0";\n}\n\n.fa-receipt:before {\n    content: "\\f543";\n}\n\n.fa-record-vinyl:before {\n    content: "\\f8d9";\n}\n\n.fa-recycle:before {\n    content: "\\f1b8";\n}\n\n.fa-red-river:before {\n    content: "\\f3e3";\n}\n\n.fa-reddit:before {\n    content: "\\f1a1";\n}\n\n.fa-reddit-alien:before {\n    content: "\\f281";\n}\n\n.fa-reddit-square:before {\n    content: "\\f1a2";\n}\n\n.fa-redhat:before {\n    content: "\\f7bc";\n}\n\n.fa-redo:before {\n    content: "\\f01e";\n}\n\n.fa-redo-alt:before {\n    content: "\\f2f9";\n}\n\n.fa-registered:before {\n    content: "\\f25d";
1\n}\n\n.fa-remove-format:before {\n    content: "\\f87d";\n}\n\n.fa-renren:before {\n    content: "\\f18b";\n}\n\n.fa-reply:before {\n    content: "\\f3e5";\n}\n\n.fa-reply-all:before {\n    content: "\\f122";\n}\n\n.fa-replyd:before {\n    content: "\\f3e6";\n}\n\n.fa-republican:before {\n    content: "\\f75e";\n}\n\n.fa-researchgate:before {\n    content: "\\f4f8";\n}\n\n.fa-resolving:before {\n    content: "\\f3e7";\n}\n\n.fa-restroom:before {\n    content: "\\f7bd";\n}\n\n.fa-retweet:before {\n    content: "\\f079";\n}\n\n.fa-rev:before {\n    content: "\\f5b2";\n}\n\n.fa-ribbon:before {\n    content: "\\f4d6";\n}\n\n.fa-ring:before {\n    content: "\\f70b";\n}\n\n.fa-road:before {\n    content: "\\f018";\n}\n\n.fa-robot:before {\n    content: "\\f544";\n}\n\n.fa-rocket:before {\n    content: "\\f135";\n}\n\n.fa-rocketchat:before {\n    content: "\\f3e8";\n}\n\n.fa-rockrms:before {\n    content: "\\f3e9";\n}\n\n.fa-route:before {\n    content: "\\f4d7";\n}\n\n.fa-rss:before {\n    content: "\\f09e";\n}\n\n.fa-rss-square:before {\n    content: "\\f143";\n}\n\n.fa-ruble-sign:before {\n    content: "\\f158";\n}\n\n.fa-ruler:before {\n    content: "\\f545";\n}\n\n.fa-ruler-combined:before {\n    content: "\\f546";\n}\n\n.fa-ruler-horizontal:before {\n    content: "\\f547";\n}\n\n.fa-ruler-vertical:before {\n    content: "\\f548";\n}\n\n.fa-running:before {\n    content: "\\f70c";\n}\n\n.fa-rupee-sign:before {\n    content: "\\f156";\n}\n\n.fa-sad-cry:before {\n    content: "\\f5b3";\n}\n\n.fa-sad-tear:before {\n    content: "\\f5b4";\n}\n\n.fa-safari:before {\n    content: "\\f267";\n}\n\n.fa-salesforce:before {\n    content: "\\f83b";\n}\n\n.fa-sass:before {\n    content: "\\f41e";\n}\n\n.fa-satellite:before {\n    content: "\\f7bf";\n}\n\n.fa-satellite-dish:before {\n    content: "\\f7c0";\n}\n\n.fa-save:before {\n    content: "\\f0c7";\n}\n\n.fa-schlix:before {\n    content: "\\f3ea";\n}\n\n.fa-school:before {\n    content: "\\f549";\n}\n\n.fa-screwdriver:before {\n    content: "\\f54a";\n}\n\n.fa-scribd:before {\n    content: "\\f28a";\n}\n\n.fa-scroll:before {\n    content: "\\f70e";\n}\n\n.fa-sd-card:before {\n    content: "\\f7c2";\n}\n\n.fa-search:before {\n    content: "\\f002";\n}\n\n.fa-search-dollar:before {\n    content: "\\f688";\n}\n\n.fa-search-location:before {\n    content: "\\f689";\n}\n\n.fa-search-minus:before {\n    content: "\\f010";\n}\n\n.fa-search-plus:before {\n    content: "\\f00e";\n}\n\n.fa-searchengin:before {\n    content: "\\f3eb";\n}\n\n.fa-seedling:before {\n    content: "\\f4d8";\n}\n\n.fa-sellcast:before {\n    content: "\\f2da";\n}\n\n.fa-sellsy:before {\n    content: "\\f213";\n}\n\n.fa-server:before {\n    content: "\\f233";\n}\n\n.fa-servicestack:before {\n    content: "\\f3ec";\n}\n\n.fa-shapes:before {\n    content: "\\f61f";\n}\n\n.fa-share:before {\n    content: "\\f064";\n}\n\n.fa-share-alt:before {\n    content: "\\f1e0";\n}\n\n.fa-share-alt-square:before {\n    content: "\\f1e1";\n}\n\n.fa-share-square:before {\n    content: "\\f14d";\n}\n\n.fa-shekel-sign:before {\n    content: "\\f20b";\n}\n\n.fa-shield-alt:before {\n    content: "\\f3ed";\n}\n\n.fa-ship:before {\n    content: "\\f21a";\n}\n\n.fa-shipping-fast:before {\n    content: "\\f48b";\n}\n\n.fa-shirtsinbulk:before {\n    content: "\\f214";\n}\n\n.fa-shoe-prints:before {\n    content: "\\f54b";\n}\n\n.fa-shopping-bag:before {\n    content: "\\f290";\n}\n\n.fa-shopping-basket:before {\n    content: "\\f291";\n}\n\n.fa-shopping-cart:before {\n    content: "\\f07a";\n}\n\n.fa-shopware:before {\n    content: "\\f5b5";\n}\n\n.fa-shower:before {\n    content: "\\f2cc";\n}\n\n.fa-shuttle-van:before {\n    content: "\\f5b6";\n}\n\n.fa-sign:before {\n    content: "\\f4d9";\n}\n\n.fa-sign-in-alt:before {\n    content: "\\f2f6";\n}\n\n.fa-sign-language:before {\n    content: "\\f2a7";\n}\n\n.fa-sign-out-alt:before {\n    content: "\\f2f5";\n}\n\n.fa-signal:before {\n    content: "\\f012";\n}\n\n.fa-signature:before {\n    content: "\\f5b7";\n}\n\n.fa-sim-card:before {\n    content: "\\f7c4";\n}\n\n.fa-simplybuilt:before {\n    content: "\\f215";\n}\n\n.fa-sistrix:before {\n    content: "\\f3ee";\n}\n\n.fa-sitemap:before {\n    content: "\\f0e8";\n}\n\n.fa-sith:before {\n    content: "\\f512";\n}\n\n.fa-skating:before {\n    content: "\\f7c5";\n}\n\n.fa-sketch:before {\n    content: "\\f7c6";\n}\n\n.fa-skiing:before {\n    content: "\\f7c9";\n}\n\n.fa-skiing-nordic:before {\n    content: "\\f7ca";
1\n}\n\n.fa-skull:before {\n    content: "\\f54c";\n}\n\n.fa-skull-crossbones:before {\n    content: "\\f714";\n}\n\n.fa-skyatlas:before {\n    content: "\\f216";\n}\n\n.fa-skype:before {\n    content: "\\f17e";\n}\n\n.fa-slack:before {\n    content: "\\f198";\n}\n\n.fa-slack-hash:before {\n    content: "\\f3ef";\n}\n\n.fa-slash:before {\n    content: "\\f715";\n}\n\n.fa-sleigh:before {\n    content: "\\f7cc";\n}\n\n.fa-sliders-h:before {\n    content: "\\f1de";\n}\n\n.fa-slideshare:before {\n    content: "\\f1e7";\n}\n\n.fa-smile:before {\n    content: "\\f118";\n}\n\n.fa-smile-beam:before {\n    content: "\\f5b8";\n}\n\n.fa-smile-wink:before {\n    content: "\\f4da";\n}\n\n.fa-smog:before {\n    content: "\\f75f";\n}\n\n.fa-smoking:before {\n    content: "\\f48d";\n}\n\n.fa-smoking-ban:before {\n    content: "\\f54d";\n}\n\n.fa-sms:before {\n    content: "\\f7cd";\n}\n\n.fa-snapchat:before {\n    content: "\\f2ab";\n}\n\n.fa-snapchat-ghost:before {\n    content: "\\f2ac";\n}\n\n.fa-snapchat-square:before {\n    content: "\\f2ad";\n}\n\n.fa-snowboarding:before {\n    content: "\\f7ce";\n}\n\n.fa-snowflake:before {\n    content: "\\f2dc";\n}\n\n.fa-snowman:before {\n    content: "\\f7d0";\n}\n\n.fa-snowplow:before {\n    content: "\\f7d2";\n}\n\n.fa-socks:before {\n    content: "\\f696";\n}\n\n.fa-solar-panel:before {\n    content: "\\f5ba";\n}\n\n.fa-sort:before {\n    content: "\\f0dc";\n}\n\n.fa-sort-alpha-down:before {\n    content: "\\f15d";\n}\n\n.fa-sort-alpha-down-alt:before {\n    content: "\\f881";\n}\n\n.fa-sort-alpha-up:before {\n    content: "\\f15e";\n}\n\n.fa-sort-alpha-up-alt:before {\n    content: "\\f882";\n}\n\n.fa-sort-amount-down:before {\n    content: "\\f160";\n}\n\n.fa-sort-amount-down-alt:before {\n    content: "\\f884";\n}\n\n.fa-sort-amount-up:before {\n    content: "\\f161";\n}\n\n.fa-sort-amount-up-alt:before {\n    content: "\\f885";\n}\n\n.fa-sort-down:before {\n    content: "\\f0dd";\n}\n\n.fa-sort-numeric-down:before {\n    content: "\\f162";\n}\n\n.fa-sort-numeric-down-alt:before {\n    content: "\\f886";\n}\n\n.fa-sort-numeric-up:before {\n    content: "\\f163";\n}\n\n.fa-sort-numeric-up-alt:before {\n    content: "\\f887";\n}\n\n.fa-sort-up:before {\n    content: "\\f0de";\n}\n\n.fa-soundcloud:before {\n    content: "\\f1be";\n}\n\n.fa-sourcetree:before {\n    content: "\\f7d3";\n}\n\n.fa-spa:before {\n    content: "\\f5bb";\n}\n\n.fa-space-shuttle:before {\n    content: "\\f197";\n}\n\n.fa-speakap:before {\n    content: "\\f3f3";\n}\n\n.fa-speaker-deck:before {\n    content: "\\f83c";\n}\n\n.fa-spell-check:before {\n    content: "\\f891";\n}\n\n.fa-spider:before {\n    content: "\\f717";\n}\n\n.fa-spinner:before {\n    content: "\\f110";\n}\n\n.fa-splotch:before {\n    content: "\\f5bc";\n}\n\n.fa-spotify:before {\n    content: "\\f1bc";\n}\n\n.fa-spray-can:before {\n    content: "\\f5bd";\n}\n\n.fa-square:before {\n    content: "\\f0c8";\n}\n\n.fa-square-full:before {\n    content: "\\f45c";\n}\n\n.fa-square-root-alt:before {\n    content: "\\f698";\n}\n\n.fa-squarespace:before {\n    content: "\\f5be";\n}\n\n.fa-stack-exchange:before {\n    content: "\\f18d";\n}\n\n.fa-stack-overflow:before {\n    content: "\\f16c";\n}\n\n.fa-stackpath:before {\n    content: "\\f842";\n}\n\n.fa-stamp:before {\n    content: "\\f5bf";\n}\n\n.fa-star:before {\n    content: "\\f005";\n}\n\n.fa-star-and-crescent:before {\n    content: "\\f699";\n}\n\n.fa-star-half:before {\n    content: "\\f089";\n}\n\n.fa-star-half-alt:before {\n    content: "\\f5c0";\n}\n\n.fa-star-of-david:before {\n    content: "\\f69a";\n}\n\n.fa-star-of-life:before {\n    content: "\\f621";\n}\n\n.fa-staylinked:before {\n    content: "\\f3f5";\n}\n\n.fa-steam:before {\n    content: "\\f1b6";\n}\n\n.fa-steam-square:before {\n    content: "\\f1b7";\n}\n\n.fa-steam-symbol:before {\n    content: "\\f3f6";\n}\n\n.fa-step-backward:before {\n    content: "\\f048";\n}\n\n.fa-step-forward:before {\n    content: "\\f051";\n}\n\n.fa-stethoscope:before {\n    content: "\\f0f1";\n}\n\n.fa-sticker-mule:before {\n    content: "\\f3f7";\n}\n\n.fa-sticky-note:before {\n    content: "\\f249";\n}\n\n.fa-stop:before {\n    content: "\\f04d";\n}\n\n.fa-stop-circle:before {\n    content: "\\f28d";\n}\n\n.fa-stopwatch:before {\n    content: "\\f2f2";\n}\n\n.fa-store:before {\n    content: "\\f54e";\n}\n\n.fa-store-alt:before {\n    content: "\\f54f";\n}\n\n.fa-strava:before {\n    content: "\\f428";\n}\n\n.fa-stream:before {\n    content: "\\f550";\n}
1\n\n.fa-street-view:before {\n    content: "\\f21d";\n}\n\n.fa-strikethrough:before {\n    content: "\\f0cc";\n}\n\n.fa-stripe:before {\n    content: "\\f429";\n}\n\n.fa-stripe-s:before {\n    content: "\\f42a";\n}\n\n.fa-stroopwafel:before {\n    content: "\\f551";\n}\n\n.fa-studiovinari:before {\n    content: "\\f3f8";\n}\n\n.fa-stumbleupon:before {\n    content: "\\f1a4";\n}\n\n.fa-stumbleupon-circle:before {\n    content: "\\f1a3";\n}\n\n.fa-subscript:before {\n    content: "\\f12c";\n}\n\n.fa-subway:before {\n    content: "\\f239";\n}\n\n.fa-suitcase:before {\n    content: "\\f0f2";\n}\n\n.fa-suitcase-rolling:before {\n    content: "\\f5c1";\n}\n\n.fa-sun:before {\n    content: "\\f185";\n}\n\n.fa-superpowers:before {\n    content: "\\f2dd";\n}\n\n.fa-superscript:before {\n    content: "\\f12b";\n}\n\n.fa-supple:before {\n    content: "\\f3f9";\n}\n\n.fa-surprise:before {\n    content: "\\f5c2";\n}\n\n.fa-suse:before {\n    content: "\\f7d6";\n}\n\n.fa-swatchbook:before {\n    content: "\\f5c3";\n}\n\n.fa-swift:before {\n    content: "\\f8e1";\n}\n\n.fa-swimmer:before {\n    content: "\\f5c4";\n}\n\n.fa-swimming-pool:before {\n    content: "\\f5c5";\n}\n\n.fa-symfony:before {\n    content: "\\f83d";\n}\n\n.fa-synagogue:before {\n    content: "\\f69b";\n}\n\n.fa-sync:before {\n    content: "\\f021";\n}\n\n.fa-sync-alt:before {\n    content: "\\f2f1";\n}\n\n.fa-syringe:before {\n    content: "\\f48e";\n}\n\n.fa-table:before {\n    content: "\\f0ce";\n}\n\n.fa-table-tennis:before {\n    content: "\\f45d";\n}\n\n.fa-tablet:before {\n    content: "\\f10a";\n}\n\n.fa-tablet-alt:before {\n    content: "\\f3fa";\n}\n\n.fa-tablets:before {\n    content: "\\f490";\n}\n\n.fa-tachometer-alt:before {\n    content: "\\f3fd";\n}\n\n.fa-tag:before {\n    content: "\\f02b";\n}\n\n.fa-tags:before {\n    content: "\\f02c";\n}\n\n.fa-tape:before {\n    content: "\\f4db";\n}\n\n.fa-tasks:before {\n    content: "\\f0ae";\n}\n\n.fa-taxi:before {\n    content: "\\f1ba";\n}\n\n.fa-teamspeak:before {\n    content: "\\f4f9";\n}\n\n.fa-teeth:before {\n    content: "\\f62e";\n}\n\n.fa-teeth-open:before {\n    content: "\\f62f";\n}\n\n.fa-telegram:before {\n    content: "\\f2c6";\n}\n\n.fa-telegram-plane:before {\n    content: "\\f3fe";\n}\n\n.fa-temperature-high:before {\n    content: "\\f769";\n}\n\n.fa-temperature-low:before {\n    content: "\\f76b";\n}\n\n.fa-tencent-weibo:before {\n    content: "\\f1d5";\n}\n\n.fa-tenge:before {\n    content: "\\f7d7";\n}\n\n.fa-terminal:before {\n    content: "\\f120";\n}\n\n.fa-text-height:before {\n    content: "\\f034";\n}\n\n.fa-text-width:before {\n    content: "\\f035";\n}\n\n.fa-th:before {\n    content: "\\f00a";\n}\n\n.fa-th-large:before {\n    content: "\\f009";\n}\n\n.fa-th-list:before {\n    content: "\\f00b";\n}\n\n.fa-the-red-yeti:before {\n    content: "\\f69d";\n}\n\n.fa-theater-masks:before {\n    content: "\\f630";\n}\n\n.fa-themeco:before {\n    content: "\\f5c6";\n}\n\n.fa-themeisle:before {\n    content: "\\f2b2";\n}\n\n.fa-thermometer:before {\n    content: "\\f491";\n}\n\n.fa-thermometer-empty:before {\n    content: "\\f2cb";\n}\n\n.fa-thermometer-full:before {\n    content: "\\f2c7";\n}\n\n.fa-thermometer-half:before {\n    content: "\\f2c9";\n}\n\n.fa-thermometer-quarter:before {\n    content: "\\f2ca";\n}\n\n.fa-thermometer-three-quarters:before {\n    content: "\\f2c8";\n}\n\n.fa-think-peaks:before {\n    content: "\\f731";\n}\n\n.fa-thumbs-down:before {\n    content: "\\f165";\n}\n\n.fa-thumbs-up:before {\n    content: "\\f164";\n}\n\n.fa-thumbtack:before {\n    content: "\\f08d";\n}\n\n.fa-ticket-alt:before {\n    content: "\\f3ff";\n}\n\n.fa-times:before {\n    content: "\\f00d";\n}\n\n.fa-times-circle:before {\n    content: "\\f057";\n}\n\n.fa-tint:before {\n    content: "\\f043";\n}\n\n.fa-tint-slash:before {\n    content: "\\f5c7";\n}\n\n.fa-tired:before {\n    content: "\\f5c8";\n}\n\n.fa-toggle-off:before {\n    content: "\\f204";\n}\n\n.fa-toggle-on:before {\n    content: "\\f205";\n}\n\n.fa-toilet:before {\n    content: "\\f7d8";\n}\n\n.fa-toilet-paper:before {\n    content: "\\f71e";\n}\n\n.fa-toolbox:before {\n    content: "\\f552";\n}\n\n.fa-tools:before {\n    content: "\\f7d9";\n}\n\n.fa-tooth:before {\n    content: "\\f5c9";\n}\n\n.fa-torah:before {\n    content: "\\f6a0";\n}\n\n.fa-torii-gate:before {\n    content: "\\f6a1";\n}\n\n.fa-tractor:before {\n    content: "\\f722";\n}\n\n.fa-trade-federation:before {\n    content: "\\f513";\n}\n\n.fa-trademark:before {\n    content: "\\f25c";\n}\n\n.fa-traffic-light:before {\n    content: "\\f637";\n}\n\n.fa-trailer:before {\n    content: "\\f941";\n}\n\n.fa-train:before {\n    content: "\\f238";\n}\n\n.fa-tram:before {\n    content: "\\f7da";\n}\n\n.fa-transgender:before {\n    content: "\\f224";\n}\n\n.fa-transgender-alt:before {\n    content: "\\f225";\n}\n\n.fa-trash:before {\n    content: "\\f1f8";\n}\n\n.fa-trash-alt:before {\n    content: "\\f2ed";\n}\n\n.fa-trash-restore:before {\n    content: "\\f829";\n}\n\n.fa-trash-restore-alt:before {\n    content: "\\f82a";\n}\n\n.fa-tree:before {\n    content: "\\f1bb";\n}\n\n.fa-trello:before {\n    content: "\\f181";
1\n}\n\n.fa-tripadvisor:before {\n    content: "\\f262";\n}\n\n.fa-trophy:before {\n    content: "\\f091";\n}\n\n.fa-truck:before {\n    content: "\\f0d1";\n}\n\n.fa-truck-loading:before {\n    content: "\\f4de";\n}\n\n.fa-truck-monster:before {\n    content: "\\f63b";\n}\n\n.fa-truck-moving:before {\n    content: "\\f4df";\n}\n\n.fa-truck-pickup:before {\n    content: "\\f63c";\n}\n\n.fa-tshirt:before {\n    content: "\\f553";\n}\n\n.fa-tty:before {\n    content: "\\f1e4";\n}\n\n.fa-tumblr:before {\n    content: "\\f173";\n}\n\n.fa-tumblr-square:before {\n    content: "\\f174";\n}\n\n.fa-tv:before {\n    content: "\\f26c";\n}\n\n.fa-twitch:before {\n    content: "\\f1e8";\n}\n\n.fa-twitter:before {\n    content: "\\f099";\n}\n\n.fa-twitter-square:before {\n    content: "\\f081";\n}\n\n.fa-typo3:before {\n    content: "\\f42b";\n}\n\n.fa-uber:before {\n    content: "\\f402";\n}\n\n.fa-ubuntu:before {\n    content: "\\f7df";\n}\n\n.fa-uikit:before {\n    content: "\\f403";\n}\n\n.fa-umbraco:before {\n    content: "\\f8e8";\n}\n\n.fa-umbrella:before {\n    content: "\\f0e9";\n}\n\n.fa-umbrella-beach:before {\n    content: "\\f5ca";\n}\n\n.fa-underline:before {\n    content: "\\f0cd";\n}\n\n.fa-undo:before {\n    content: "\\f0e2";\n}\n\n.fa-undo-alt:before {\n    content: "\\f2ea";\n}\n\n.fa-uniregistry:before {\n    content: "\\f404";\n}\n\n.fa-unity:before {\n    content: "\\f949";\n}\n\n.fa-universal-access:before {\n    content: "\\f29a";\n}\n\n.fa-university:before {\n    content: "\\f19c";\n}\n\n.fa-unlink:before {\n    content: "\\f127";\n}\n\n.fa-unlock:before {\n    content: "\\f09c";\n}\n\n.fa-unlock-alt:before {\n    content: "\\f13e";\n}\n\n.fa-untappd:before {\n    content: "\\f405";\n}\n\n.fa-upload:before {\n    content: "\\f093";\n}\n\n.fa-ups:before {\n    content: "\\f7e0";\n}\n\n.fa-usb:before {\n    content: "\\f287";\n}\n\n.fa-user:before {\n    content: "\\f007";\n}\n\n.fa-user-alt:before {\n    content: "\\f406";\n}\n\n.fa-user-alt-slash:before {\n    content: "\\f4fa";\n}\n\n.fa-user-astronaut:before {\n    content: "\\f4fb";\n}\n\n.fa-user-check:before {\n    content: "\\f4fc";\n}\n\n.fa-user-circle:before {\n    content: "\\f2bd";\n}\n\n.fa-user-clock:before {\n    content: "\\f4fd";\n}\n\n.fa-user-cog:before {\n    content: "\\f4fe";\n}\n\n.fa-user-edit:before {\n    content: "\\f4ff";\n}\n\n.fa-user-friends:before {\n    content: "\\f500";\n}\n\n.fa-user-graduate:before {\n    content: "\\f501";\n}\n\n.fa-user-injured:before {\n    content: "\\f728";\n}\n\n.fa-user-lock:before {\n    content: "\\f502";\n}\n\n.fa-user-md:before {\n    content: "\\f0f0";\n}\n\n.fa-user-minus:before {\n    content: "\\f503";\n}\n\n.fa-user-ninja:before {\n    content: "\\f504";\n}\n\n.fa-user-nurse:before {\n    content: "\\f82f";\n}\n\n.fa-user-plus:before {\n    content: "\\f234";\n}\n\n.fa-user-secret:before {\n    content: "\\f21b";\n}\n\n.fa-user-shield:before {\n    content: "\\f505";\n}\n\n.fa-user-slash:before {\n    content: "\\f506";\n}\n\n.fa-user-tag:before {\n    content: "\\f507";\n}\n\n.fa-user-tie:before {\n    content: "\\f508";\n}\n\n.fa-user-times:before {\n    content: "\\f235";\n}\n\n.fa-users:before {\n    content: "\\f0c0";\n}\n\n.fa-users-cog:before {\n    content: "\\f509";\n}\n\n.fa-usps:before {\n    content: "\\f7e1";\n}\n\n.fa-ussunnah:before {\n    content: "\\f407";\n}\n\n.fa-utensil-spoon:before {\n    content: "\\f2e5";\n}\n\n.fa-utensils:before {\n    content: "\\f2e7";\n}\n\n.fa-vaadin:before {\n    content: "\\f408";\n}\n\n.fa-vector-square:before {\n    content: "\\f5cb";\n}\n\n.fa-venus:before {\n    content: "\\f221";\n}\n\n.fa-venus-double:before {\n    content: "\\f226";\n}\n\n.fa-venus-mars:before {\n    content: "\\f228";\n}\n\n.fa-viacoin:before {\n    content: "\\f237";\n}\n\n.fa-viadeo:before {\n    content: "\\f2a9";\n}\n\n.fa-viadeo-square:before {\n    content: "\\f2aa";\n}\n\n.fa-vial:before {\n    content: "\\f492";\n}\n\n.fa-vials:before {\n    content: "\\f493";\n}\n\n.fa-viber:before {\n    content: "\\f409";\n}\n\n.fa-video:before {\n    content: "\\f03d";\n}\n\n.fa-video-slash:before {\n    content: "\\f4e2";\n}\n\n.fa-vihara:before {\n    content: "\\f6a7";
1\n}\n\n.fa-vimeo:before {\n    content: "\\f40a";\n}\n\n.fa-vimeo-square:before {\n    content: "\\f194";\n}\n\n.fa-vimeo-v:before {\n    content: "\\f27d";\n}\n\n.fa-vine:before {\n    content: "\\f1ca";\n}\n\n.fa-vk:before {\n    content: "\\f189";\n}\n\n.fa-vnv:before {\n    content: "\\f40b";\n}\n\n.fa-voicemail:before {\n    content: "\\f897";\n}\n\n.fa-volleyball-ball:before {\n    content: "\\f45f";\n}\n\n.fa-volume-down:before {\n    content: "\\f027";\n}\n\n.fa-volume-mute:before {\n    content: "\\f6a9";\n}\n\n.fa-volume-off:before {\n    content: "\\f026";\n}\n\n.fa-volume-up:before {\n    content: "\\f028";\n}\n\n.fa-vote-yea:before {\n    content: "\\f772";\n}\n\n.fa-vr-cardboard:before {\n    content: "\\f729";\n}\n\n.fa-vuejs:before {\n    content: "\\f41f";\n}\n\n.fa-walking:before {\n    content: "\\f554";\n}\n\n.fa-wallet:before {\n    content: "\\f555";\n}\n\n.fa-warehouse:before {\n    content: "\\f494";\n}\n\n.fa-water:before {\n    content: "\\f773";\n}\n\n.fa-wave-square:before {\n    content: "\\f83e";\n}\n\n.fa-waze:before {\n    content: "\\f83f";\n}\n\n.fa-weebly:before {\n    content: "\\f5cc";\n}\n\n.fa-weibo:before {\n    content: "\\f18a";\n}\n\n.fa-weight:before {\n    content: "\\f496";\n}\n\n.fa-weight-hanging:before {\n    content: "\\f5cd";\n}\n\n.fa-weixin:before {\n    content: "\\f1d7";\n}\n\n.fa-whatsapp:before {\n    content: "\\f232";\n}\n\n.fa-whatsapp-square:before {\n    content: "\\f40c";\n}\n\n.fa-wheelchair:before {\n    content: "\\f193";\n}\n\n.fa-whmcs:before {\n    content: "\\f40d";\n}\n\n.fa-wifi:before {\n    content: "\\f1eb";\n}\n\n.fa-wikipedia-w:before {\n    content: "\\f266";\n}\n\n.fa-wind:before {\n    content: "\\f72e";\n}\n\n.fa-window-close:before {\n    content: "\\f410";\n}\n\n.fa-window-maximize:before {\n    content: "\\f2d0";\n}\n\n.fa-window-minimize:before {\n    content: "\\f2d1";\n}\n\n.fa-window-restore:before {\n    content: "\\f2d2";\n}\n\n.fa-windows:before {\n    content: "\\f17a";\n}\n\n.fa-wine-bottle:before {\n    content: "\\f72f";\n}\n\n.fa-wine-glass:before {\n    content: "\\f4e3";\n}\n\n.fa-wine-glass-alt:before {\n    content: "\\f5ce";\n}\n\n.fa-wix:before {\n    content: "\\f5cf";\n}\n\n.fa-wizards-of-the-coast:before {\n    content: "\\f730";\n}\n\n.fa-wolf-pack-battalion:before {\n    content: "\\f514";\n}\n\n.fa-won-sign:before {\n    content: "\\f159";\n}\n\n.fa-wordpress:before {\n    content: "\\f19a";\n}\n\n.fa-wordpress-simple:before {\n    content: "\\f411";\n}\n\n.fa-wpbeginner:before {\n    content: "\\f297";\n}\n\n.fa-wpexplorer:before {\n    content: "\\f2de";\n}\n\n.fa-wpforms:before {\n    content: "\\f298";\n}\n\n.fa-wpressr:before {\n    content: "\\f3e4";\n}\n\n.fa-wrench:before {\n    content: "\\f0ad";\n}\n\n.fa-x-ray:before {\n    content: "\\f497";\n}\n\n.fa-xbox:before {\n    content: "\\f412";\n}\n\n.fa-xing:before {\n    content: "\\f168";\n}\n\n.fa-xing-square:before {\n    content: "\\f169";\n}\n\n.fa-y-combinator:before {\n    content: "\\f23b";\n}\n\n.fa-yahoo:before {\n    content: "\\f19e";\n}\n\n.fa-yammer:before {\n    content: "\\f840";\n}\n\n.fa-yandex:before {\n    content: "\\f413";\n}\n\n.fa-yandex-international:before {\n    content: "\\f414";\n}\n\n.fa-yarn:before {\n    content: "\\f7e3";\n}\n\n.fa-yelp:before {\n    content: "\\f1e9";\n}\n\n.fa-yen-sign:before {\n    content: "\\f157";\n}\n\n.fa-yin-yang:before {\n    content: "\\f6ad";\n}\n\n.fa-yoast:before {\n    content: "\\f2b1";\n}\n\n.fa-youtube:before {\n    content: "\\f167";\n}\n\n.fa-youtube-square:before {\n    content: "\\f431";\n}\n\n.fa-zhihu:before {\n    content: "\\f63f";\n}\n\n.sr-only {\n    border: 0;\n    clip: rect(0, 0, 0, 0);\n    height: 1px;\n    margin: -1px;\n    overflow: hidden;\n    padding: 0;\n    position: absolute;\n    width: 1px;\n}\n\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n    clip: auto;\n    height: auto;\n    margin: 0;\n    overflow: visible;\n    position: static;\n    width: auto;\n}\n\n@font-face {\n    font-family: \'Font Awesome 5 Brands\';\n    font-style: normal;\n    font-weight: normal;\n    font-display: auto;\n    src: url('+y+");\n    src: url("+C+') format("embedded-opentype"), url('+w+') format("woff2"), url('+k+') format("woff"), url('+x+') format("truetype"), url('+O+") format(\"svg\");\n}\n\n.fab {\n    font-family: 'Font Awesome 5 Brands';\n}\n\n@font-face {\n    font-family: 'Font Awesome 5 Free';\n    font-style: normal;\n    font-weight: 400;\n    font-display: auto;\n    src: url("+A+");\n    src: url("+S+') format("embedded-opentype"), url('+z+') format("woff2"), url('+j+') format("woff"), url('+I+') format("truetype"), url('+P+") format(\"svg\");\n}\n\n.far {\n    font-family: 'Font Awesome 5 Free';\n    font-weight: 400;\n}\n\n@font-face {\n    font-family: 'Font Awesome 5 Free';\n    font-style: normal;\n    font-weight: 900;\n    font-display: auto;\n    src: url("+E+");\n    src: url("+T+') format("embedded-opentype"), url('+N+') format("woff2"), url('+R+') format("woff"), url('+L+') format("truetype"), url('+M+") format(\"svg\");\n}\n\n.fa,\n.fas {\n    font-family: 'Font Awesome 5 Free';\n    font-weight: 900;\n}",""]),t.exports=e},"32e7":function(t,e,a){t.exports=a.p+"fonts/fa-solid-900.2aa6edf8.ttf"},"32f5":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".search-competition {\n    color: white;\n    width: 100%;\n    transition: all 0.6s;\n}\n\n.search-competition__info {\n    margin-left: 8px;\n    z-index: 1;\n    margin-top: 16px;\n}\n\n.search-competition__name-input {\n    margin-top: 8px;\n    max-width: 100%;\n}\n\n.search-competition__location-input {\n    margin-top: 16px;\n}\n\n.search-competition__location-input .v-select {\n    height: unset;\n}\n\n.search-competition__name-input .vs__search {\n    position: unset!important;\n}\n\n.search-competition__button {\n    margin-top: 16px;\n}\n\n.search-competition__hint {\n    z-index: 2;\n}\n\n.search-competition__button .btn {\n    box-shadow: none;\n}\n\n.search-competition input::-moz-placeholder {\n    font-size: 18px;\n    color: var(--color-slate);\n    font-family: 'Bariol Bold';\n    font-weight: normal;\n    opacity: 1;\n}\n\n.search-competition input::placeholder {\n    font-size: 18px;\n    color: var(--color-slate);\n    font-family: 'Bariol Bold';\n    font-weight: normal;\n    opacity: 1;\n}\n\n.search-competition input {\n    font-family: \"Bariol Bold\";\n    font-size: 18px;\n    color: var(--color-slate);\n}\n\n.search-competition__name-input .v-select {\n    height: unset;\n}\n\n.input-field__input--padding-top.v-select {\n    padding-top: 12px;\n}\n\n.search-competition--main-site {\n    padding: 0 15px;\n}\n\n@media (min-width: 992px) {\n    .search-competition--main-site {\n        padding: 40px 0 48px 30px;\n    }\n    .search-competition {\n        align-items: center;\n    }\n    .search-competition__info {\n        margin: 0;\n    }\n    .search-competition__name-input {\n        margin: 0;\n        max-width: 25%\n    }\n    .search-competition__location-input {\n        margin: 0;\n    }\n    .search-competition__button {\n        margin: 0;\n    }\n}",""]),t.exports=e},"330e":function(t,e,a){"use strict";a("cb92")},3314:function(t,e,a){},"338a":function(t,e,a){},3448:function(t,e,a){"use strict";a("ea8e")},"344e":function(t,e,a){"use strict";a("7bb4")},"347e":function(t,e,a){t.exports=a.p+"img/fa-regular-400.d2e53334.svg"},"34d2":function(t,e,a){t.exports=a.p+"img/provision-operator.662e3425.svg"},3652:function(t,e,a){t.exports=a.p+"img/Uniqa_Insurance_Group.d0b263ea.png"},"365c":function(t,e,a){"use strict";var n=a("f121"),i=a("bc3a"),s=a.n(i);s.a.defaults.baseURL=n["a"],s.a.defaults.timeout=n["c"],s.a.defaults.withCredentials=!0,s.a.interceptors.response.use(t=>t.data,t=>{var e,a,n;if("ECONNABORTED"===t.code&&t.message.includes("timeout"))return Promise.reject("timeout");t.response?(t.response.status>=500||t.response.status,console.log(t)):console.log(t);const i=(null===(e=t.response)||void 0===e||null===(a=e.data)||void 0===a?void 0:a.errors)||(null===(n=t.response)||void 0===n?void 0:n.data)||t.response||{};return Promise.reject(i)}),e["a"]=s.a},3722:function(t,e,a){},"372e":function(t,e,a){"use strict";a("3d39")},"373e":function(t,e,a){var n=a("24fb");
1e=n(!1),e.push([t.i,'.autocompleter-competition__input {\n    width: 100%;\n    display: flex;\n    height: 48px;\n}\n\n.autocompleter-competition__input .vs__dropdown-toggle {\n    border: none;\n    padding: 0;\n    margin: auto 0;\n    flex: 100%;\n    height: 32px;\n    overflow: hidden;\n    max-width: 100%;\n}\n\n.user-form__autocomplete .vs__selected-options:focus-within .vs__selected {\n    opacity: 0;\n}\n\n.user-form__autocomplete .vs__selected {\n    display: flex!important;\n}\n\n.user-form__autocomplete {\n    max-height: 48px;\n}\n\n.user-form__autocomplete .vs__selected, .user-form__autocomplete .vs__search {\n    font-family: "Open Sans"!important;\n    font-size: 14px!important;\n    color: var(--color-black)!important;\n    position: absolute;\n    height: 100%;\n}\n\n.user-form__autocomplete .autocompleter-competition__input {\n    transition: all var(--animation-fast)\n}\n\n.search-competition__location-input .autocompleter-competition__input .vs__selected {\n    padding: 0 5px!important;\n}\n\n.search-competition__location-input .autocompleter-competition__input:focus-within .vs__selected {\n    opacity: 0;\n}\n\n.search-competition__location-input .vs__search {\n    padding: 0 8px;\n}\n\n.search-competition__location-input:focus-within .vs-selected {\n    opacity: 0!important;\n}\n\n.autocompleter-competition__input .vs__search {\n    font-family: "Bariol Bold";\n    font-size: 18px;\n    color: var(--color-slate);\n    width: 100%;\n    position: absolute;\n    margin-top: 4px;\n}\n\n.autocompleter-competition__input .vs__open-indicator {\n    display: none;\n}\n\n.autocompleter-competition__input.v-select {\n    height: unset;\n}\n\n.autocompleter-competition__input input {\n    font-family: "Bariol Bold";\n    font-size: 18px;\n    color: var(--color-slate);\n}\n\n.autocompleter-competition__input .vs__selected {\n    font-family: "Bariol Bold";\n    font-size: 18px;\n    color: var(--color-slate);\n    white-space: nowrap;\n    width: 100%;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    display: block;\n}\n\n.vs__dropdown-menu {\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n    margin-top: 7px;\n    border-radius: 4px;\n}\n\n.vs__dropdown-option {\n    white-space: normal!important;\n    color: var(--color-slate)!important;\n    padding: 8px 0 8px 16px!important;\n}\n\n.vs__dropdown-option:hover {\n    background-color: var(--color-pale-grey)!important;\n    color: var(--color-greyish-brown)!important;\n}\n\n.vs__dropdown-option--highlight {\n    background-color: var(--color-pale-grey)!important;\n}\n\n/* GOOGLE PLACES AUTOCOMPLETE */\n\n.pac-container {\n    margin-top: 4px;\n    border-radius: 4px;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);\n    font-family: inherit;\n    border: none;\n}\n\n.pac-item {\n    padding: 12px 0 12px 17px;\n    line-height: 19px;\n    font-size: 14px;\n    border: none;\n}\n\n.pac-icon {\n    display: none;\n}\n\n.pac-item-query {\n    font-size: inherit;\n    color: var(--color-slate)\n}',""]),t.exports=e},"374a":function(t,e,a){"use strict";a("338a")},3779:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("l-map",{class:{"is-disable-scroll":t.disableScroll},attrs:{center:t.latLngCenter,zoom:t.zoom,gestureHandling:"",options:t.mapOptions},on:{ready:function(e){t.$emit("ready",e),t.map=e}}},[t._t("default"),e("l-tile-layer",{attrs:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"&copy; <a href='http://osm.org/copyright'>OpenStreetMap</a> contributors"}}),t.fullscreenable?[e("l-control",[e("base-button",{attrs:{btn2:"",icon:t.isZenMode?"fas fa-compress-alt":"fas fa-expand-alt"},on:{click:function(e){return t.SET_ZEN_MODE(!t.isZenMode)}}})],1)]:t._e()],2)},i=[],s=a("5530"),o=a("2699"),r=a("a40a"),l=a("2253"),c=a("2f62"),d=a("90d2"),u=a("fb66"),p={components:{LMap:o["a"],LTileLayer:r["a"],LControl:l["a"]},props:{lat:{type:Number,required:!0},lng:{type:Number,required:!0},zoom:{type:Number,required:!0},fullscreenable:{type:Boolean,default:!0},disableScroll:{type:Boolean,default:!1}},data(){return{map:void 0,defaultLat:52.1874047455997,defaultLng:19.138183593750004,mapOptions:{gestureHandling:!0}}},computed:Object(s["a"])(Object(s["a"])({}
1,Object(c["c"])(["isZenMode"])),{},{latLngCenter(){return 0===this.lat&&0===this.lng?[this.defaultLat,this.defaultLng]:[this.lat,this.lng]}}),watch:{isZenMode(){this.map.invalidateSize(!0)},map(){this.disableScroll&&this.map.scrollWheelZoom.disable()}},methods:Object(s["a"])({},Object(c["d"])({SET_ZEN_MODE:d["J"]})),mounted(){this.$nextTick(()=>{L.Map.addInitHook("addHandler","gestureHandling",u["GestureHandling"])})}},m=p,f=(a("c3e9"),a("e57e"),a("2877")),h=Object(f["a"])(m,n,i,!1,null,null,null);e["default"]=h.exports},3868:function(t,e,a){"use strict";a("20fe")},3873:function(t,e,a){t.exports=a.p+"img/[email protected]"},"38a6":function(t,e,a){t.exports=a.p+"img/waiting.3c46b8a3.svg"},3951:function(t,e,a){},39516:function(t,e,a){"use strict";a("4102")},3980:function(t,e,a){"use strict";a("ab4b")},"39c8":function(t,e,a){},"39f2":function(t,e,a){t.exports=a.p+"img/[email protected]"},"39fb":function(t,e,a){},"3a52":function(t,e,a){},"3ab1":function(t,e,a){t.exports=a.p+"img/shopping-cart.e99e9579.svg"},"3b65":function(t,e,a){},"3baa":function(t,e,a){},"3c02":function(t,e,a){},"3c1f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUIzRDhFRDM1Q0NEMTFFN0FEMjhGREQ1REQyOENFRTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUIzRDhFRDI1Q0NEMTFFN0FEMjhGREQ1REQyOENFRTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCMkFFMDQzOTVEQ0UxMUU0OTI2REIyMDIzQTEwREZCNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCMkFFMDQzQTVEQ0UxMUU0OTI2REIyMDIzQTEwREZCNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pn8TyscAAAIXSURBVHja7JrLLkNBGMd71B6RuMUzWLhfNoIVT4AI4s7GA3gLC3dB6iWw8wC0qggbCxu3hMaS4/8l082RaufMzLl+X/JbNOlM5v/rzOn0w7JtOxHnqkjEvFgAC2ABLIAFsAAWwAJYAAtgASyABbCAGFZlyNbbDOZBLdgGadUJrRB1hFrBGagRr7/BJDiOwxFoc4SnSoJDMB51ART+1BFem4SgH4F2Eb66xPvoOLSAXJR2QEeZ4Qs7YTFKR4DCn5QZvlD3UTkCnSJ8lcSYB/EtkfdzB+iYq8tFePrk+92E17VoOn9r4BFkwJgP4Z9cr56OgAJJkLL/1qrkPN3gw5arO9CkuP6EifCyEnpchL8FjarhVQRYJcKXK4HCf0qGv9EVXkXAiMSCi0nodRm+QVd4FQG7kgt3SuhzET4H6nWG92oHOCVQ+Lzk2GsT4b14Bjhr3UX4LKgzEZ5QuQnSHeIATBi8FWbBIHgOYkvsB0yBI4PhB0yG13ETJAnTYiforCsR/iUMTVGSMAP2Na0p41V4nT+GSMIs2FOcJy3Cv4axLU5P0zmw43L8pXjgvYX57wIkYQFsSY678CO8qY4QSVgCmxLhh8C7H90XUy0xkrAMNoIc3nRPkCSs/CPB9/BeNEWLSQhEeC+bohYYBqPgHKTAVxA6sBb/t3jMiwWwABbAAlgAC2ABLIAFsAAWwAJYAAtgAfGrXwEGAGkaOj71ypSWAAAAAElFTkSuQmCC"},"3c85":function(t,e,a){},"3d39":function(t,e,a){},"3de1":function(t,e,a){"use strict";a.r(e);a("4e82"),a("ac1f");var n=function(){var t=this,e=t._self._c;return e("table",t._b({},"table",t.$attrs,!1),[e("thead",[t._t("header",(function(){return[e("tr",t._l(t.headers,(function(a,n){return e("th",{key:n,class:{sortable:!0,"active-sort":t.currentSortCriteria.some(t=>t.column===n)},on:{click:function(e){return t.sort(n)}}},[t._v(" "+t._s(a.text)+" "),t.getSortIndicator(n)?e("span",[t._v(" "+t._s(t.getSortIndicator(n))+" "),t.multiSortEnabled&&t.currentSortCriteria.length>1?e("small",[t._v("("+t._s(t.getSortOrderNumber(n))+")")]):t._e()]):t._e()])})),0)]}),{headers:t.headers,sort:t.sort})],2),t.displayedItems.length?e("tbody",[t._t("body",(function(){return t._l(t.displayedItems,(function(a,n){return e("tr",{key:n},t._l(t.headers,(function(n,i){return e("td",{key:i},[t._v(" "+t._s(a[n.value])+" ")])})),0)}))}),{headers:t.headers,displayedItems:t.displayedItems})],2):e("tbody",[e("tr",[e("td",{attrs:{colspan:t.headers.length}},[t._t("no-results",(function(){return[t._v(" No results. ")]}),{search:t.search})],2)])])])},i=[],s=(a("26e9"),a("4d63"),a("c607"),a("14d9"),a("ddb0"),a("5319"),a("3c65"),a("2ef0")),o=a.n(s),r=a("c1df"),l=a.n(r),c={props:{headers:{type:Array,required:!0},items:{type:Array,required:!0},search:{type:String,default:""},itemsPerPage:{type:Number,default:9999},page:{type:Number,default:1},sortColumnDefault:{type:[String,Number],required:!1},sortReverseDefault:{type:Boolean,required:!1},ignoreEmptySort:{type:Boolean,default:!1},emptyValuesToBottom:{type:Boolean,default:!0},multiSortDefault:{type:Array,default:()=>[],validator:t=>t.every(t=>"object"===typeof t&&"column"in t&&"reverse"in t&&"string"===typeof t.column&&"boolean"===typeof t.reverse)},multiSortEnabled:{type:Boolean,default:!1}},data(){return{sortColumn:this.sortColumnDefault?this.sortColumnDefault:void 0,sortReverse:!!this.sortReverseDefault&&this.sortReverseDefault,currentSortCriteria:[]}},created(){if(this.multiSortDefault&&this.multiSortDefault.length>0&&this.multiSortEnabled)this.currentSortCriteria=this.multiSortDefault.map(t=>{const e=this.headers.findIndex(e=>e.value===t.column);return-1===e?(console.warn(`Multi-sort: Column '${t.column}' not found in headers.`),null):{column:e,reverse:t.reverse}}
1).filter(Boolean);else if(void 0!==this.sortColumnDefault&&null!==this.sortColumnDefault&&""!==this.sortColumnDefault){const t=parseInt(this.sortColumnDefault,10);!isNaN(t)&&t>=0&&t<this.headers.length?this.currentSortCriteria=[{column:t,reverse:this.sortReverseDefault||!1}]:console.warn(`Single-sort: Invalid sortColumnDefault index '${this.sortColumnDefault}'. Must be a valid header index.`)}},computed:{displayedItems(){return this.paginatedItems},offset(){return(this.page-1)*this.itemsPerPage},pages(){return Math.ceil(this.displayedItems.length/this.itemsPerPage)},searchTokens(){return this.search.split(/\s+/).filter(t=>t)},searchedItems(){return o.a.filter(this.items,t=>{const e=o.a.filter(t,t=>{const e=o.a.filter(this.searchTokens,e=>{const a=new RegExp(e,"i");return String(null!==t&&void 0!==t?t:"").search(a)>-1});return e.length===this.searchTokens.length});return e.length>0})},sortValue(){return this.headers[this.sortColumn].value},sortedItems(){if(0===this.currentSortCriteria.length)return this.searchedItems;const t=this.currentSortCriteria[0],e=t?this.headers[t.column].value:null;let a=[],n=[];this.ignoreEmptySort&&e?this.searchedItems.forEach(t=>{const i=t[e];null===i||void 0===i||""===i?n.push(t):a.push(t)}):a=[...this.searchedItems];let i=a;if(a.length>0){const t=new Intl.Collator("pl",{usage:"sort",sensitivity:"accent"}),e=(e,a)=>{for(const n of this.currentSortCriteria){const i=this.headers[n.column],s=i.value,r=e[s],c=a[s],d=null===r||void 0===r||""===r,u=null===c||void 0===c||""===c;if(d&&u)continue;if(d)return n.reverse?1:-1;if(u)return n.reverse?-1:1;let p=0;if("date"===i.type||o.a.isString(r)&&String(r).match(/^\d\d\.\d\d\.\d\d\d\d/)){const t=l()(r,"DD.MM.YYYY hh:mm").unix(),e=l()(c,"DD.MM.YYYY hh:mm").unix();p=t===e?0:t<e?-1:1}else if("payment"===s){const t=parseFloat(String(r).replace(" PLN","")),e=parseFloat(String(c).replace(" PLN",""));p=t===e?0:t<e?-1:1}else p=o.a.isString(r)&&o.a.isString(c)?t.compare(String(r),String(c)):r===c?0:r<c?-1:1;if(0!==p)return n.reverse?-p:p}return 0};i=[...a].sort(e)}else i=[];return this.ignoreEmptySort?this.emptyValuesToBottom?[...i,...n]:[...n,...i]:i},paginatedItems(){return o.a.slice(this.sortedItems,this.offset,this.offset+this.itemsPerPage)}},watch:{search(){this.$emit("update:page",1)}},methods:{sort(t){const e=t;if(this.multiSortEnabled){const t=this.currentSortCriteria.findIndex(t=>t.column===e);-1!==t?this.currentSortCriteria[t].reverse?this.currentSortCriteria.splice(t,1):this.currentSortCriteria[t].reverse=!0:this.currentSortCriteria.unshift({column:e,reverse:!1})}else{const t=this.currentSortCriteria.length>0&&this.currentSortCriteria[0].column===e,a=!!t&&this.currentSortCriteria[0].reverse;t?this.currentSortCriteria[0].reverse=!a:this.currentSortCriteria=[{column:e,reverse:!1}]}this.$emit("update-sort",this.currentSortCriteria.map(t=>({column:this.headers[t.column].value,reverse:t.reverse})))},getSortIndicator(t){const e=this.currentSortCriteria.find(e=>e.column===t);return e?e.reverse?"🔽":"🔼":""},getSortOrderNumber(t){const e=this.currentSortCriteria.findIndex(e=>e.column===t);return-1!==e?e+1:""}}},d=c,u=a("2877"),p=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=p.exports},"3e62":function(t,e,a){},"3e7f":function(t,e,a){t.exports=a.p+"img/[email protected]"},"3ede":function(t,e,a){"use strict";a("b494")},"3ef2":function(t,e,a){"use strict";a("e587")},"3fb6":function(t,e,a){"use strict";a("6759")},4:function(t,e,a){t.exports=a("56d7")},4102:function(t,e,a){},"430b":function(t,e,a){},4360:function(t,e,a){"use strict";var n=a("365c"),i=a("6c33"),s=a("90d2"),o=a("f121"),r={state:{userId:null},getters:{userId:t=>t.userId,user:(t,e)=>e.users[t.userId]},mutations:{[s["H"]](t,e){t.userId=e}},actions:{async[i["sb"]]({dispatch:t,commit:e},a){const n=await t(i["O"],a);await t(i["Bc"],n),e(s["H"],n)},async[i["Nc"]]({dispatch:t},e){await t(i["Q"],e),await t(i["sb"],e)},async[i["t"]]({dispatch:t}){const e=await t(i["bc"]);try{await t(i["sb"],{signedRequest:e})}catch(a){}},async[i["tb"]]({dispatch:t,commit:e}){await t(i["ib"]),e(s["H"],null)},async[i["Pc"]](t,e){await n["a"].post("/password-reset",{email:e})},async[i["Qc"]](t,e){const a=await n["a"].post("/password-reset-link",{email:e});return a},async[i["Ic"]]({commit:t}){const e=await n["a"].get("/auth");t(s["H"],e)},async[i["vb"]]({commit:t}){if(Object({NODE_ENV:"production",VUE_APP_API_ADDRESS_NO_CACHE:"https://api.dostartu.pl",VUE_APP_API_ADDRESS:"https://api.dostartu.pl",BASE_URL:"/app/"}).VUE_APP_ACCESS_TOKEN)return void t(s["h"],Object({NODE_ENV:"production",VUE_APP_API_ADDRESS_NO_CACHE:"https://api.dostartu.pl",VUE_APP_API_ADDRESS:"https://api.dostartu.pl",BASE_URL:"/app/"}).VUE_APP_ACCESS_TOKEN);const e=o["n"]?window.location.origin:"https://sandbox.dostartu.pl",a=await n["a"].get(e+"/read_access_token.php");t(s["h"],a)}}},l=a("5530"),c=(a("ddb0"),a("ac1f"),a("0eb6"),a("b7ef"),a("8bd4"),a("c1df")),d=a.n(c),u=a("a78e"),p=a.n(u),m={state:{bootstraped:!1,clock:null,isZenMode:!1,time:d()(),isOnline:!0,promptEvent:null,isNavActive:!1,accessToken:null},getters:{time:t=>t.time,bootstraped:t=>t.bootstraped,isZenMode:t=>t.isZenMode,route:(t,e,a)=>a.route,isOnline:t=>t.isOnline,promptEvent:t=>t.promptEvent,isNavActive:t=>t.isNavActive,token:t=>t.accessToken},mutations:{[s["i"]](t){t.bootstraped=!0},[s["h"]](t,e){t.accessToken=e,n["a"].defaults.headers.common["X-Access-Token"]=e},[s["G"]](t){t.time=d()()}
1,[s["J"]](t,e){t.isZenMode=e},[s["j"]](t,e){t.clock=setInterval(e,o["r"])},[s["a"]](t){clearInterval(t.clock)},[s["q"]](t,e){t.isOnline=e},[s["g"]](t,e){t.promptEvent=e},[s["e"]](t){t.promptEvent=null,p.a.set("prompt-pwa","true",{expires:7})},[s["K"]](t){t.isNavActive=!t.isNavActive}},actions:{async[i["l"]]({dispatch:t,commit:e,getters:a}){e(s["j"],()=>e(s["G"])),await t(i["vb"]),await Promise.all([t(i["gc"]),t(i["ic"],a.lang),t(i["Ic"])]),a.userId&&await t(i["Bc"],a.userId),e(s["i"])},async[i["j"]](t,e){const a=await n["a"].get(`panel/organizers/${e.id}/player/suggestion`,{params:{value:e.search}});return a},async[i["i"]](t,e){const a=await n["a"].get("/autocompleter/competitions",{params:{term:e}});return a},async[i["k"]](t,e){if(e.length<3)return[];const a=await n["a"].get("/autocomplete/"+e);for(const n of a)n.text=n.city;return a},async[i["qb"]](t,{gate:e,file:a}){const i=Object(l["a"])(Object(l["a"])({},a),{},{content:btoa(a.content)});await n["a"].post("/measures-importer/"+e.secureId,i)}}},f=a("47b6"),h=a("5e23"),b={async[i["S"]]({commit:t},e){const a=await n["a"].post("/user/children",e),i=Object(h["a"])(a,f["a"].user);return t(s["m"],i.entities),i.result},async[i["O"]](t,e){const a=await n["a"].post("/auth",e);return a},async[i["Q"]]({commit:t},e){const a=await n["a"].post("/users",e),i=Object(h["a"])(a,f["a"].user);return t(s["m"],i.entities),i.result},async[i["R"]]({commit:t,getters:e},a){a.content=btoa(a.content);const i=await n["a"].post("/user/avatar",{files:[a]});t(s["m"],{users:{[e.user.id]:Object(l["a"])(Object(l["a"])({},e.user),{},{avatar:`${i}?${Math.random()}`})}})},async[i["N"]](t,{token:e,result:a}){await n["a"].post(`/players/${e}/result`,a)}
1,async[i["L"]](t,{token:e,address:a}){await n["a"].post(`/players/${e}/address`,a)},async[i["hd"]](t,{playerId:e,email:a}){return n["a"].post(`/players/${e}/transfer`,{email:a})},async[i["B"]](t,{token:e,files:a,isResult:i=!1}){for(const n of a)n.content=btoa(n.content);i?await n["a"].post(`/players/${e}/result-files`,{files:a}):await n["a"].post(`/players/${e}/files`,{files:a})},async[i["w"]]({commit:t},e){const a=await n["a"].post("/checkpoints",e),i=Object(h["a"])(a,f["a"].checkpoint);return t(s["m"],i.entities),i.result},async[i["A"]]({commit:t},e){const a=await n["a"].post("/devices",e),i=Object(h["a"])(a,f["a"].device);return t(s["m"],i.entities),i.result},async[i["D"]]({commit:t},e){const a=await n["a"].post("/gates",e),i=Object(h["a"])(a,f["a"].gate);return t(s["m"],i.entities),i.result},async[i["G"]]({commit:t,getters:e},a){t(s["z"],a);const i=await n["a"].post("/measures",a);if(i){const n=e.stoperOfflineMeasures.findIndex(t=>t.deviceTime.isSame(a.deviceTime));if(n>=0){const a=e.stoperOfflineMeasures[n];a.tag!==i.tag&&(i.tag=a.tag),t(s["d"],n)}const o=Object(h["a"])(i,f["a"].measure);return t(s["m"],o.entities),o.result}return null},async[i["E"]]({commit:t},e){const a=await n["a"].post("/locations",e),i=Object(h["a"])(a,f["a"].location);return t(s["m"],i.entities),i.result},async[i["P"]]({commit:t},e){const a=await n["a"].post("/trackpoints",e),i=Object(h["a"])(a,f["a"].trackpoint);return t(s["m"],i.entities),i.result},async[i["x"]]({commit:t},{gpxFile:e,id:a}){e.content=btoa(e.content);const i=await n["a"].post(`/classifications/${a}/gpx-file`,e),o={classification:a,url:`${i}?v=${Math.random()}`},r=Object(h["a"])(o,f["a"].gpxFile);return t(s["m"],r.entities),r.result},async[i["I"]]({commit:t},e){const a=await n["a"].post("/panel/organizers",e),i=Object(h["a"])(a,f["a"].organizer);return t(s["m"],i.entities),i.result},async[i["H"]]({commit:t},e){const a=await n["a"].post("/panel/operators",e),i=Object(h["a"])(a,f["a"].operator);return t(s["m"],i.entities),i.result},async[i["y"]]({commit:t},e){const a=await n["a"].post("/panel/competitions",e),i=Object(h["a"])(a,f["a"].competition);return t(s["m"],i.entities),i.result},async[i["M"]](t,e){const a=await n["a"].post(`/players/${e.id}/measures`,e.measure);return a},async[i["J"]](t,e){const a=await n["a"].post("/panel/inputs",e);return a},async[i["K"]](t,e){const a=await n["a"].post("/panel/players",e);return a}},_={async[i["lb"]]({commit:t,getters:e},a){await n["a"].delete("/user/children/"+a);const i=Object.values(e.familyAssociations()).find(t=>t.childUser===a&&t.parentUser===e.user);t(s["b"],{users:[a]}),t(s["b"],{familyAssociations:[i.id]})},async[i["kb"]]({commit:t,getters:e}){const a=e.userId;await n["a"].delete("/user"),t(s["b"],{users:[a]})},async[i["ib"]](){await n["a"].delete("/auth")},async[i["Z"]]({commit:t},e){await n["a"].delete("/checkpoints/"+e),t(s["b"],{checkpoints:[e]})},async[i["cb"]]({commit:t},e){await n["a"].delete("/gates/"+e),t(s["b"],{gates:[e]})},async[i["db"]]({commit:t},e){await n["a"].delete("/locations/"+e),t(s["b"],{locations:[e]})},async[i["jb"]]({commit:t},e){await n["a"].delete("/trackpoints/"+e),t(s["b"],{trackpoints:[e]})},async[i["ab"]]({commit:t},e){await n["a"].delete("/panel/competitions/"+e),t(s["b"],{competitions:[e]})},async[i["fb"]]({commit:t},e){await n["a"].delete("/panel/organizers/"+e),t(s["b"],{organizers:[e]})},async[i["eb"]]({commit:t},e){await n["a"].delete("/panel/operators/"+e),t(s["b"],{operators:[e]})},async[i["gb"]](t,e){const a=await n["a"].delete("/panel/inputs/"+e);return a},async[i["hb"]](t,e){const a=await n["a"].delete("/panel/players/"+e);return a}},v=a("15fd"),g=a("9d17");const y=["type"];var C={async[i["Bc"]]({commit:t},e){const a=await n["a"].get("/users/"+e),i=Object(h["a"])(a,f["a"].user);return t(s["m"],i.entities),i.result},async[i["Ub"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/organizer`),i=Object(h["a"])(a,f["a"].organizer);return t(s["m"],i.entities),i.result},async[i["Fc"]]({commit:t},e){let{type:a}=e,i=Object(v["a"])(e,y);const o=await n["a"].get("/user/competitions/"+a,{params:i}),r=Object(h["a"])(o,{competitions:[f["a"].competition],competitionsLayouts:[f["a"].layout]});return t(s["m"],r.entities),r.result},async[i["Gc"]]({commit:t},e){const a=await n["a"].get(`/user/competitions/${e}/players`),i=Object(h["a"])(a,[f["a"].player]);return t(s["m"],i.entities),i.result},async[i["Lb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/classifications`),i=Object(h["a"])(a,{classifications:[f["a"].classification],classificationsCategories:[[f["a"].category]],classificationsPlayerCount:[f["a"].classificationPlayerCount]});return t(s["m"],i.entities),i.result},async[i["Ob"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/classifications/limits`),i=Object(h["a"])(a,[f["a"].limit]);return t(s["m"],i.entities),i.result},async[i["Nb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/classifications/ages`),i=Object(h["a"])(a,[f["a"].age]);return t(s["m"],i.entities),i.result},async[i["Mb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/classifications/activePrice`),i=Object(h["a"])(a,[f["a"].price]);return t(s["m"],i.entities),i.result},async[i["Pb"]]({commit:t},e){const a=await n["a"].get(`competitions/${e}/classifications/topResults`),i=Object(h["a"])(a,[f["a"].player]);return t(s["m"],i.entities),i.result},async[i["Hc"]](t,e){const a=await n["a"].get(`/user/competitions/${e}/policies.pdf`,{timeout:1e4});1===a.length?Object(g["b"])("polisa.pdf",a[0].content64):Object(g["b"])("polisy.zip",await Object(g["f"])(a))},async[i["Mc"]]({commit:t}){const e=await n["a"].get("/user/parents"),a=Object(h["a"])(e,{parents:[f["a"].user],associations:[f["a"].familyAssociation]});return t(s["m"],a.entities),a.result},async[i["Ec"]]({commit:t}){const e=await n["a"].get("/user/children"),a=Object(h["a"])(e,{children:[f["a"].user],associations:[f["a"].familyAssociation]});return t(s["m"],a.entities),a.result},async[i["Dc"]]({commit:t},e){const a=await n["a"].get("/user/children/"+e),i=Object(h["a"])(a,f["a"].user);return t(s["m"],i.entities),i.result},async[i["Hb"]]({commit:t},e){const a=await n["a"].get("/competitions/"+e),i=Object(h["a"])(a,{competition:f["a"].competition,competitionLayout:f["a"].layout,competitionCurrency:f["a"].competitionCurrency});t(s["m"],i.entities)},async[i["sc"]]({commit:t},e){const a=await n["a"].get("panel/competitions/"+e),i=Object(h["a"])(a,{competition:f["a"].competition,competitionLayout:f["a"].layout,competitionCurrency:f["a"].competitionCurrency});return t(s["m"],i.entities),i.result},async[i["Tb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/limits`),i=Object(h["a"])(a,f["a"].limit);return t(s["m"],i.entities),i.result},async[i["jc"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/next-in-cycle`),i=Object(h["a"])(a,{competitions:[f["a"].competition],competitionsLayouts:[f["a"].layout],competitionsPrices:[f["a"].competitionPrice],competitionsCurrency:[f["a"].competitionCurrency
1]});return t(s["m"],i.entities),i.result},async[i["tc"]](t,e){try{const t=await n["a"].get(`panel/competitions/${e}/players`);return t}catch(a){return a}},async[i["uc"]](t,e){try{const t=await n["a"].get(`panel/competitions/${e}/inputs`);return t}catch(a){return a}},async[i["Wb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/players`),i=Object(h["a"])(a,[f["a"].player]);return t(s["m"],i.entities),i.result},async[i["xb"]]({commit:t},e){const a=await n["a"].get("/classifications/"+e),i=Object(h["a"])(a,{classification:f["a"].classification,categories:[f["a"].category]});return t(s["m"],i.entities),i.result},async[i["Bb"]]({commit:t},e){const a=await n["a"].get(`/classifications/${e}/players`),i=Object(h["a"])(a,[f["a"].player]);return t(s["m"],i.entities),i.result},async[i["xc"]](t,e){try{const t=await n["a"].get(`/players/${e}/measures`);return t}catch(a){return a}},async[i["wc"]]({commit:t},e){const a=await n["a"].get("/players/"+e),i=Object(h["a"])(a,f["a"].player);return t(s["m"],i.entities),i.result},async[i["yc"]](t,e){try{const t=await n["a"].get(`/panel/players/${e}/cycle`);return t}catch(a){return a}},async[i["zc"]](t,e){try{const t=await n["a"].get(`/panel/players/${e}/shop`);return t}catch(a){return a}},async[i["Ib"]]({commit:t},e){var a,i,o,r,c,d;const u=Object(l["a"])(Object(l["a"])({},e),{},{dateTo:null===(a=e.dateTo)||void 0===a?void 0:a.toISOString(),dateSince:null===(i=e.dateSince)||void 0===i?void 0:i.toISOString(),locationLat:null===(o=e.location)||void 0===o||null===(r=o.geometry)||void 0===r?void 0:r.lat,locationLng:null===(c=e.location)||void 0===c||null===(d=c.geometry)||void 0===d?void 0:d.lng,location:void 0}),p=await n["a"].get("/competitions",{params:u}),m=Object(h["a"])(p,{competitions:[f["a"].competition],competitionsLayouts:[f["a"].layout],competitionsPlayerCount:[f["a"].competitionPlayerCount]});return t(s["m"],m.entities),m.result},async[i["yb"]]({commit:t},e){const a=await n["a"].get(`/classifications/${e}/checkpoints`),i=Object(h["a"])(a,[f["a"].checkpoint]);return t(s["m"],i.entities),i.result},async[i["mc"]]({commit:t},e){const a=await n["a"].get(`operators/${e}/devices`),i=Object(h["a"])(a,[f["a"].device]);return t(s["m"],i.entities),i.result},async[i["kc"]]({commit:t},e){const a=await n["a"].get("operators/"+e),i=Object(h["a"])(a,f["a"].operator);return t(s["m"],i.entities),i.result},async[i["pc"]]({commit:t},e){const a=await n["a"].get("organizers/"+e),i=Object(h["a"])(a,f["a"].organizer);return t(s["m"],i.entities),i.result},async[i["rc"]](t,e){const a=await n["a"].post(`/panel/organizers/${e.id}/setup/check`,e.data);return a},async[i["nc"]]({commit:t},e){const a=await n["a"].get(`operators/${e}/layout`);if(null===a)return null;const i=Object(h["a"])(a,f["a"].layout);return t(s["m"],i.entities),i.result},async[i["qc"]]({commit:t},e){const a=await n["a"].get(`organizers/${e}/layout`);if(null===a)return null;const i=Object(h["a"])(a,f["a"].layout);return t(s["m"],i.entities),i.result},async[i["cc"]]({commit:t},e){const a=await n["a"].get("/gates/"+e),i=Object(h["a"])(a,f["a"].gate);return t(s["m"],i.entities),i.result},async[i["Rb"]]({commit:t},e){const a=await n["a"].get(`competitions/${e}/gates`),i=Object(h["a"])(a,[f["a"].gate]);return t(s["m"],i.entities),i.result},async[i["dc"]]({commit:t},e){const a=await n["a"].get(`/gates/${e}/measures`),i=Object(h["a"])(a,[f["a"].measure]);return t(s["m"],i.entities),i.result},async[i["Cb"]]({commit:t},e){const a=await n["a"].get(`/classifications/${e}/results`,{headers:{Accept:"application/json"}}),i=Object(h["a"])(a,[f["a"].result]);return t(s["m"],i.entities),i.result},async[i["Eb"]](t,e){const a=await n["a"].get(`/classifications/${e}/results`,{headers:{Accept:"application/json+positions"}});return a},async[i["Gb"]](t,e){const a=await n["a"].get(`/classifications/${e}/results`,{headers:{Accept:"application/json+split"}});return a},async[i["Db"]](t,e){const a=await n["a"].get(`/classifications/${e}/results`,{headers:{Accept:"application/json+lap"}});return a},async[i["Fb"]](t,e){const a=await n["a"].get(`/classifications/${e}/results`,{headers:{Accept:"application/json+open"}});return a},async[i["Ab"]]({commit:t},e){const a=await n["a"].get(`/classifications/${e}/measures`),i=Object(h["a"])(a,[f["a"].measure]);return t(s["m"],i.entities),i.result},async[i["ac"]]({commit:t},e){const a=await n["a"].get("/devices/"+e),i=Object(h["a"])(a,f["a"].device);return t(s["m"],i.entities),i.result},async[i["Xb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/trackpoints`),i=Object(h["a"])(a,[f["a"].trackpoint]);return t(s["m"],i.entities),i.result},async[i["hc"]]({commit:t},e){const a=await n["a"].get("/locations/"+e),i=Object(h["a"])(a,f["a"].location);return t(s["m"],i.entities),i.result},async[i["zb"]]({commit:t},e){const a=await n["a"].get(`/classifications/${e}/gpx-link`),i={classification:e,url:a},o=Object(h["a"])(i,f["a"].gpxFile);return t(s["m"],o.entities),o.result},async[i["oc"]]({commit:t},e){const a=await n["a"].get(`panel/operators/${e}/organizers`),i=Object(h["a"])(a,[f["a"].organizer]);return t(s["m"],i.entities),i.result},async[i["lc"]]({commit:t}){const e=await n["a"].get("/panel/operators"),a=Object(h["a"])(e,[f["a"].operator]);return t(s["m"],a.entities),a.result},async[i["Qb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/players/count`),i=Object(h["a"])(a,f["a"].competitionPlayerCount);return t(s["m"],i.entities),i.result},async[i["Sb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/layout`),i=Object(h["a"])(a,f["a"].layout);return t(s["m"],i.entities),i.result},async[i["Vb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/count/payment`),i={competition:e,count:a.count,refundsCount:a.refundsCount,refundsTotal:a.refundsTotal,netTotal:a.netTotal},o=Object(h["a"])(i,f["a"].paymentCount);return t(s["m"],o.entities),o.result},async[i["vc"]](t,e){try{const t=await n["a"].get(`/panel/players/${e}/price`);return t}catch(a){return Promise.reject(a)}},async[i["Kb"]]({commit:t},e){const a=await n["a"].get(`/competitions/${e}/category/count`),i=Object(h["a"])(a,[f["a"].categoryCount]);return t(s["m"],i.entities),i.result}},w={async[i["vd"]]({commit:t},e){await n["a"].put("/user",e);const a=Object(h["a"])(e,f["a"].user);t(s["m"],a.entities)},async[i["wd"]]({commit:t},e){await n["a"].put("/user/children/"+e.id,e);const a=Object(h["a"])(e,f["a"].user);t(s["m"],a.entities)},async[i["id"]]({commit:t},e){await n["a"].put("/checkpoints/"+e.id,e);const a=Object(h["a"])(e,f["a"].checkpoint);t(s["m"],a.entities)},async[i["od"]](t,e){if(e.id){const a=Object(h["a"])(e,f["a"].measure);t.commit(s["m"],a.entities)}else t.dispatch(i["pd"],e);try{if(e.id)await n["a"].put("/measures/"+e.id,e);else{const t=e.deviceTime.format("YYYY-MM-DDTHH:mm:ss.SSSSSS");await n["a"].put("measures/"+t,e)}}catch(a){console.log("network error")}},async[i["md"]]({commit:t},e){await n["a"].put("/gates/"+e.id,e);const a=Object(h["a"])(e,f["a"].gate);t(s["m"],a.entities)},async[i["kd"]]({commit:t},e){try{await n["a"].put("/classifications/"+e.id,e)}catch(i){console.log(i)}const a=Object(h["a"])(e,f["a"].classification);t(s["m"],a.entities)},async[i["ld"]]({commit:t},e){await n["a"].put("/panel/competitions/"+e.id,e);const a=Object(h["a"])(e,f["a"].competition);t(s["m"],a.entities)},async[i["nd"]]({commit:t},e){await n["a"].put("/locations/"+e.id,e);const a=Object(h["a"])(e,f["a"].location);t(s["m"],a.entities)},async[i["ud"]]({commit:t},e){await n["a"].put("/trackpoints/"+e.id,e);const a=Object(h["a"])(e,f["a"].trackpoint);t(s["m"],a.entities)},async[i["td"]](t,e){const a=await n["a"].put(`/players/${e.id}/measures`,e.measure);return a},async[i["rb"]](t,e){const a=await n["a"].put("/measures/"+e.id,{invalidated:e.invalidated});return a},async[i["sd"]](t,e){const a=await n["a"].put("/panel/players/"+e.id,e);return a},async[i["rd"]](t,e){const a=await n["a"].put("/panel/inputs/"+e.id,e);return a}
1,async[i["qd"]](t,{id:e,inputs:a}){const i=await n["a"].put(`/panel/competitions/${e}/inputs`,a);return i}},k={ages:t=>t.ages,categories:t=>t.categories,checkpoints:t=>t.checkpoints,classifications:t=>t.classifications,classificationsSettings:t=>t.classificationsSettings,classificationsPlayerCount:t=>t.classificationsPlayerCount,competitions:t=>t.competitions,competitionsPrices:t=>t.competitionsPrices,competitionsSettings:t=>t.competitionsSettings,competitionsCurrency:t=>t.competitionsCurrency,cycles:t=>t.cycles,devices:t=>t.devices,familyAssociations:t=>t.familyAssociations,gates:t=>t.gates,layouts:t=>t.layouts,limits:t=>t.limits,locations:t=>t.locations,measures:t=>t.measures,operators:t=>t.operators,organizers:t=>t.organizers,players:t=>t.players,panelPlayers:t=>t.panelPlayers,prices:t=>t.prices,results:t=>t.results,trackpoints:t=>t.trackpoints,users:t=>t.users,gpxFiles:t=>t.gpxFiles,competitionPlayerCounts:t=>t.competitionPlayerCounts,paymentCounts:t=>t.paymentCounts,categoryCounts:t=>t.categoryCounts},x=(a("0481"),a("4069"),a("2f7e")),O=(t,e,a=!1,n,i=!1)=>{const s=Object.values(t),o=(t,e)=>a?e:t,r=(t,e)=>a?t:e,l="id";let c=null!==n&&void 0!==n?n:Object(x["e"])(Object(x["c"])(r(s,e)),"_type")[0];i&&(c+="s");const d=t=>{const a=Object(x["e"])(Object(x["c"])(o(t,e)),c),n=Object(x["e"])(Object(x["c"])(r(t,e)),l);return Object(x["a"])(a.flat(),n.flat())};return c?s.filter(d):[]},A=a("2ef0"),S=a.n(A),z={agesBy:t=>e=>O(t.ages,e),categoriesBy:t=>e=>{const[{_type:a}]=Object(x["c"])(e);return"player"===a?O(t.categories,e,!0):O(t.categories,e)},checkpointsBy:t=>e=>{const[{_type:a}]=Object(x["c"])(e);return"checkpointGroup"===a?Object.values(Object(A["pick"])(t.checkpoints,e.checkpointsIds)):O(t.checkpoints,e,!1,void 0,"gate"===a)},childrenAssociationsBy:t=>e=>O(t.familyAssociations,e,!1,"parentUser"),classificationsBy:t=>e=>O(t.classifications,e,"player"===Object(x["e"])(Object(x["c"])(e),"_type")[0]),competitionsBy:t=>e=>O(t.competitions,e,!0),devicesBy:t=>e=>O(t.devices,e),gatesBy:t=>e=>{const a="checkpoint"===Object(x["e"])(Object(x["c"])(e),"_type")[0];return O(t.gates,e,a,void 0,a)},layoutsBy:t=>e=>O(t.layouts,e),limitsBy:t=>e=>O(t.limits,e),playersBy:t=>e=>O(t.players,e),pricesBy:t=>e=>O(t.prices,e),measuresBy:t=>e=>O(t.measures,e),trackpointsBy:t=>e=>O(t.trackpoints,e,!1,void 0,!0),parentsAssociationsBy:t=>e=>O(t.familyAssociations,e,!1,"childUser")},j=a("2b0e"),I={[s["m"]](t,e){for(const n in e)for(const i in e[n]){var a;const s=Object(l["a"])(Object(l["a"])({},null!==(a=t[n][i])&&void 0!==a?a:{}),e[n][i]);j["default"].set(t[n],i,s)}},[s["b"]](t,e){for(const a in e)for(const n of e[a])j["default"].delete(t[a],n)}},P={ages:{},categories:{},checkpoints:{},classifications:{},classificationsSettings:{},classificationsPlayerCount:{},competitionPlayerCounts:{},competitions:{},competitionsPrices:{},competitionsSettings:{},competitionsCurrency:{},cycles:{},devices:{},familyAssociations:{},gates:{},layouts:{},limits:{},locations:{},measures:{},operators:{},organizers:{},players:{},panelPlayers:{},prices:{},results:{},trackpoints:{},users:{},gpxFiles:{},paymentCounts:{},categoryCounts:{},notifications:{}},E={state:P,getters:Object(l["a"])(Object(l["a"])({},k),z),mutations:I,actions:Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},b),C),w),_)},T={actions:{async[i["bc"]](){}}};a("d9e2");var N,R={actions:{async[i["fc"]](t,e){},async[i["ec"]](t,e){}}},L={state:{lang:null!==(N=localStorage.getItem("lang"))&&void 0!==N?N:"pl",langs:[],messages:{}},getters:{say:t=>t.messages,lang:t=>t.lang,langs:t=>t.langs},mutations:{[s["t"]](t,e){t.langs=e},[s["v"]](t,e){t.messages=e},[s["s"]](t,e){t.lang=e,localStorage.setItem("lang",e)}},actions:{async[i["gc"]]({commit:t}){const e=await n["a"].get("/langs");t(s["t"],e)},async[i["ic"]]({commit:t},e){const a=await n["a"].get("/messages/"+e);t(s["v"],a)},async[i["s"]]({commit:t,dispatch:e},a){await e(i["ic"],a),t(s["s"],a)}}},M=a("f8dc"),D=a("e19fd");function $(t){var e,a,n,i;const s=null!==(e=null===(a=t.lokalizacja)||void 0===a?void 0:a.split(","))&&void 0!==e?e:[];return{dateSince:t.od?d()(t.od,"DD.MM.YYYY"):void 0,dateTo:t.do?d()(t.do,"DD.MM.YYYY"):void 0,pay:"tak"===t.platne||"nie"!==t.platne&&void 0,remote:null===t.wirtualne||void 0,types:(null!==(n=null===(i=t.typ)||void 0===i?void 0:i.split(","))&&void 0!==n?n:[]).map(t=>Number.parseInt(t,10)),page:t.strona?Number.parseInt(t.strona,10):1,status:t.status?Number.parseInt(t.status,10):void 0,name:t.nazwa,location:{name:s[0],geometry:s.length>1?{lat:s[1],lng:s[2]}:void 0}}}function U(t){var e,a,n,i;const s=null!==(e=t.location)&&void 0!==e&&e.geometry?Object(D["sprintf"])("%s,%.5f,%.5f",t.location.name,t.location.geometry.lat,t.location.geometry.lng):void 0;return{od:null===(a=t.dateSince)||void 0===a?void 0:a.format("DD.MM.YYYY"),do:null===(n=t.dateTo)||void 0===n?void 0:n.format("DD.MM.YYYY"),typ:null!==(i=t.types)&&void 0!==i&&i.length?t.types.join(","):void 0,platne:!0===t.pay?"tak":!1===t.pay?"nie":void 0,lokalizacja:s,strona:t.page>1?t.page:void 0,status:t.status,nazwa:t.name,wirtualne:t.remote?null:void 0}}function B(){return{dateSince:d()().startOf("day"),promoted:!0}}function F(t,e){var a,n;const i=d()().startOf("day"),{page:s}=t,o=Object(l["a"])(Object(l["a"])({},t),{},{dateSince:(null===(a=t.dateSince)||void 0===a?void 0:a.diff(i))>0?t.dateSince:i,itemsPerPage:"main-list-map"===e.route.name?100:5,page:s,organizer:"main-site-organizer"===e.route.name?e.route.params.id:void 0,operator:"main-site-operator"===e.route.name?e.route.params.id:void 0}),r=Object(l["a"])(Object(l["a"])({},t),{},{dateTo:(null===(n=t.dateTo)||void 0===n?void 0:n.diff(i))<0?t.dateTo:i,sort:"desc",itemsPerPage:"main-list-map"===e.route.name?100:5,page:s,organizer:"main-site-organizer"===e.route.name?e.route.params.id:void 0,operator:"main-site-operator"===e.route.name?e.route.params.id:void 0}),c=Object(l["a"])(Object(l["a"])({},o),{},{promoted:!0,itemsPerPage:1,organizer:"main-site-organizer"===e.route.name?e.route.params.id:void 0,operator:"main-site-operator"===e.route.name?e.route.params.id:void 0});return[c,o,r]}var q={getters:{filter:(t,e)=>$(e.route.query)},mutations:{[s["n"]](t,{filter:e,route:a,destination:n=null}){n?M["a"].$emit("router:push",{name:n,query:U(e),alias:!0}):["main-site-operator","main-site-organizer"].includes(a.name)?M["a"].$emit("router:replace",{query:U(e)}):["main-list-map"].includes(a.name)?M["a"].$emit("router:replace",{name:"main-list-map",query:U(e),alias:!0}):M["a"].$emit("router:push",{name:"main-list",query:U(e),alias:!0})},[s["o"]](t,{page:e}){t.futureFinishPage=e}},actions:{async[i["Sc"]]({dispatch:t},e){let a=B();e&&(a=Object(l["a"])(Object(l["a"])({},a),e));const{competitions:n}=await t(i["Ib"],a);return n},async[i["Tc"]]({getters:t,commit:e,dispatch:a}){const[n,o,r]=F(t.filter,t),l=t=>void 0!==t?a(i["Ib"],t):Promise.resolve({competitions:[]}),[{competitions:c},{competitions:d},{competitions:u}]=await Promise.all([l(n),l(o),l(r)]);return o&&o.itemsPerPage!==d.length&&e(s["o"],t.filter),[c,d,u]},async[i["Jb"]](){const t=await n["a"].get("/competitions/count");return t},async[i["Yb"]](t,e){const a=await n["a"].get(`/competitions/${e}/weather`);return a}}},H={state:{id:null,players:{registered:null,paid:null}},getters:{minisiteId:t=>t.id,registeredPlayers:t=>t.players.registered,paidPlayers:t=>t.players.paid},mutations:{[s["w"]](t,e){t.id=e},[i["cd"]](t,e){t.players.registered=e},[i["bd"]](t,e){t.players.paid=e}},actions:{async[i["n"]]({dispatch:t,commit:e},a){e(s["w"],null),await t(i["Hb"],a),e(s["w"],a)},async[i["c"]]({dispatch:t},{token:e,files:a}){await t(i["B"],{token:e,files:a})},async[i["Wc"]]({state:t},e){await n["a"].post("/contact-mail/"+t.id,e)},async[i["Zc"]](t,e){await n["a"].post("/paylink-mail/"+e.id)},async[i["Zb"]](t,e){const a=await n["a"].get(`/competitions/${e}/remote`);return a},async[i["Y"]]({dispatch:t},{result:e,token:a}){try{await t(i["N"],{token:a,result:e})}catch(n){return n}return null},async[i["U"]]({dispatch:t},{address:e,token:a}){try{await t(i["L"],{address:e,token:a})}catch(n){return n}return null},async[i["V"]]({dispatch:t},{files:e,token:a}){try{await t(i["B"],{token:a,files:e,isResult:!0})}catch(n){return n}return null},[i["v"]]({commit:t},e){const a={id:Math.random(),classifications:e.classifications,type:e.type,location:e.locationId};t(s["m"],{trackpoints:{[a.id]:a}});
1const n={location:e.locationId,trackpoints:{STA:a.id}};return n},[i["F"]]({commit:t},e){const a={id:Math.random(),lat:e.lat,lng:e.lng};return t(s["m"],{locations:{[a.id]:a}}),a},[i["X"]]({commit:t},e){t(i["cd"],e)},[i["W"]]({commit:t},e){t(i["bd"],e)}}},G={state:{notification:""},getters:{notification:t=>t.notification},mutations:{[s["x"]](t,e){t.notification=e},[s["c"]](t){t.notification=null}}};a("14d9"),a("498a"),a("4e82");function W(t,e){const a=Object(x["e"])(t,"startTime").filter(t=>null!==t),[n]=a.sort((t,e)=>null===t||void 0===t?void 0:t.diff(e));return Object(c["duration"])(e.diff(n))}function V(t,e){let a=!1;for(const i of e){var n;(null===(n=i.startTime)||void 0===n?void 0:n.unix())<=d()().unix()&&(a=!0)}return t&&a}function K(t,e=null,a=null){let n,i;if(e)n=t[e-Number(e<a)],i=t[e+Number(e>a)];else{const e=t.filter(t=>1===t.number);t.length>1?[n]=t.slice(-(e.length+1)):n=void 0,[i]=t.slice(-e.length)}return i?n?(n.number+i.number)/2:0:1}function Z(t,e,a){const n=t.filter(t=>0===t.number),i=t.map(t=>t.name),s=t.filter(t=>1===t.number);let o,r;e?(o=n.length+1,r=()=>"Start "+o):a?(o=s.length+1,r=()=>"Meta "+o):(o=t.length-1,r=()=>"Międzyczas "+o);while(i.includes(r()))o+=1;return r()}function Y(t,e,a=!1){let n;return n=e?0:a?1:K(t),{name:Z(t,e,a),gates:[],number:n,hidden:!1,classification:null}}function Q(t,e){const a=new Map;for(const n of e.classificationsBy(t))for(const i of e.checkpointsBy(n))if(a.has(i.name))a.get(i.name).checkpointsIds.push(i.id);else{const e={_type:"checkpointGroup",competition:t.id,name:i.name,number:i.number,checkpointsIds:[i.id]};a.set(i.name,e)}return S.a.sortBy(Array.from(a.values()),["number","name"])}var X={state:{gateId:null,competitionId:null,tick:0,ticker:null,frequency:1e3,number:"",numbers:[],measureNumber:"",isEditingMeasureNumber:!1,editingMeasure:null,offlineMeasures:[]},getters:{stoperGate:(t,e)=>e.gates[t.gateId],stoperClassificationsGate:(t,e)=>{const a=e.checkpointsBy(e.stoperGate).map(t=>t.classification),n=[];for(const i of a)n.push(e.classifications[i]);return n},stoperCompetition:(t,e)=>e.competitions[t.competitionId],stoperTime:({tick:t})=>d()(),stoperDuration:(t,e)=>W(e.stoperClassificationsGate,e.stoperTime),stoperStarted:(t,e)=>V(e.stoperGate,e.stoperClassificationsGate),stoperMeasures:(t,e)=>e.measuresBy(e.stoperGate),stoperPlayers:(t,e)=>e.playersBy(e.stoperClassifications),stoperDurationMeasure:(t,e)=>({deviceTime:t},a)=>Object(c["duration"])(t.diff(e.classificationsBy(a)[0].startTime)),stoperMeasured:(t,e)=>t=>void 0!==e.stoperMeasures.find(e=>e.tag===t),stoperNumbers:t=>t.numbers,stoperNumber:t=>t.number,stoperClassifications:(t,e)=>e.classificationsBy(e.stoperCompetition),stoperCheckpoints:(t,e)=>e.checkpointsBy(e.stoperClassifications),stoperGates:(t,e)=>e.gatesBy(e.stoperCheckpoints),measureNumber:t=>t.measureNumber,isEditingMeasureNumber:t=>t.isEditingMeasureNumber,editingMeasure:t=>t.editingMeasure,stoperStopped:(t,e)=>e.stoperCompetition.status===o["q"].official,stoperOfflineMeasures:t=>t.offlineMeasures.filter(e=>e.gate===t.gateId)},mutations:{[s["C"]](t,{id:e}){t.gateId=e},[s["F"]](t){t.ticker=setInterval(()=>{t.tick+=1},t.frequency)},[s["f"]](t){clearInterval(t.ticker)},[s["B"]](t,{id:e}){t.competitionId=e},[s["D"]](t,e){t.number=e},[s["E"]](t,e){t.numbers=e},[s["u"]](t,e){t.measureNumber=e},[s["l"]](t,e){t.editingMeasure=e},[s["p"]](t,e){t.isEditingMeasureNumber=e},[s["z"]](t,e){t.offlineMeasures.push(e)},[s["d"]](t,e){t.offlineMeasures.splice(e,1)}},actions:{async[i["q"]]({dispatch:t,getters:e,commit:a},{id:n,isSettingPage:o}){await Promise.all([t(i["Hb"],n),t(i["Lb"],n),t(i["Rb"],n),t(i["Ub"],n)]),a(s["B"],{id:n}),await t(i["mc"],e.stoperOrganizer.operator);const r=[];for(const s of e.stoperClassifications)r.push(t(i["yb"],s.id)),o||r.push(t(i["Bb"],s.id));await Promise.all(r)},async[i["fd"]]({commit:t}){t(s["f"]),await Promise.resolve()},async[i["dd"]]({dispatch:t,getters:e}){const a=[];for(const n of e.stoperClassificationsGate)a.push(t(i["kd"],Object(l["a"])(Object(l["a"])({},n),{},{startTime:e.stoperTime})));await Promise.all(a)},async[i["Rc"]]({dispatch:t,getters:e}){const a=[];for(const n of e.stoperClassificationsGate)a.push(t(i["kd"],Object(l["a"])(Object(l["a"])({},n),{},{startTime:null})));await Promise.all(a)},async[i["ed"]]({dispatch:t},[e,a]){await Promise.all([t(i["od"],Object(l["a"])(Object(l["a"])({},e),{},{tag:a.tag})),t(i["od"],Object(l["a"])(Object(l["a"])({},a),{},{tag:e.tag}))])},async[i["Vc"]]({dispatch:t,commit:e,state:a},n){await t(i["dc"],n.id),n&&!a.ticker&&e(s["F"]),!n&&a.ticker&&e(s["f"]),e(s["C"],n)},async[i["f"]]({dispatch:t,state:e},a){await t(i["G"],{gate:e.gateId,deviceTime:d()(),invalidated:!1,tag:a})},async[i["g"]]({state:t,dispatch:e,commit:a}){const[n,...o]=t.numbers;if(void 0!==n||t.number){if(void 0===n&&t.number){const n=t.number.trim();return a(s["D"],""),void await e(i["f"],n)}t.number&&o.push(t.number.trim()),a(s["E"],o),a(s["D"],""),await e(i["f"],n.trim())}else await e(i["f"],"")},[i["pd"]]({commit:t,getters:e},a){const n=S.a.findIndex(e.stoperOfflineMeasures,t=>t.deviceTime.isSame(a.deviceTime)),i=Object(l["a"])(Object(l["a"])({},e.stoperOfflineMeasures[n]),a);t(s["d"],n),t(s["z"],i)}}},J={getters:{checkpointGroups:(t,e)=>Q(e.stoperCompetition,e),stoperOrganizer:(t,e)=>e.organizers[e.stoperCompetition.organizer],checkpointGroupsStart:(t,e)=>e.checkpointGroups.filter(t=>0===t.number),checkpointGroupsMeta:(t,e)=>e.checkpointGroups.filter(t=>1===t.number)},actions:{async[i["r"]]({dispatch:t,getters:e},a){await Promise.all([t(i["q"],{id:a,isSettingPage:!0}),t(i["Ub"],a)]),await Promise.all([t(i["kc"],e.stoperOrganizer.operator),t(i["mc"],e.stoperOrganizer.operator)])},async[i["gd"]](){await Promise.resolve()},async[i["a"]]({dispatch:t,getters:e},a){const n=Y(e.checkpointGroups,a),s=[];if(a){const{checkpointGroupsStart:a}=e,[s]=a.filter(t=>t.checkpointsIds.length>
11),[o]=s.checkpointsIds.slice(-1),r=e.checkpoints[o];await t(i["Z"],o),await t(i["w"],Object(l["a"])(Object(l["a"])({},n),{},{classification:r.classification}))}else{for(const a of e.stoperClassifications)s.push(t(i["w"],Object(l["a"])(Object(l["a"])({},n),{},{classification:a.id})));await Promise.all(s)}},async[i["b"]]({dispatch:t,getters:e}){const a=Y(e.checkpointGroups,!1,!0),{checkpointGroupsMeta:n}=e,[s]=n.filter(t=>t.checkpointsIds.length>1),[o]=s.checkpointsIds.slice(-1),r=e.checkpoints[o];await t(i["Z"],o),await t(i["w"],Object(l["a"])(Object(l["a"])({},a),{},{classification:r.classification}))},async[i["ob"]]({dispatch:t,getters:e},{classification:a,checkpointGroup:n}){const s=e.checkpointsBy(n)[0].gates[0];if(0===n.number){let n=[];for(const t of e.checkpointGroupsStart){const a=e.checkpointsBy(t);n=n.concat(a)}const s=n.find(t=>t.classification===a.id);await t(i["Z"],s.id)}if(1===n.number){let n=[];for(const t of e.checkpointGroupsMeta){const a=e.checkpointsBy(t);n=n.concat(a)}const s=n.find(t=>t.classification===a.id);await t(i["Z"],s.id)}await t(i["w"],{name:n.name,gates:s?[s]:[],number:n.number,hidden:!1,classification:a.id})},async[i["mb"]]({dispatch:t},e){await t(i["Z"],e.id)},async[i["ub"]]({dispatch:t,getters:e},{checkpointGroup:a,position:n,oldPosition:s}){const o=K(e.checkpointGroups,n,s);await t(i["jd"],Object(l["a"])(Object(l["a"])({},a),{},{number:o}))},async[i["jd"]]({dispatch:t,getters:e},a){const n=[];for(const s of e.checkpointsBy(a))n.push(t(i["id"],Object(l["a"])(Object(l["a"])({},s),{},{number:a.number,gates:a.gates,name:a.name})));await Promise.all(n)},async[i["Oc"]]({dispatch:t,getters:e},a){const n=[];for(const s of e.checkpointsBy(a))n.push(t(i["Z"],s.id));await Promise.all(n)},async[i["d"]]({dispatch:t,getters:e},a){await t(i["A"],{name:a.name,type:a.type,operator:e.stoperOrganizer.operator})},async[i["Uc"]]({dispatch:t,getters:e},{checkpointGroup:a,device:n}){let s=Object.values(e.gates).find(t=>t.device===(null===n||void 0===n?void 0:n.id)&&t.competition===a.competition);if(n&&!s){const o=await t(i["D"],{device:n.id,name:"Gate at "+n.name,competition:a.competition});s=e.gates[o]}await t(i["jd"],Object(l["a"])(Object(l["a"])({},a),{},{gates:s?[s.id]:[]}))},async[i["wb"]](t,e){try{const t=await n["a"].get(`/panel/competitions/${e}/chronometry/files`);return t}catch(a){return a}},async[i["ad"]](t,e){try{const t=await n["a"].post(`/panel/competitions/${e}/chronoDefault`);return t}catch(a){return a}}}},tt={actions:{async[i["pb"]]({commit:t,getters:e},a){const i=e.users[a.parentUser].id;await n["a"].post(`/user/parents/${i}/enable`);const o=Object(l["a"])(Object(l["a"])({},a),{},{pending:!1,enabled:!0});t(s["m"],{familyAssociations:{[a.id]:o}})},async[i["nb"]]({commit:t,getters:e},a){const i=e.users[a.parentUser].id;await n["a"].post(`/user/parents/${i}/disable`);const o=Object(l["a"])(Object(l["a"])({},a),{},{pending:!1,enabled:!1});t(s["m"],{familyAssociations:{[a.id]:o}})},async[i["e"]]({commit:t,getters:e}){let a;try{a=await n["a"].post("/organizers")}catch(o){return o}const i=Object(l["a"])(Object(l["a"])({},e.user),{},{organizer:a.id,roles:[...e.user.roles,"ROLE_ORGANIZER"]});return t(s["m"],{users:{[i.id]:i}}),!0},async[i["h"]]({commit:t,getters:e}){try{await n["a"].post("/role/user")}catch(i){return i}const a=Object(l["a"])(Object(l["a"])({},e.user),{},{roles:[...e.user.roles,"ROLE_USER"]});return t(s["m"],{users:{[a.id]:a}}),!0}}},et={state:{resultsEditStatus:!1},getters:{isResultsEdit:t=>t.resultsEditStatus},mutations:{[s["A"]](t,e){t.resultsEditStatus=e}},actions:{async[i["o"]]({dispatch:t},e){const[a,{competitions:n}]=await Promise.all([t(i["oc"],e),t(i["Ib"],{operator:e,panel:1,page:1,itemsPerPage:30}),t(i["kc"],e)]);return{organizersIds:a,competitionsIds:n}},async[i["p"]]({dispatch:t},e){const[{competitions:a}]=await Promise.all([t(i["Ib"],{organizer:e,panel:1,itemsPerPage:30,page:1}),t(i["pc"],e)]);return{competitionsIds:a}},async[i["m"]]({dispatch:t}){const[e,{competitions:a}]=await Promise.all([t(i["lc"]),t(i["Ib"],{panel:1,itemsPerPage:30,page:1})]);
1return{competitionsIds:a,operatorsIds:e}},async[i["Cc"]](t,e){const a=await n["a"].get("/users",{params:e});return a},async[i["Yc"]](t,e){return await n["a"].post(`/panel/organizer/${e}/send/password`),!0},async[i["Xc"]](t,e){return await n["a"].post(`/panel/operator/${e}/send/password`),!0},async[i["u"]]({commit:t},e){const a=await n["a"].post(`/panel/competitions/${e}/copy`),i=Object(h["a"])(a,f["a"].competition);return t(s["m"],i.entities),i.result},async[i["z"]]({commit:t},e){const a=await n["a"].post(`/panel/organizers/${e}/competitions/default`),i=Object(h["a"])(a,f["a"].competition);return t(s["m"],i.entities),i.result},async[i["C"]]({commit:t,getters:e},a){await n["a"].post(`/panel/competitions/${a}/gamification`);const i=e.competitions[a];return i.gamification=!i.gamification,t(s["m"],{competitions:{[i.id]:i}}),!0},async[i["bb"]]({commit:t,getters:e},a){await n["a"].delete(`/panel/competitions/${a}/gamification`);const i=e.competitions[a];return i.gamification=!i.gamification,t(s["m"],{competitions:{[i.id]:i}}),!0},async[i["Ac"]]({commit:t},e){try{const a=await n["a"].get(`panel/competitions/${e}/results/status`);t(s["A"],a.resultEdited)}catch(a){return a}}}},at={state:{notifications:{proposedCompetition:!1,incomingCompetition:!1,myResults:!1,deviceToken:null},createNotifications:!1},getters:{notifications:t=>t.notifications,createNotifications:t=>t.createNotifications},mutations:{[s["y"]](t,e){t.notifications=e},[s["k"]](t,e){t.createNotifications=e}},actions:{async[i["Lc"]]({commit:t}){const e=await n["a"].get("/user/notifications");return null===e?t(s["k"],!0):t(s["y"],e),e},async[i["T"]]({commit:t},e){return await n["a"].post("/user/notifications",e),t(s["y"],e),t(s["k"],!1),e},async[i["yd"]]({commit:t},e){return await n["a"].put("/user/notifications",e),t(s["y"],e),e}}},nt={state:{messages:null,unread:!1},getters:{messages:t=>t.messages,isMessagesUnread:t=>t.unread},mutations:{[s["I"]](t,e){t.messages=e},[s["r"]](t,e){t.unread=e}},actions:{async[i["Kc"]]({commit:t}){const e=await n["a"].get("/user/messages/unread");t(s["r"],e)},async[i["Jc"]]({commit:t}){const e=await n["a"].get("/user/messages");t(s["I"],e)},async[i["xd"]](){await n["a"].post("/user/messages")}}},it={authentication:r,common:m,entities:E,facebook:T,google:R,internationalisation:L,main:q,minisite:H,notification:G,stoper:X,stoperSettings:J,user:tt,panel:et,notifications:at,messages:nt},st=a("2f62");j["default"].use(st["a"]);e["a"]=new st["a"].Store({modules:it})},"43b4":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".competition-box__status {\n    padding: 8px 12px;\n    margin-top: 16px;\n    line-height: 1.71;\n    border-top-left-radius: 4px;\n    border-bottom-left-radius: 4px;\n}\n\n.competition-box__save-info {\n    margin-bottom: 16px;\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n}\n\n.competition-box__hint {\n    display: flex;\n    align-items: center;\n    margin-top: 16px;\n}\n\n.competition-box__location {\n    margin-top: 16px;\n    margin-bottom: 16px;\n    line-height: 1.41;\n}\n\n.competition-box__registering-person {\n    display: flex;\n    align-items: center;\n    margin-top: 8px;\n    margin-right: 12px;\n}\n\n.competition-box__status--open {\n    background-color: var(--color-light-sage-40);\n}\n.competition-box__status--results {\n    background-color: #0098df;\n    color: #fff;\n}\n\n.competition-box__status--close {\n    background-color: rgba(255, 23, 68, 0.1);\n}\n\n.competition-box__status--desktop {\n    display: none;\n}\n\n.competition-box__description {\n    padding: 16px 16px 20px 16px;\n}\n\n.competition-box__description--with-actions {\n    padding-bottom: 4px;\n}\n\n.competition-box {\n    border-radius: 4px;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1), 0 0 2px 0 rgba(55, 71, 79, 0.2);\n    margin-top: 16px;\n    overflow-y: hidden;\n    position: relative;\n}\n\n.competition-box__category {\n    position: absolute;\n    top: 10px;\n    left: 0;\n    border-top-right-radius: 4px;\n    border-bottom-right-radius: 4px;\n    padding: 8px 12px;\n    color: var(--color-black);\n    font-weight: bold;\n    background-color: rgba(255, 255, 255, 0.7);\n}\n\n.competition-box__price {\n    display: flex;\n    justify-content: space-between;\n    color: var(--color-white);\n    padding: 8px 12px 8px 12px;\n    border-radius: 4px;\n    background-color: rgba(0, 0, 0, 0.2);\n    line-height: 1.71;\n}\n\n.competition-box__image {\n    height: 108px;\n    background-repeat: no-repeat;\n    background-position: center top;\n    background-size: cover;\n    border-radius: 4px;\n    overflow: hidden;\n}\n\n.competition-box__image-content {\n    padding: 16px;\n    height: 100%;\n    justify-content: space-between;\n    flex-direction: column;\n    display: flex;\n    box-sizing: border-box;\n}\n\n.competition-box__voucher {\n    display: flex;\n    flex-wrap: wrap;\n    line-height: 1.5;\n    margin-bottom: 8px;\n    padding: 12px 16px;\n    background-color: var(--color-pale-grey);\n    border-radius: 4px;\n    box-shadow: 0 8px 12px 0 rgba(55, 71, 79, 0.1), 0 0 1px 0 rgba(55, 71, 79, 0.3);\n}\n\n.competition-box__voucher:last-child {\n    margin-bottom: 8px;\n}\n\n.competition-box__invite {\n    display: flex;\n    margin-bottom: 20px;\n}\n\n.competition-box__result {\n    display: flex;\n    flex-wrap: wrap;\n    background-color: var(--color-pale-grey);\n    box-shadow: 0 8px 12px 0 rgba(55, 71, 79, 0.1), 0 0 1px 0 rgba(55, 71, 79, 0.3);\n    border-radius: 4px;\n    padding: 8px 16px;\n}\n\n.competition-box__result-time {\n    margin-bottom: 8px;\n}\n\n.competition-box__result-place {\n    margin-bottom: 8px;\n}\n\n.competition-box__actions {\n    display: flex;\n    flex-wrap: wrap;\n    width: 100%;
1\n    align-items: center;\n}\n\n.competition-box__actions-group {\n    display: flex;\n    margin-top: 12px;\n    width: 100%;\n}\n\n.competition-box__actions-primary {\n    margin-bottom: 12px;\n    white-space: nowrap;\n}\n\n.competition-box__actions .btn {\n    box-sizing: border-box;\n    height: 40px;\n    width: 100%;\n    text-transform: none;\n    white-space: normal !important;\n}\n\n.competition-box__actions-group .btn {\n    border-right: 1px solid var(--color-cool-grey);\n    box-shadow: 0 8px 12px 0 rgba(55, 71, 79, 0.1), 0 0 1px 0 rgba(55, 71, 79, 0.3);\n}\n\n.competition-box__actions-group .btn--5:first-child {\n    border-top-left-radius: 4px;\n    border-bottom-left-radius: 4px;\n}\n\n.competition-box__actions-group .btn--5:last-child {\n    border-right: none;\n    border-top-right-radius: 4px;\n    border-bottom-right-radius: 4px;\n}\n\n.competition-box__pay {\n    margin-top: 16px;\n    margin-left: 8px;\n}\n\n.competition-box__pay--succes {\n    color: var(--color-dark-pastel-green);\n}\n\n.competition-box__pay--fail {\n    color: var(--color-pinky-red);\n}\n\n/* TO DO NAME  */\n\n.image-circle {\n    border-radius: 32px;\n    width: 32px;\n    height: 32px;\n    -o-object-position: center;\n       object-position: center;\n}\n\n.competition-box__registerer-name {\n    display: flex;\n    align-items: center;\n    margin-top: 8px;\n}\n\n.competition-box__registerer {\n    /* margin-top: 16px; */\n    margin-bottom: 24px;\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n}\n\n.competition-box__price--free {\n    justify-content: center;\n    text-transform: uppercase;\n}\n\n.competition-box__voucher-classification {\n    margin-bottom: 8px;\n}\n\n.competition-box__actions-status {\n    margin-top: 16px;\n}\n\n.base-skeleton-text {\n    background-color: var(--color-pale-grey);\n    height: 18px;\n    border-radius: 16px;\n}\n.base-skeleton-text--light {\n    background-color: var(--color-cool-grey);\n}\n.competition-box__hint--skeleton {\n    height: 40px;\n}\n\n.w200px {\n    width: 200px;\n}\n\n.competition-box__description-title--skeleton {\n    height: 24px;\n    width: 200px;\n    border-radius: 16px;\n}\n\n.competition-box__status--skeleton {\n    height: 40px;\n    box-sizing: border-box;\n    background-color: var(--color-pale-grey);\n}\n\n.competition-box__image-content--skeleton {\n    border-radius: 5px;\n    background-color: var(--color-pale-grey);\n    width: 100%;\n}\n\n.base-skeleton-text--location {\n    width: 160px;\n}\n\n.base-skeleton-text--date {\n    width: 130px;\n    margin-top: 8px;\n}\n\n@media (min-width: 992px) {\n    .competition-box__description-title--skeleton {\n        width: 60%;\n        margin-bottom: 24px;\n    }\n    .competition-box__actions .btn {\n        width: auto;\n    }\n    .competition-box__actions-group {\n        margin-top: 0;\n    }\n    .competition-box__actions-status {\n        margin-top: 0;\n    }\n    .competition-box__registering-person {\n        margin-top: 0px;\n        margin-left: 8px;\n    }\n    .competition-box {\n        display: flex;\n    }\n    .competition-box__image {\n        height: 100%;\n        width: 263px;\n    }\n    .competition-box__image-content {\n        padding: 24px;\n    }\n    .competition-box__status--mobile {\n        display: none;\n    }\n    .competition-box__status--desktop {\n        display: block;\n        margin-right: -16px;\n        margin-left: auto;\n        white-space: nowrap;\n        margin-bottom: 16px;\n    }\n    .competition-box__status {\n        margin-top: 0;\n    }\n    .competition-box__status--no-margin-bottom {\n        margin-bottom: 0;\n    }\n    .competition-box__hint {\n        display: flex;\n        justify-content: space-between;\n    }\n    .competition-box__voucher-classification {\n        margin-bottom: 0px;\n    }\n    .competition-box__actions {\n        width: auto;\n    }\n    .competition-box__location {\n        margin-top: 4px;\n        margin-bottom: 16px;\n    }\n    .competition-box__description {\n        width: 100%;\n        padding: 16px 16px 24px 30px;\n    }\n    .competition-box__description--with-actions {\n        padding-bottom: 8px;\n    }\n    .competition-box__actions-primary {\n        /* flex: 0 0 115px; */\n        /* margin-right: 8px; */\n        margin-bottom: 0;\n        max-width: 115px;\n        display: flex;\n    }\n    .competition-box__pay {\n        margin-top: 0px;\n        margin-left: 16px;\n    }\n    .competition-box__registerer-name {\n        margin-top: 0px;\n        margin-left: 8px;\n    }\n    .competition-box__hint > .competition-box__status {\n        margin-bottom: 0;\n    }\n    .competition-box__result {\n        padding: 10px 16px;\n    }\n    .competition-box__result-time {\n        margin-bottom: 0px;\n    }\n    .competition-box__result-place {\n        margin-bottom: 0px;\n    }\n}\n",""]),t.exports=e},"43b9":function(t,e,a){},4401:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMfSURBVHgB7VlRbuIwEB2iFQi+OEI4wcIJNvwBP+UG7J5ge4PSG7Qn2HID+gNIfDR7gnKDZm/AFwgQsPMiG5loW+wJga2UJ1lxqT1+Mx57ZhKiHDn+X3Q6nTc0yhBfKFv4lDE8+uTIFbg2Pr0CVodY3yS73a45mUwiyhCtVsv3PO8F/dFoVDs13moH9vs9HrFgLECW4HkRmu14g7yv1jyJgs0gCC4UCi/cfP4zymInEuShu
1NUaVgroBbJSQkoesA5kEMgLNbkbK6EWPPLRIAiq5XL5O3e/casrZUm5UcR/D1jxMElOSh6w3gENvRPoL5fLRhiGcxCvVCo/+fdbJlC1ENPnA3qPTrfbra5Wq1f0XcmTRAENkAZ5c/sViZDbgLsHS/MtVmfL13ncDTgrEQc31LJIALECwD989wcTCk/NOedZShXIDMvP4E6nyAMgWyqVGphD6mrGDpAQYgXYLe5IWX6xWDRdXGA4HM6LxWJTHW6fz88tCSFyIeU6OjrXpC7AcgK1i3M2Qk1yDkQ7wIsGeDL55zT+C5fDoeeuvn7duZAAvGhPdYeUEogNSmZAAogU0AFqu93OKCUQ2GIinveVBDiKxCrr9N8ZGxnZYTxmOp2mVgAuyOseZDryON6BjzJA2+zwHHDhIbqFDAv5bI0/lAKI0vxAKhHZ5P9JSOOAdp0mpQcUIJe6wYT0Fvqtnj1Kjxsla0ACiBTgVOCJb6I5twDBiIRQ1Z1O7kISQKQAUgG22GMswPN+SXIZzNG1L+NeGhDFuRDnMg9GLuOUkKn64ZDF8uHtkxBiBdQu6ISszoRebQp+uBzGYo6uwCgFzlLQGPk9DuOQ+8+bzWamA51SLODfezg3atyhfLxoQWO+t+EMsqEX5vu8z487CxEY/8hzHzAXJeV6vY5LSklx46RAsgIbj8e15P9JWRpjzKKe+zNcv1z4PCWt3W6336QVmtNrlTRvD07JlpaZ1i+2siJvriFRwuoWkpJ3+UIDmcat5hsx4mNuNoOQAQot75PDVxpTiUtmv++Crb9HowyRf+C4NnIFro1MvxNLq6wcOS6Iv18IPouLf9XRAAAAAElFTkSuQmCC"},4403:function(t,e,a){t.exports=a.p+"img/logo-dostartu.d024f096.svg"},"447d":function(t,e,a){t.exports=a.p+"img/add-to-list.0690158b.svg"},"449d":function(t,e,a){t.exports=a.p+"img/[email protected]"},"44e9":function(t,e,a){"use strict";a("6ac7")},4507:function(t,e,a){},"450a":function(t,e,a){t.exports=a.p+"img/notpaid.934faa58.svg"},4516:function(t,e,a){"use strict";a("0039")},4572:function(t,e,a){"use strict";a("8a0f")},"45c1":function(t,e,a){"use strict";a("d663")},4618:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn btn-download",class:{disabled:t.disabled},on:{click:function(e){!t.disabled&&t.download()}}},[e("i",{staticClass:"btn-download__icon fas fa-file-download"}),t._t("default")],2)},i=[],s=(a("ddb0"),a("2b3d"),a("9861"),a("bc3a")),o=a.n(s),r={props:{url:{required:!0,validator:t=>"string"===typeof t||null===t},fileName:{type:String,required:!0},disabled:{type:Boolean,default:!1}},methods:{downloadFileLink(t){let e="text/csv;charset=ISO-8859-2";this.fileName.endsWith(".xlsx")?e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":this.fileName.endsWith(".xls")&&(e="application/vnd.ms-excel");const a=window.URL.createObjectURL(new Blob([t],{type:e})),n=document.createElement("a");n.href=a,n.setAttribute("download",this.fileName),document.body.appendChild(n),n.click(),n.style.display="none"},download(){this.url&&o()({method:"get",url:this.url,responseType:"blob"}).then(t=>{this.downloadFileLink(t)}).catch(()=>console.log("download error"))}}},l=r,c=(a("99ea"),a("2877")),d=Object(c["a"])(l,n,i,!1,null,"32517902",null);e["default"]=d.exports},4626:function(t,e,a){t.exports=a.p+"fonts/fa-solid-900.93f28454.woff"},4638:function(t,e,a){t.exports=a.p+"img/link-icon.e9f481db.svg"},"463f":function(t,e,a){t.exports=a.p+"img/success-thumb.ef8d8582.svg"},4678:function(t,e,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"
10e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"64030","./ms-my.js":"64030","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(t){var e=s(t);return a(e)}function s(t){if(!a.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=s,t.exports=i,i.id="4678"},4689:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALwSURBVHgB7VfJjeJAFC1Qs1+YDEwGEMHAAYnlMGSAO4Img3ZHMN0R4Ilg4AIIDtMZDBlACH3iwDrvWWXJQtguL0CP2k8qV9kul//7v+ovQiRIkCBBgq+MlIgB9Xq9XCgUdAy/o1VTqZTmeL1kO51O4+l0OhIxIzKBdrvdS6fTQwhYVpi+Ph6PjdlsthYxIRKBbrf7E4IPOEb/jm6MfuQUsNPpVCE0rfIsLfOx2+0ai8ViKWJAaAIQ7BmdQYEg9Au2x6vX/F6vV95ut5z/xG9AqhaHJUIRgPA6uiEFQWtMJhNlbWLLmbBEnxYD6YaIiLQIB2qf2+YliPBELpcbgMAHWr3VatVFRAS2gK19CL+GBisiBLCGIaQSHAjlrcJY4Acv1L4ICex/88LjKpoOy/wGwRWsowkFBCZg+/jD4RDaizgPL7Zgig3DGog90rIYa3DNf5vNZtVvrcAE8ANr0ahukIJKYS3wLIGYiTNSw+0bWjmTyfzxs4TSGWCkLRaLT/ihbltAau1qUPVWvhZAsOqXSqUVhoYtvFNz14Kqt/IkgMNErZtME6gJpgGbzeZbWO8TBKPRiAHyzRIyne67zXtwe8G9B/YGFuEtI60hbgx6KwhPd1t3m+NqAX4oEzQT+90Qd4DDW2luc1wJQPuWt4EWfolPDFcCtruEFt7FncBMVsri6rJ9vRBdqLgfLALYDaEIrHnJ5/O+0fAakIqz8qX9fj92m+dFwNr7LETEHYDYw/9qjDnz+dw1uXMlkM1mX+1AIouXQGBCxiYCgprHd0NZ6TEWeNYMnukAYoHOelfemvRIqocaQlgBRDXlYNxhwILCBtJ9KxVLvosjJxk4YoKNNRaunAm8kgJXLhE4f3/2neZ8xqiP9qhScvp6Ida6SJ1rWJBnYil/cGmqJjwCjtt7ey2ZX9HKDSZvqvXyg8okuZguroCoeVXYmvjTICFwb/z3BJQOcRjcomojrkbgFlUbERsBP43fyiIJEiRIkOBr4R+FUIhUyCWAZAAAAABJRU5ErkJggg=="},4787:function(t,e,a){"use strict";a("199a")},"47b1":function(t,e,a){},"47b6":function(t,e,a){"use strict";var n=a("5530"),i=a("5e23"),s=new i["b"].Entity("ages",{},{idAttribute:"classification",processStrategy:t=>Object(n["a"])({_type:"age"},t)}),o=new i["b"].Entity("categories",{},{processStrategy:t=>Object(n["a"])({_type:"category"},t)}),r=new i["b"].Entity("classificationsSettings",{},{idAttribute:"classification",processStrategy:t=>Object(n["a"])({_type:"classificationSetting"},t)}),l=new i["b"].Entity("classificationsPlayerCount",{},{idAttribute:"classification",processStrategy:t=>Object(n["a"])({_type:"classificationPlayerCount"},t)}),c=new i["b"].Entity("competitionsSettings",{},{idAttribute:"competition",processStrategy:t=>Object(n["a"])({_type:"competitionSetting"},t)}),d=new i["b"].Entity("cycles",{},{processStrategy:t=>Object(n["a"])({_type:"cycle"},t)}),u=a("c1df"),p=a.n(u),m=new i["b"].Entity("competitions",{competitionSetting:c,cycle:d},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"competition"},t),{},{provisionTime:p()(t.provisionTime),startedTime:p()(t.startedTime),preStartedTime:t.preStartedTime?p()(t.preStartedTime):null,transferDeadline:t.transferDeadline?p()(t.transferDeadline):null})}),f=new i["b"].Entity("prices",{},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"price"},t),{}
1,{endedTime:p()(t.endedTime)})}),h=new i["b"].Entity("classifications",{competition:m,classificationSetting:r,classificationPrices:[f],classificationPlayerCount:l},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"classification"},t),{},{startTime:t.startTime?p()(t.startTime):null})}),b=new i["b"].Entity("operators",{},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"operator"},t),{},{addedTime:t.addedTime?p()(t.addedTime):""})}),_=new i["b"].Entity("devices",{operator:b},{processStrategy:t=>Object(n["a"])({_type:"device"},t)}),v=new i["b"].Entity("gates",{device:_},{processStrategy:t=>Object(n["a"])({_type:"gate"},t)}),g=new i["b"].Entity("checkpoints",{classification:h,gates:[v]},{processStrategy:t=>Object(n["a"])({_type:"checkpoint"},t)}),y=new i["b"].Entity("competitionsPrices",{},{idAttribute:"competition",processStrategy:t=>Object(n["a"])({_type:"competitionPrice"},t)}),C=new i["b"].Entity("familyAssociations",{},{processStrategy:t=>Object(n["a"])({_type:"familyAssociation"},t)}),w=new i["b"].Entity("gpxFiles",{},{idAttribute:"classification",processStrategy:t=>Object(n["a"])({_type:"gpxFile"},t)}),k=new i["b"].Entity("layouts",{},{idAttribute:t=>t.competition?t.competition:t.id,processStrategy:t=>Object(n["a"])({_type:"layout"},t)}),x=new i["b"].Entity("limits",{},{idAttribute:t=>t.competition?t.competition:t.classification,processStrategy:t=>Object(n["a"])({_type:"limits"},t)}),O=new i["b"].Entity("locations",{},{processStrategy:t=>Object(n["a"])({_type:"location"},t)}),A=new i["b"].Entity("measures",{gate:v},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"measure"},t),{},{deviceTime:p()(t.deviceTime)})}),S=new i["b"].Entity("organizers",{operator:b},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"organizer"},t),{},{addedTime:t.addedTime?p()(t.addedTime):""})}),z=new i["b"].Entity("users",{},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"user"},t),{},{birthTime:t.birthTime?p()(t.birthTime):null})}),j=new i["b"].Entity("players",{classification:h,user:z,parent:z},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"player"},t),{},{time:t.time?p.a.utc(10*t.time,"x"):null,birthTime:t.birthTime?p()(t.birthTime):null})}),I=new i["b"].Entity("panelPlayers",{classification:h,user:z,parent:z},{processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"panelPlayer"},t),{},{time:t.time?p.a.utc(10*t.time,"x"):null,birthTime:t.birthTime?p()(t.birthTime):null})}),P=new i["b"].Entity("results",{checkpoint:g,measure:A,player:j},{idAttribute:t=>`${t.checkpoint}_${t.measure}_${t.player}`,processStrategy:t=>Object(n["a"])({_type:"result"},t)}),E=new i["b"].Entity("trackpoints",{classifications:[h],location:O},{processStrategy:t=>Object(n["a"])({_type:"trackpoint"},t)}),T=new i["b"].Entity("competitionsCurrency",{},{idAttribute:"competition",processStrategy:t=>Object(n["a"])({_type:"competitionCurrency"},t)}),N=new i["b"].Entity("competitionPlayerCounts",{},{idAttribute:"competition",processStrategy:t=>Object(n["a"])(Object(n["a"])({_type:"competitionPlayerCount"},t),{},{playersCount:Number.parseInt(t.playersCount,10),playersPayCount:Number.parseInt(t.playersPayCount,10)})}),R=new i["b"].Entity("paymentCounts",{},{idAttribute:"competition",processStrategy:t=>Object(n["a"])({_type:"paymentCount"},t)}),L=new i["b"].Entity("categoryCounts",{},{idAttribute:"category",processStrategy:t=>Object(n["a"])({_type:"categoryCount"},t)});e["a"]={age:s,category:o,checkpoint:g,classification:h,classificationSetting:r,classificationPlayerCount:l,competition:m,competitionPrice:y,competitionSetting:c,cycle:d,device:_,familyAssociation:C,gate:v,gpxFile:w,layout:k,limit:x,location:O,measure:A,operator:b,organizer:S,player:j,panelPlayer:I,price:f,result:P,trackpoint:E,user:z,competitionCurrency:T,competitionPlayerCount:N,paymentCount:R,categoryCount:L}},"481c":function(t,e,a){"use strict";a("3e62")},"482c":function(t,e,a){},4830:function(t,e,a){"use strict";a("d4cc")},4972:function(t,e,a){var n=a("24fb"),i=a("1de5"),s=a("4403"),o=a("a573"),r=a("ab5b"),l=a("7498"),c=a("d452"),d=a("f83b"),u=a("fe28"),p=a("a6a5"),m=a("db5c"),f=a("c1cb"),h=a("eb2b"),b=a("a7d6"),_=a("51ff"),v=a("56b5"),g=a("294c"),y=a("63e9"),C=a("0255"),w=a("6f73"),k=a("198a"),x=a("900c"),O=a("141b"),A=a("a245"),S=a("9ddc"),z=a("bfcf"),j=a("7f17"),I=a("75dc"),P=a("d5c2"),E=a("449d"),T=a("3e7f"),N=a("ec77"),R=a("7af7"),L=a("fea7"),M=a("21c6"),D=a("dcfb"),$=a("5f45"),U=a("c127"),B=a("3873"),F=a("39f2");e=n(!1);var q=i(s),H=i(o),G=i(r),W=i(l),V=i(c),K=i(d),Z=i(u),Y=i(p),Q=i(m),X=i(f),J=i(h),tt=i(b),et=i(_),at=i(v),nt=i(g),it=i(y),st=i(C),ot=i(w),rt=i(k),lt=i(x),ct=i(O),dt=i(A),ut=i(S),pt=i(z),mt=i(j),ft=i(I),ht=i(P),bt=i(E),_t=i(T),vt=i(N),gt=i(R),yt=i(L),Ct=i(M),wt=i(D),kt=i($),xt=i(U),Ot=i(B),At=i(F);e.push([t.i,"input {\n    outline: none;\n}\n.container {\n    padding: 0 15px;\n    max-width: 1170px;\n    margin: 0 auto;\n}\n\n.container-fluid {\n    width: 100%;\n    padding-left: 15px;\n    padding-right: 15px;\n    margin: 0 auto;\n}\n\n.loading-text {\n    height: 16px;\n    background-color: var(--color-pale-grey);\n    border-radius: 8px;\n}\n\n.logods {\n    display: block;\n    width: 95px;\n    height: 48px;\n    background-image: url("+q+");\n    background-repeat: no-repeat;\n    background-size: contain;\n    background-position: center center;\n    font-size: 11px;\n    text-indent: -999px;\n    overflow: hidden;\n}\n\n.network-info {\n    background-color: var(--color-red-orange);\n    padding: 8px;\n    color: var(--color-white);\n    position: fixed;\n    top: 0;\n    z-index: 150;\n    width: 100%;\n}\n\n.network-info--sticky {\n    position: -webkit-sticky;\n    position: sticky;\n    width: unset;\n}\n\n.pointer {\n    cursor: pointer;\n}\n\n.f16 {\n    font-size: 16px;\n}\n\n.info-box--grey {\n    border-radius: 4px;\n    background-color: var(--color-pale-grey);\n}\n\n/* font-size */\n\n.f10 {\n    font-size: 10px;\n}\n\n.f12 {\n    font-size: 12px;\n}\n\n.f18 {\n    font-size: 18px;\n}\n\n.f30 {\n    font-size: 30px;\n}\n\n.f36 {\n    font-size: 36px;\n}\n\n/* display */\n\n.d-none {\n    display: none;\n}\n\n.d-block {\n    display: block;\n}\n\n.d-lg {\n    display: none;\n}\n\n.d-flex {\n    display: flex;\n}\n\n.d-inline {\n    display: inline;\n}\n\n.d-inline-block {\n    display: inline-block;\n}\n\n/* background */\n\n.bg--gray {\n    border-radius: 4px;\n    background-color: rgba(84, 110, 122, 0.1);\n}\n\n.bg--white {\n    border-radius: 4px;\n    background-color: var(--color-white) !important;\n}\n\n.bg--green {\n    border-radius: 4px;\n    background-color: rgba(184, 233, 134, 0.4);\n}\n\n/* height & width */\n\n.w100 {\n    width: 100%;\n}\n\n.h100 {\n    height: 100%;\n}\n\n.h100i {\n    height: 100%!important;\n}\n\n.w95 {\n    width: 95%;\n}\n\n.w30 {\n    width: 30%\n}\n\n.min-w11 {\n    min-width: 11px;\n}\n\n.min-h64 {\n    min-height: 64px;\n}\n\n/* competition header  */\n\n.minisite-header {\n    color: white;\n    padding: 16px 0;\n}\n\n.minisite-header__back-button {\n    border-radius: 4px;\n    margin-top: 16px;\n    white-space: nowrap;\n    background-color: white;\n    border-radius: 4px;\n}\n\n/* align & justify */\n\n.align-items-center {\n    display: flex;
1\n    align-items: center;\n}\n\n.align-items-baseline {\n    display: flex;\n    align-items: baseline;\n}\n\n.align-items-end {\n    display: flex;\n    align-items: flex-end\n}\n\n.justify-content-center {\n    display: flex;\n    justify-content: center;\n}\n\n.justify-content-space-between {\n    display: flex;\n    justify-content: space-between;\n}\n\n.justify-content-end {\n    display: flex;\n    justify-content: flex-end;\n}\n\n.justify-content-start {\n    display: flex;\n    justify-content: flex-start;\n}\n\n.align-right {\n    text-align: right;\n}\n\n.align-center {\n    text-align: center;\n}\n\n/* Loading. */\n\n.load-animation {\n    right: 10px;\n    position: relative;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.load-animation div {\n    position: absolute;\n    width: 6px;\n    height: 6px;\n    border-radius: 50%;\n    background: #fff;\n    animation-timing-function: cubic-bezier(0, 1, 1, 0);\n}\n\n.load-animation--dark div {\n    background: black;\n}\n\n.load-animation--grey div {\n    background: var(--color-greyish-brown);\n}\n\n.load-animation div:nth-child(1) {\n    left: 3px;\n    animation: load-animation1 0.6s infinite;\n}\n\n.load-animation div:nth-child(2) {\n    left: 3px;\n    animation: load-animation2 0.6s infinite;\n}\n\n.load-animation div:nth-child(3) {\n    left: 13px;\n    animation: load-animation2 0.6s infinite;\n}\n\n.load-animation div:nth-child(4) {\n    left: 23px;\n    animation: load-animation3 0.6s infinite;\n}\n\n@keyframes load-animation1 {\n    0% {\n        transform: scale(0);\n    }\n    100% {\n        transform: scale(1);\n    }\n}\n\n@keyframes load-animation3 {\n    0% {\n        transform: scale(1);\n    }\n    100% {\n        transform: scale(0);\n    }\n}\n\n@keyframes load-animation2 {\n    0% {\n        transform: translate(0, 0);\n    }\n    100% {\n        transform: translate(10px, 0);\n    }\n}\n\n/* others */\n\n.sport-image--1 {\n    background-image: url("+H+");\n}\n\n.sport-image--2 {\n    background-image: url("+G+");\n}\n\n.sport-image--6 {\n    background-image: url("+W+");\n}\n\n.sport-image--11 {\n    background-image: url("+V+");\n}\n\n.sport-image--16 {\n    background-image: url("+K+");\n}\n\n.sport-image--21 {\n    background-image: url("+Z+");\n}\n\n.sport-image--26 {\n    background-image: url("+Y+");\n}\n\n.sport-image--29 {\n    background-image: url("+Q+");\n}\n\n.sport-image--31 {\n    background-image: url("+X+");\n}\n\n.sport-image--36 {\n    background-image: url("+J+");\n}\n\n.sport-image--39 {\n    background-image: url("+tt+");\n}\n\n.sport-image--41 {\n    background-image: url("+et+");\n}\n\n.sport-image--46 {\n    background-image: url("+at+");\n}\n\n.sport-image--51 {\n    background-image: url("+nt+");\n}\n\n.sport-image--60 {\n    background-image: url("+it+");\n}\n\n.sport-image--77 {\n    background-image: url("+st+");\n}\n\n.sport-image--89 {\n    background-image: url("+ot+");\n}\n\n.sport-image--91 {\n    background-image: url("+rt+");\n}\n\n.sport-image--99 {\n    background-image: url("+lt+");\n}\n\n@media(min-width: 768px) {\n    .sport-image--1 {\n        background-image: url("+ct+");\n    }\n    .sport-image--6 {\n        background-image: url("+dt+");\n    }\n    .sport-image--11 {\n        background-image: url("+ut+");\n    }\n    .sport-image--16 {\n        background-image: url("+pt+");\n    }\n    .sport-image--21 {\n        background-image: url("+mt+");\n    }\n    .sport-image--26 {\n        background-image: url("+ft+");\n    }\n    .sport-image--29 {\n        background-image: url("+ht+");\n    }\n    .sport-image--31 {\n        background-image: url("+bt+");\n    }\n    .sport-image--36 {\n        background-image: url("+_t+");\n    }\n    .sport-image--39 {\n        background-image: url("+vt+");\n    }\n    .sport-image--41 {\n        background-image: url("+gt+");\n    }\n    .sport-image--46 {\n        background-image: url("+yt+");\n    }\n    .sport-image--51 {\n        background-image: url("+Ct+");\n    }\n    .sport-image--60 {\n        background-image: url("+wt+");\n    }\n    .sport-image--77 {\n        background-image: url("+kt+");\n    }    \n    .sport-image--89 {\n        background-image: url("+xt+");\n    }\n    .sport-image--91 {\n        background-image: url("+Ot+");\n    }\n    .sport-image--99 {\n        background-image: url("+At+");\n    }\n}\n\n.text-upper {\n    text-transform: uppercase;\n}\n\n.flex-column {\n    flex-direction: column;\n}
1\n\n.a-middle {\n    margin: auto 0;\n}\n\n.c-positive {\n    color: var(--color-dark-pastel-green);\n}\n\n.c-negative {\n    color: var(--color-pinky-red);\n}\n\n.c-orange {\n    color: var(--color-red-orange);\n}\n\n.l-tall {\n    line-height: 1.71;\n}\n\n.l-short {\n    line-height: 1;\n}\n\n.disabled {\n    opacity: 0.5;\n}\n\n.border--dark {\n    border-radius: 4px;\n    border: solid 1px #e0e0e0;\n}\n\n.progress-bar {\n    margin: 0;\n    padding: 0;\n    height: 4px;\n    list-style: none;\n    display: flex;\n}\n\n.progress-bar__stage {\n    width: 100%;\n    border: 2px solid var(--color-pale-grey);\n}\n\n.progress-bar__stage:first-child {\n    border-top-left-radius: 2px;\n    border-bottom-left-radius: 2px;\n}\n\n.progress-bar__stage:last-child {\n    border-top-right-radius: 2px;\n    border-bottom-right-radius: 2px;\n}\n\n.progress-bar__stage--done {\n    border-color: var(--color-dark-pastel-green);\n}\n\n.position-relative {\n    position: relative;\n}\n.position-absolute {\n    position: absolute;\n}\n\n.position-fixed {\n    position: fixed;\n}\n\n.nowrap {\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n}\n\n.flex-nowrap {\n    flex-wrap: nowrap!important;\n}\n\n.promote__box {\n    position: relative;\n    padding-right: 0;\n    border-style: solid;\n    border-width: 4px;\n    -o-border-image: linear-gradient(to bottom, var(--color-red-orange), var(--color-pinky-red));\n       border-image: linear-gradient(to bottom, var(--color-red-orange), var(--color-pinky-red));\n    border-image-slice: 100%;\n    border-image-slice: 0;\n    background-image: linear-gradient(to bottom, var(--color-white), var(--color-white)), linear-gradient(to bottom, var(--color-red-orange), var(--color-pinky-red));\n    background-origin: border-box;\n    background-clip: content-box, border-box;\n    border-radius: 4px;\n}\n\n.dark-bg {\n    background-color: rgba(55, 71, 79, 0.9);\n    position: absolute;\n    z-index: 9998;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n}\n.dark-bg--fixed {\n    position: fixed;\n}\n.overflow-hidden {\n    overflow: hidden;\n}\n\n.overflow-auto {\n    overflow: auto;\n}\n\n.overflow-visible {\n    overflow: visible!important;\n}\n\n.max-w100i {\n    max-width: 100%!important;\n}\n\n.radius0 {\n    border-radius: 0!important;\n}\n\n.text-center {\n    text-align: center;\n}\n\n@media(max-width: 991px) {\n    .none-mobile {\n        display: none!important\n    }\n}\n\n@media(min-width: 992px) {\n    .none-desktop {\n        display: none!important;\n    }\n}\n\n@media(min-width: 768px) {\n    .minisite-header__back-button {\n        margin: auto 0\n    }\n}\n\n/* Loading */\n\n.lds-ellipsis {\n    display: inline-block;\n    position: relative;\n    width: 40px;\n    height: 24px;\n}\n\n.lds-ellipsis div {\n    position: absolute;\n    top: 10px;\n    width: 8px;\n    height: 8px;\n    border-radius: 50%;\n    background: #d8d8d8;\n    animation-timing-function: cubic-bezier(0, 1, 1, 0);\n}\n\n.lds-ellipsis div:nth-child(1) {\n    left: 0px;\n    animation: lds-ellipsis1 1s infinite;\n}\n\n.lds-ellipsis div:nth-child(2) {\n    left: 15px;\n    animation: lds-ellipsis1 1s infinite;\n    animation-delay: 0.33s!important;\n}\n\n.lds-ellipsis div:nth-child(3) {\n    left: 30px;\n    animation: lds-ellipsis1 1s infinite;\n    animation-delay: 0.66s!important;\n}\n\n@keyframes lds-ellipsis1 {\n    0% {\n        transform: scale(1);\n    }\n    34% {\n        transform: scale(1.5);\n    }\n    100% {\n        transform: scale(1);\n    }\n}\n\n.lds-ellipsis--bottom-left {\n    margin: auto auto 16px 16px\n}\n\n.lds-ellipsis--center {\n    margin: auto;\n}\n\n@media (min-width: 992px) {\n    .d-lg {\n        display: block;\n    }\n    .d-sm {\n        display: none;\n    }\n}\n\n@media(max-width: 768px) {\n    .bg--gray {\n        margin-left: -15px;\n        margin-right: -15px;\n    }\n}\n\n.fa-facebook-square::before {\n    font-style: normal;\n}\n\n.border-none {\n    border: none;\n}\n\n.hover-dark:hover {\n    background-color: var(--color-gray-hover-dark);\n}\n\n.vs__dropdown-toggle {\n    width: 100%;\n    border: none;\n}\n\n.vs__dropdown-option:hover {\n    background-color: var(--color-cool-grey);\n}\n\n.vs__selected {\n    white-space: nowrap;\n}",""]),t.exports=e},"4a85":function(t,e,a){},"4b89":function(t,e,a){},"4c7f":function(t,e,a){},"4d10":function(t,e,a){t.exports=a.p+"img/close.f992c008.svg"},"4d57":function(t,e,a){"use strict";a("ced5")},"4da6":function(t,e,a){"use strict";a("5789")},"4db4":function(t,e,a){"use strict";a("a0a1")},"4dc1":function(t,e,a){"use strict";a("65ed")},"4dee":function(t,e,a){"use strict";a("d467")},"4ee6":function(t,e,a){},"4ef3":function(t,e,a){"use strict";a("cc79")},5:function(t,e){},5046:function(t,e,a){t.exports=a.p+"img/chevron-right.64daedbc.svg"},5134:function(t,e,a){"use strict";a.r(e);a("14d9");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"promote__box promote-box--competition mat16 pointer"},[e("div",{staticClass:"promote-competition",on:{click:function(e){return t.$router.push({name:"minisite-landing",params:t.competition,alias:!0})}}},[e("div",{staticClass:"promote-competition__poster-box"},[e("img",{staticClass:"promote-competition__poster",attrs:{src:t.layout.posterLink}})]),e("div",{staticClass:"promote-competition__info row mat24"},[e("div",{staticClass:"col-12 position-relative"},[e("p",{staticClass:"promote-competition__category"},[t._v(" "+t._s(t._f("asType")(t.competition.type))+" ")]),e("h3",{staticClass:"promote-competition__title"},[t._v(" "+t._s(t.competition.name)+" ")]),e("p",{staticClass:"promote-competition__place"},[t._v(" "+t._s(t.competition.location)+" ")]),e("p",{staticClass:"promote-competition__date"},[t._v(" "+t._s(t._f("asTime")(t.competition.startedTime))+" ")]),e("div",{staticClass:"promote-competition__hint"},[e("i",{staticClass:"fas fa-info-circle f16"}),e("p",{staticClass:"d-inline mal8"},[t._v(" "+t._s(t.say.promoted_competition)+" ")])])])])])])},i=[],s=a("5530"),o=a("2f62"),r={props:{id:{type:Number,required:!0}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say","competitions","layoutsBy"])),{},{competition(){return this.competitions[this.id]},layout(){return this.layoutsBy(this.competition)[0]}})},l=r,c=a("2877"),d=Object(c["a"])(l,n,i,!1,null,null,null);e["default"]=d.exports},5199:function(t,e,a){},"51f2":function(t,e,a){},"51ff":function(t,e,a){t.exports=a.p+"img/[email protected]"},5210:function(t,e,a){"use strict";a("af5e")},5239:function(t,e,a){"use strict";a("a8f7")},"52f0":function(t,e,a){"use strict";a("b478")},"53ad":function(t,e,a){"use strict";a("dcab")},"53d0":function(t,e,a){"use strict";a("0a64")},"53ea":function(t,e,a){t.exports=a.p+"img/success.fb22b171.svg"},"545e":function(t,e,a){},"54c3":function(t,e,a){},5534:function(t,e,a){},"557c":function(t,e,a){},5616:function(t,e,a){"use strict";a("e609")},"56b5":function(t,e,a){t.exports=a.p+"img/[email protected]"},"56d3":function(t,e,a){"use strict";a("c876")},"56d7":function(t,e,a){"use strict";a.r(e);a("a79d"),a("ddb0"),a("ac1f"),a("5319");var n=a("2b0e");const i=a("1b67");for(const Bx of i.keys()){const t=i(Bx),e=Bx.replace(/^\.\//,"").replace(/\.\w+$/,"");n["default"].component(e,t.default||t)}var s=a("f121");a("4d63"),a("c607");function o(t,e,a,n){document.cookie=`${t}=${e};domain=${a};expires=${n};path=/`}function r(t,e){document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=${e};path=/`}s["n"]?r("XDEBUG_SESSION",".dostartu.pl"):o("XDEBUG_SESSION","xdostartu",".dostartu.pl"),n["default"].config.productionTip=!1;var l=a("4360"),c=a("25b6"),d=a("8c6f");n["default"].filter("asCounter",t=>{const e=Object(c["a"])({start:new Date(l["a"].getters.time),end:new Date(t)}),a=Object(d["a"])(new Date(t),new Date(l["a"].getters.time));return a<=0?l["a"].getters.say.time_is_up:`${e.years>0?`${e.years}${l["a"].getters.say.years_y}`:""} ${e.months>0?`${e.months}${l["a"].getters.say.months_m}`:""} ${e.days}${l["a"].getters.say.days_d} ${e.hours}${l["a"].getters.say.hours_h}  ${e.minutes}${l["a"].getters.say.minutes_m}`}),n["default"].filter("asDate",t=>t?t.format("DD.MM.YYYY"):null);var u=a("2db4");n["default"].filter("asLang",(t,e,a)=>{const n=e+Object(u["d"])(a),i=e+"Pl";return t[n]||t[i]}),n["default"].filter("asLink",t=>Object(u["b"])(t)),n["default"].filter("asLowerCase",t=>String(t).toLowerCase());var p=a("85fc");n["default"].filter("asNationality",t=>{for(const e of p)if(e.id===t)return e.text;return""}),n["default"].filter("asPrice",t=>String(t).replace(".",",")+" zł"),n["default"].filter("asStatus",t=>l["a"].getters.say["statuses_"+t]);var m=a("c1df"),f=a.n(m),h=a("4623"),b=a.n(h);b()(f.a),n["default"].filter("asStoper",t=>t?t.valueOf()===s["h"]?"DNS":t.valueOf()===s["g"]?"DNF":t.valueOf()===s["i"]?"DSQ":f.a.isDuration(t)?t.as("ms")?t.format("HH:mm:ss.SS",{trim:!1}):"":f.a.duration(t).format("HH:mm:ss.SS",{trim:!1}):""),n["default"].filter("asTime",t=>t.format("DD.MM.YYYY HH:mm")),n["default"].filter("asTimer",t=>Object(m["utc"])(t.as("ms")).format("HH:mm:ss")),n["default"].filter("asType",t=>l["a"].getters.say["types_"+t]),n["default"].filter("asUpperCase",t=>String(t).toUpperCase()),n["default"].filter("asHour",t=>t.format("HH:mm")),n["default"].filter("asNumberFormat",t=>new Intl.NumberFormat("pl-PL").format(t)+" zł"),n["default"].filter("asReplaceShortcode",(function(t,e,a){if(!t||!e||!a)return t;const n=new RegExp(`\\[${e}\\]`,"g");return t.replace(n,a)}));a("deec"),a("14d9");var _=a("f8dc"),v=a("5530"),g=a("6c33"),y=async(t,e,a)=>{const{token:n}=t.query,{user:i}=l["a"].getters;n&&!i&&await l["a"].dispatch(g["sb"],{token:n}),n?a({query:Object(v["a"])(Object(v["a"])({},t.query),{},{token:void 0}),replace:!0}):a()},C=a("ade3"),w=(a("d9e2"),a("498a"),a("2f7e")),k=a("84d6"),x=a("8c4f");class O extends x["a"]{resolve(t,e,a){return super.resolve(this.parse(t),e,a)}back(){const t=window.history.length>this.initialHistoryLength;t?super.back():this.push({name:"main-landing",alias:!0})}push(t,e,a){t.tab?window.open(t.path,"_blank").focus():super.push(this.parse(t),e,a)}replace(t,e,a){super.replace(this.parse(t),e,a)}matched(t,{matched:e}){const a=Object(w["c"])(t),n=e.map(t=>t.name);return Object(w["a"])(a,n)}parse(t){return O.getParsed(t,this.options.routes)}static getParsed(t,e){if(t.alias){var a,n,i;const s=O.getAlias(t,e);if(!s)throw new Error("Router: Missing alias for location: "+t.name);const o=Object(v["a"])(Object(v["a"])({},null!==(a=null===t||void 0===t?void 0:t.params)&&void 0!==a?a:{}),{},{name:null!==(n=t.params)&&void 0!==n&&n.name?String(null===(i=t.params)||void 0===i?void 0:i.name).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\W+/g," ").trim().replace(/ /g,"-").toLocaleLowerCase():void 0});return Object(v["a"])(Object(v["a"])({},t),{},{name:void 0,path:Object(k["a"])(s)(o)})}return t}static getAlias(t,e){for(const a of e){if(a.name===t.name)return a.alias;const e=O.getAlias(t,a.children||[]);if(e)return e}return null}}Object(C["a"])(O,"initialHistoryLength",window.history.length);var A=O,S=function(){var t=this,e=t._self._c;return e("div",{staticClass:"h100"},[e("pwa-notification"),e("layout-"+t.layout,{tag:"component"})],1)},z=[],j=a("116a"),I=a.n(j),P=function(){var t=this,e=t._self._c;return e("div",{style:t.isMobile?"padding-bottom: 48px;":null},[t.isOnline?t._e():e("div",{staticClass:"network-info network-info--sticky"},[t._m(0)]),e("base-notification-global"),"stoper-demo"!==t.$route.name?e("layout-front-header"):t._e(),e("router-view"),e("layout-front-footer")],1)},E=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"align-center"},[t._v(" Jesteś w trybie offline. ")])])])}],T=function(){var t=this,e=t._self._c;return e("header",{staticClass:"user-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row user-header__row"},[e("div",[e("h1",[t.isMobile&&!t.isGoBackButton?e("div",{staticClass:"mobileGoBack",on:{click:t.goBack}
1},[e("img",{attrs:{src:a("ecd8")}})]):t._e(),e("router-link",{staticClass:"logods",attrs:{to:{name:"main-landing",alias:!0}}},[t._v(" DO:ST:AR:TU ")])],1)]),t.bootstraped?e("div",{staticClass:"account-nav"},[t.user?[e("base-button",{attrs:{btn12:""},on:{click:function(e){t.showUserButtons=!t.showUserButtons}}},[e("span",{staticClass:"account-nav__btn-name"},[t._v(" "+t._s(t.say.account)+" ")]),e("img",{staticClass:"account-nav__btn-img",attrs:{src:a("7b6d"),alt:""}}),t.showUserButtons?e("div",{staticClass:"account-nav__user-buttons"},[e("user-dropdown-buttons",{attrs:{"without-hints":t.$router.matched("authentication-choose-profile",t.$route)}})],1):t._e()])]:[e("base-button",{staticClass:"account-nav__btn--register",attrs:{btn12:""},on:{click:function(e){return t.handleRegister()}}},[e("span",{staticClass:"account-nav__btn-name"},[t._v(" "+t._s(t.say.create_account)+" ")]),e("img",{staticClass:"account-nav__btn-img",attrs:{src:a("1138"),alt:"create account image"}})]),e("base-button",{attrs:{btn12:""},on:{click:function(e){return t.handleLogin()}}},[e("span",{staticClass:"account-nav__btn-name"},[t._v(" "+t._s(t.say.login)+" ")]),e("img",{staticClass:"account-nav__btn-img",attrs:{src:a("0622"),alt:"sign in image"}})])],e("base-button",{staticClass:"account-nav__btn--lang",attrs:{btn12:""},on:{mouseover:function(e){t.showOtherLang=!0},mouseleave:function(e){t.showOtherLang=!1}}},[t._v(" "+t._s(t._f("asUpperCase")(t.lang))+" "),e("img",{staticClass:"account-nav__btn-icon",class:{"account-nav__btn-icon--active":t.showOtherLang},attrs:{src:a("76bd"),alt:""}}),t.showOtherLang?e("div",{staticClass:"langmnu"},[e("ul",{staticClass:"langmnu__ul"},t._l(t.langs,(function(a){return e("li",{key:a,staticClass:"langmnu__li"},[e("a",{staticClass:"account-nav__btn",attrs:{href:"#"},on:{click:function(e){return t.CHANGE_LANG(a)}}},[t._v(t._s(t._f("asUpperCase")(a)))])])})),0)]):t._e()])],2):t._e()])])])},N=[],R=a("2f62"),L=function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown",class:{"dropdown--dark":t.isPanel}},[e("div",{staticClass:"dropdown__button",class:{"dropdown__button--center dropdown__button--pointer":t.isExistUserRole,"dropdown__button--border-dark":t.isPanel},on:{click:function(e){return t.navigateToUserProfile()}}},[e("div",[e("img",{staticClass:"dropdown__button-img mat7",attrs:{src:t.isPanel?a("88af"):a("9f54")}})]),e("div",{staticClass:"dropdown__button-box"},[t.isExistUserRole?[e("input",{staticClass:"d-none",attrs:{id:"participant",type:"radio",name:"participant"},domProps:{checked:!t.isPanel}}),e("div",{staticClass:"dropdown__button-radio"},[t._v(" "+t._s(t.say.participant_profile)+" ")])]:e("base-button",{staticClass:"dropdown__button-create",class:{"dropdown__button-create--white":t.isPanel},attrs:{btn4:""},on:{click:function(e){return t.createUserRole()}}},[t._v(" "+t._s(t.say.create_participant_profile)+" ")]),t.withoutHints||t.isExistUserRole?t._e():e("div",{staticClass:"dropdown__button-description"},[e("p",[t._v("• "+t._s(t.say.collect_results))]),e("p",[t._v("• "+t._s(t.say.save_more_efficiently))])])],2)]),e("div",{staticClass:"dropdown__button",class:{"dropdown__button--center dropdown__button--pointer":t.isExistPanelRole,"dropdown__button--border-dark":t.isPanel},on:{click:function(e){return t.navigateToPanel()}}},[e("img",{staticClass:"dropdown__button-img mat7",attrs:{src:t.isPanel?a("1d2d"):a("1fca")}}),e("div",{staticClass:"dropdown__button-box"},[t.isExistPanelRole?[e("input",{staticClass:"d-none",attrs:{id:"participant",type:"radio",name:"participant"},domProps:{checked:t.isPanel}}),e("div",{staticClass:"dropdown__button-radio"},[t._v(" "+t._s(t.profileType)+" ")])]:e("base-button",{staticClass:"dropdown__button-create",class:{"dropdown__button-create--white":t.isPanel},attrs:{btn4:""},on:{click:t.createOrganizerRole}},[t._v(" "+t._s(t.say.create_organizer_profile)+" ")]),t.withoutHints||t.isExistPanelRole?t._e():e("div",{staticClass:"dropdown__button-description"},[e("p",[t._v("• "+t._s(t.say.create_competition_site))]),e("p",[t._v("• "+t._s(t.say.run_registration_form))]),e("p",[t._v("• "+t._s(t.say.measure_results))])])],2)]),t.isExistUserRole||t.isExistPanelRole?e("div",{staticClass:"dropdown__button dropdown__button--center dropdown__button--pointer",class:{"dropdown__button--border-dark":t.isPanel},on:{click:function(e){return t.$router.push({name:"edit-credentials"})}}},[e("img",{staticClass:"dropdown__button-img",attrs:{src:t.isPanel?a("5a59"):a("ec8c")}}),t._v(" "+t._s(t.say.change_password)+" ")]):t._e(),e("div",{staticClass:"dropdown__button dropdown__button--center dropdown__button--pointer",class:{"dropdown__button--border-dark":t.isPanel},on:{click:function(e){return t.logoutUser()}}},[e("img",{staticClass:"dropdown__button-img",attrs:{src:t.isPanel?a("05fe"):a("6a02")}}),t._v(" "+t._s(t.say.logout)+" ")])])},M=[],D={props:{isPanel:{type:Boolean,default:!1},withoutHints:{type:Boolean,default:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","organizers","say"])),{},{isExistUserRole(){return this.user.roles.includes("ROLE_USER")},isExistPanelRole(){return this.user.roles.some(t=>"ROLE_ORGANIZER"===t||"ROLE_OPERATOR"===t||"ROLE_ADMIN"===t)},isAdmin(){return this.user.roles.includes("ROLE_ADMIN")},isOperator(){return this.user.roles.includes("ROLE_OPERATOR")},profileType(){return this.isAdmin?"Panel admina":this.isOperator?"Panel operatora":"Panel organizatora"}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["tb"],g["e"],g["h"],g["vd"]])),{},{async logoutUser(){await this.LOGOUT_USER(),this.$router.replace({name:"authentication-login",alias:!0})},async createUserRole(){await this.ADD_USER_ROLE(),this.navigateToUserProfile()},async createOrganizerRole(){await this.ADD_ORGANIZER_ROLE(),this.navigateToPanel()},navigateToUserProfile(){this.UPDATE_USER({id:this.user.id,loginTo:null}
1),this.$router.push({name:"user-competitions-future",alias:!0})},navigateToPanel(){this.UPDATE_USER({id:this.user.id,loginTo:"panel"}),this.isAdmin?this.$router.push({name:"panel-admin",alias:!0}):this.isOperator?this.$router.push({name:"panel-operator",alias:!0}):this.$router.push({name:"panel-organizer",alias:!0})}})},$=D,U=(a("afa3"),a("2877")),B=Object(U["a"])($,L,M,!1,null,"0d94365c",null),F=B.exports,q={components:{UserDropdownButtons:F},data(){return{showUserButtons:!1,showOtherLang:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","lang","langs","bootstraped","user"])),{},{isGoBackButton(){return["main-landing","user-competitions-future","user-competitions-past","user-competitions-proposed","user-insurance-policies","user-family-parents","user-family-children","user-more"].includes(this.$route.name)},isMobile(){return["sm","md"].includes(this.$mq)}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["s"]])),{},{handleLogin(){const t={event:"logowanie",event_category:"zalogowany"};this.$gtm.push(t),this.$router.push({name:"authentication-login",alias:!0})},handleRegister(){const t={event:"zalozenie",event_category:"zalozkonto"};this.$gtm.push(t),this.$router.push({name:"authentication-register",alias:!0})},goBack(){this.$router.go(-1)}})},H=q,G=(a("330e"),Object(U["a"])(H,T,N,!1,null,"51ade35a",null)),W=G.exports,V=function(){var t=this,e=t._self._c;return e("footer",[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4 col-lg-3 d-flex justify-content-space-between"},[e("div",[e("router-link",{staticClass:"logods",attrs:{to:{name:"main-landing",alias:!0}}},[t._v(" DO:ST:AR:TU ")])],1),e("div",{staticClass:"justify-content-space-between footer__icon-fb--mobile"},[e("p",[e("a",{attrs:{href:t.FACEBOOK_PAGE}},[e("i",{staticClass:"fab fa-2x fa-facebook-square",attrs:{"aria-hidden":"true"}})])])])]),e("div",{staticClass:"col-12 col-md-8 col-lg-9 d-flex justify-content-space-between"},[e("div",{staticClass:"footer--links"},[e("div",{staticClass:"row out-gutter"},[e("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[e("h5",[t._v(t._s(t.say.organization))]),e("p",[e("a",{attrs:{href:t.organizerUrl+"?section=rules"}},[t._v(" "+t._s(t.say.cooperation_regulations)+" ")]),e("a",{attrs:{href:t.organizerUrl}},[t._v(" "+t._s(t.say.organizator_panel)+" ")]),e("router-link",{attrs:{to:{name:"timing-offer",alias:!0}}},[t._v(" "+t._s(t.say.find_operator)+" ")])],1)]),e("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[e("h5",[t._v(t._s(t.say.participation))]),e("p",[e("router-link",{attrs:{to:{name:"user-competitions-future",alias:!0}}},[t._v(" "+t._s(t.say.user_account)+" ")]),e("router-link",{attrs:{to:{name:"main-list",query:{status:1},alias:!0}}},[t._v(" "+t._s(t.say.competition_registration)+" ")]),e("router-link",{attrs:{to:{name:"main-list",query:{status:0},alias:!0}}},[t._v(" "+t._s(t.say.competition_results)+" ")])],1)]),e("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[e("h5",[t._v(t._s(t.say.about_dostartu))]),e("p",[e("a",{attrs:{href:t.organizerUrl}},[t._v(" "+t._s(t.say.what_is_dostartu)+" ")]),e("a",{attrs:{href:t.BASE_URL+"polityka_prywatnosci.pdf",target:"_blank"}},[t._v(t._s(t.say.privacy_policy))]),e("a",{attrs:{href:t.BASE_URL+"Regulamin serwisu.pdf",target:"_blank"}},[t._v(t._s(t.say.dostartu_regulations))])])]),e("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[e("h5",[t._v(t._s(t.say.contact))]),e("p",[e("a",{attrs:{href:"mailto:"+t.MAIL_ADDRESS}},[t._v(t._s(t.say.write_to_us))]),e("a",{attrs:{href:"mailto:"+t.MAIL_ADDRESS}},[t._v(t._s(t.MAIL_ADDRESS))])])])])]),e("div",{staticClass:"footer__icon-fb--desktop footer--social"},[e("a",{attrs:{href:t.FACEBOOK_PAGE}},[e("i",{staticClass:"fab fa-2x fa-facebook-square",attrs:{"aria-hidden":"true"}})])])])])]),["minisite-landing","minisite-contact"].includes(t.$route.name)?e("div",{staticClass:"footer-cash pat32"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-end"},[e("p",{staticClass:"transaction-dotpay"},[t._v(" "+t._s(t.say.transaction_settlement_by_dotpay)+" ")]),t._m(0)])])]):t._e()])},K=[function(){var t=this,e=t._self._c;return e("span",[e("img",{staticClass:"img-fluid mal24",attrs:{src:a("d2fc")}}),e("img",{staticClass:"img-fluid mal24",attrs:{src:a("6c5b")}}),e("img",{staticClass:"img-fluid mal24",attrs:{src:a("faf2")}})])}],Z={data(){return{organizerUrl:"https://organizator.dostartu.pl"}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{BASE_URL(){return s["d"]},MAIL_ADDRESS(){return s["o"]},FACEBOOK_PAGE(){return s["j"]}})},Y=Z,Q=(a("1d06"),Object(U["a"])(Y,V,K,!1,null,"4a958c60",null)),X=Q.exports,J={components:{LayoutFrontHeader:W,LayoutFrontFooter:X},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["isOnline"])),{},{isMobile(){return["sm"].includes(this.$mq)}})},tt=J,et=Object(U["a"])(tt,P,E,!1,null,null,null),at=et.exports,nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-dark",class:{"bg-dark--darken":["panel-gate","panel-competition-stoper","panel-competition-scanner
1-qr"].includes(t.$route.name)}},[t.isOnline?t._e():e("div",{staticClass:"network-info"},[t._m(0)]),e("div",{attrs:{id:"layoutBack"}},[e("base-notification-global"),["panel-gate","panel-competition-scanner-qr"].includes(t.$route.name)?t._e():e("layout-back-header",{class:{"d-none":t.isZenMode,"none-mobile":"panel-competition-stoper"===t.$route.name||"panel-competition-scanner-qr"===t.$route.name}}),t.isMobile&&t.isStoper?e("div",{staticClass:"stoper-header"},[e("img",{staticClass:"stoper-header__logo",attrs:{src:a("b743"),alt:"Logo dostartu"}}),e("img",{directives:[{name:"show",rawName:"v-show",value:t.isStoper,expression:"isStoper"}],staticClass:"stoper-header__menu",attrs:{src:a("7936"),alt:"home logo"},on:{click:function(e){return t.TOGGLE_NAV()}}})]):t._e(),t.isNavActive?e("panel-competition-nav-mobile"):t._e(),e("router-view",{class:{relative:!t.$router.matched(["panel-competition-stoper","panel-competition-map","panel-competition-scanner-qr"],t.$route)}})],1),["panel-gate","panel-competition-scanner-qr"].includes(t.$route.name)?t._e():e("layout-back-footer",{staticClass:"panel-footer",attrs:{"has-unseen":t.hasUnseenChangelog}}),e("changelog-latest-modal",{ref:"changelogModal",attrs:{entry:t.latestChangelog}}),e("Communicator",{directives:[{name:"show",rawName:"v-show",value:t.showCommunicator,expression:"showCommunicator"}]})],1)},it=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"align-center"},[t._v(" Jesteś w trybie offline. ")])])])}],st=function(){var t=this,e=t._self._c;return e("header",[e("div",{staticClass:"header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row align-items-center flex-nowrap",staticStyle:{"min-height":"48px"}},[e("router-link",{attrs:{to:t.navigateToList}},[e("img",{staticClass:"header__logo-ds",attrs:{src:a("b743"),alt:"Logo dostartu"}})]),t.isSettingStoperFullscreen?t._e():e("div",{staticClass:"d-flex"},[t.ready?[t.isAdmin?e("base-button",{staticClass:"header__button header__button--list-users",attrs:{btn12:""},on:{click:function(e){return t.$router.push({name:"panel-users-list",alias:!0})}}},[e("span",{staticClass:"header__button-name"},[t._v(" Lista użytkowników ")]),e("img",{staticClass:"header__button-icon",attrs:{src:a("1e85")}})]):t._e(),t.isAdmin?e("base-button",{staticClass:"header__button header__button--list-provision",attrs:{btn12:""},on:{click:function(e){return t.$router.push({name:"panel-provision-admin",alias:!0})}}},[e("span",{staticClass:"header__button-name"},[t._v(" Lista płatności ")]),e("img",{staticClass:"header__button-icon",attrs:{src:a("907e")}})]):t._e(),t.isOperator||t.isOrganizer?e("base-button",{staticClass:"header__button header__button--list-provision",attrs:{btn12:""},on:{click:function(e){return t.$router.push({name:"panel-provision",alias:!0})}}},[e("span",{staticClass:"header__button-name"},[t._v(" Moje opłaty ")]),e("img",{staticClass:"header__button-icon",attrs:{src:a("34d2")}})]):t._e(),e("base-button",{staticClass:"header__button header__button--list-competitions",attrs:{btn12:""},on:{click:function(e){return t.$router.push(t.navigateToList)}}},[e("span",{staticClass:"header__button-name"},[t._v(" Lista zawodów ")]),e("img",{staticClass:"header__button-icon",attrs:{src:a("294d")}})]),e("base-button",{staticClass:"header__button header__button--settings",attrs:{btn12:""},on:{click:function(e){return t.navigateToSettings()}}},[e("span",{staticClass:"header__button-name"},[t._v("Ustawienia")]),e("img",{staticClass:"header__button-icon",attrs:{src:a("59d8")}})])]:t._e(),e("base-button",{staticClass:"header__button",attrs:{btn12:""},on:{click:function(e){t.showUserButtons=!t.showUserButtons}}},[e("span",{staticClass:"header__button-name"},[t._v(" Konto ")]),e("img",{staticClass:"header__button-icon",attrs:{src:a("7a74"),alt:""}}),t.showUserButtons?e("div",{staticClass:"header__button-actions"},[e("user-dropdown-buttons",{attrs:{"is-panel":""}})],1):t._e()])],2)],1)])]),t.isModerator&&t.organizerId&&!t.isSettingStoperFullscreen?e("panel-mini-header",{attrs:{"organizer-id":t.organizerId}}):t._e(),t.operatorId?e("panel-mini-header-operator",{attrs:{"operator-id":t.operatorId}}):t._e()],1)},ot=[],rt=function(){var t=this,e=t._self._c;return t.organizer?e("div",{staticClass:"operator-header__organizer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row operator-header__organizer-box"},[e("div",{staticClass:"patb8"},[t._v(" "+t._s(t.organizer.name)+" ")]),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"operator-header__organizer-btn",class:{"operator-header__organizer-btn--active":"panel-organizer"===this.$route.name},on:{click:function(e){return t.$router.push({name:"panel-organizer",params:{organizerId:t.organizer.id},alias:!0})}}},[t._v(" Lista zawodów organizatora ")]),e("div",{staticClass:"operator-header__organizer-btn",class:{"operator-header__organizer-btn--active":this.$route.name.includes("panel-setting-")},on:{click:function(e){return t.$router.push({name:"panel-setting-ne
1w",params:{name:t.organizer.name,id:t.organizer.id},alias:!0})}}},[t._v(" Ustawienia organizatora ")])])])])]):t._e()},lt=[],ct={props:{organizerId:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["organizers"])),{},{organizer(){return this.organizers[this.organizerId]}}),async created(){await this.READ_ORGANIZER(this.organizerId)},methods:Object(v["a"])({},Object(R["b"])([g["pc"]]))},dt=ct,ut=(a("1628"),Object(U["a"])(dt,rt,lt,!1,null,null,null)),pt=ut.exports,mt=function(){var t=this,e=t._self._c;return t.operator?e("div",{staticClass:"operator-header__operator"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row operator-header__operator-box"},[e("div",{staticClass:"patb8"},[t._v(" Twoje zawody obsługuje "),e("b",[t._v(t._s(t.operator.name))]),t._v(" "),t.operator.phone?e("span",[t._v("tel. "),e("a",{attrs:{href:"tel:+48"+t.operator.phone}},[t._v(t._s(t.operator.phone))])]):t._e()])])])]):t._e()},ft=[],ht={props:{operatorId:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["operators"])),{},{operator(){return this.operators[this.operatorId]}}),async created(){await this.READ_OPERATOR(this.operatorId)},methods:Object(v["a"])({},Object(R["b"])([g["kc"]]))},bt=ht,_t=(a("09f1"),Object(U["a"])(bt,mt,ft,!1,null,"6e79869b",null)),vt=_t.exports,gt={components:{UserDropdownButtons:F,PanelMiniHeader:pt,PanelMiniHeaderOperator:vt},data(){return{showUserButtons:!1,ready:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","organizers","competitions"])),{},{isAdmin(){return this.user.roles.includes("ROLE_ADMIN")},isOperator(){return this.user.operator},isOrganizer(){return this.user.organizer},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")},organizerId(){if(this.isModerator){if(this.$route.params.organizerId)return this.$route.params.organizerId;if(this.$route.name.includes("panel-setting-new")&&this.$route.params.id)return null;var t;if(this.$route.params.id)return null===(t=this.competitions[this.$route.params.id])||void 0===t?void 0:t.organizer}return null},operatorId(){var t,e;return this.isOrganizer&&null!==(t=null===(e=this.organizers[this.isOrganizer])||void 0===e?void 0:e.operator)&&void 0!==t?t:null},navigateToList(){return this.user.roles.includes("ROLE_ADMIN")?{name:"panel-admin",alias:!0}:this.user.roles.includes("ROLE_OPERATOR")?{name:"panel-operator",alias:!0}:{name:"panel-organizer",alias:!0}},isSettingStoperFullscreen(){return["panel-competition-setting-stoper-fullscreen"].includes(this.$route.name)}}),async created(){this.isOperator&&await this.READ_OPERATOR(this.user.operator),this.isOrganizer&&await this.READ_ORGANIZER(this.user.organizer),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["kc"],g["pc"]])),{},{navigateToSettings(){this.isOperator?this.$router.push({name:"panel-setting-new",params:{name:this.operators[this.user.operator].name},alias:!0}):this.user.organizer?this.$router.push({name:"panel-setting-new",params:{name:this.organizers[this.user.organizer].name},alias:!0}):this.$router.push({name:"panel-setting",params:{name:this.user.name},alias:!0})}})},yt=gt,Ct=(a("53ad"),Object(U["a"])(yt,st,ot,!1,null,"55bd4a60",null)),wt=Ct.exports,kt=function(){var t=this,e=t._self._c;return"panel-competition-stoper"===t.$route.name||"panel-competition-map"===t.$route.name||"panel-competition-scanner-qr"===t.$route.name||t.isZenMode?t._e():e("footer",{staticClass:"footer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("p",[t._v("© DO:ST:AR:TU "+t._s(t.time.format("YYYY")))]),e("div",{staticClass:"footer-links"},[e("router-link",{staticClass:"pointer footer-links__changelog",class:{"footer-links__changelog--unseen":t.hasUnseen},attrs:{tag:"p",to:{name:"panel-changelog",alias:!0}}},[t.hasUnseen?e("span",{staticClass:"footer-links__badge",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" lista zmian (changelog) ")]),e("router-link",{staticClass:"pointer",attrs:{tag:"p",to:{name:"main-landing",alias:!0}}},[t._v(" regulamin platformy dostartu ")])],1)])])])},xt=[],Ot={props:{hasUnseen:{type:Boolean,default:!1}},computed:Object(v["a"])({},Object(R["c"])(["time","isZenMode"]))},At=Ot,St=(a("23666"),Object(U["a"])(At,kt,xt,!1,null,"b5133520",null)),zt=St.exports,jt=(a("e01a"),function(){var t=this,e=t._self._c;
1return e("div",{staticClass:"communicator-bg",class:{"is-open":t.isOpen}},[e("div",{staticClass:"communicator",class:{"is-open":t.isOpen}},[e("div",{staticClass:"communicator-header"},[e("div",{staticClass:"communicator-header-icon"},[e("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33.3574 14.6429C39.6177 16.5391 44 22.3366 44 29C44 31.5826 43.3456 34.0715 42.1193 36.2775L43.9615 42.7253C44.177 43.4796 43.4796 44.1771 42.7253 43.9615L36.2774 42.1193C34.0715 43.3456 31.5826 44 29 44C22.343 44 16.5423 39.6253 14.6429 33.3572C13.6288 33.0499 12.6506 32.6352 11.7225 32.1193L5.27472 33.9615C4.52037 34.1771 3.82294 33.4796 4.03847 32.7253L5.88071 26.2775C4.65443 24.0715 4 21.5826 4 19C4 10.7157 10.7157 4 19 4C25.7689 4 31.4907 8.48358 33.3574 14.6429ZM11.5796 30.0801C11.8444 30.0044 12.1288 30.0413 12.3655 30.1821C14.3564 31.3661 16.6306 32 19 32C26.1797 32 32 26.1797 32 19C32 11.8203 26.1797 6 19 6C11.8203 6 6 11.8203 6 19C6 21.3694 6.63388 23.6436 7.81788 25.6345C7.95866 25.8712 7.99557 26.1556 7.91991 26.4204L6.45602 31.544L11.5796 30.0801ZM34 19C34 18.3004 33.9521 17.6119 33.8594 16.9377C38.6999 18.886 42 23.6173 42 29C42 31.3694 41.3661 33.6436 40.1821 35.6345C40.0413 35.8712 40.0044 36.1556 40.0801 36.4204L41.544 41.544L36.4204 40.0801C36.1555 40.0044 35.8712 40.0413 35.6345 40.1821C33.6436 41.3661 31.3694 42 29 42C23.622 42 18.8884 38.7052 16.9378 33.8593C17.6159 33.9525 18.3046 34 19 34C27.2843 34 34 27.2843 34 19Z",fill:"white"}})])]),t._m(0)]),1===t.step?e("div",{staticClass:"communicator-content",staticStyle:{display:"flex","flex-direction":"column","align-items":"baseline"}},[e("div",{staticClass:"communicator-option",on:{click:function(e){return t.next("Zgłoszenie błędu")}}},[t._v("Zgłoszenie błędu")]),e("div",{staticClass:"communicator-option",on:{click:function(e){return t.next("Sugestia funkcjonalności")}}},[t._v("Sugestia funkcjonalności")])]):t._e(),2===t.step?e("div",{staticClass:"communicator-content",staticStyle:{position:"relative","background-color":"#F7F9F9","padding-bottom":"0"}},[e("p",{staticStyle:{"margin-bottom":"4px"}},[t._v("Twoja wiadomość do Dostartu")]),e("base-input-area",{attrs:{rows:5},model:{value:t.ticket.description,callback:function(e){t.$set(t.ticket,"description",e)},expression:"ticket.description"}}),t.loading?e("div",{staticClass:"loading"},[t._m(1)]):t._e()],1):t._e(),3===t.step?e("div",{staticClass:"communicator-content-complete"},[e("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 20.7639L18.7639 17.2361C19.5768 15.6103 20 13.8176 20 12V11.5C20 9.567 21.567 8 23.5 8C25.433 8 27.0515 9.46471 27.2438 11.3881L27.905 18H34.58C37.3415 18 39.58 20.2386 39.58 23C39.58 23.1661 39.5718 23.3322 39.5552 23.4975L38.3552 35.4975C38.0996 38.0535 35.9488 40 33.38 40H21C19.6549 40 18.4338 39.4688 17.5351 38.6048C17.0032 39.4434 16.0666 40 15 40H11C9.34315 40 8 38.6569 8 37V23C8 21.3431 9.34315 20 11 20H15C15.7684 20 16.4693 20.2889 17 20.7639ZM10 23V37C10 37.5523 10.4477 38 11 38H15C15.5523 38 16 37.5523 16 37V23C16 22.4477 15.5523 22 15 22H11C10.4477 22 10 22.4477 10 23ZM18 35V23.2361L20.5528 18.1305C21.5045 16.227 22 14.1281 22 12V11.5C22 10.6716 22.6716 10 23.5 10C24.4055 10 25.1636 10.6861 25.2537 11.5871L26.005 19.0995C26.0561 19.6107 26.4862 20 27 20H34.58C36.2369 20 37.58 21.3431 37.58 23C37.58 23.0997 37.5751 23.1993 37.5652 23.2985L36.3652 35.2985C36.2118 36.8321 34.9213 38 33.38 38H21C19.3431 38 18 36.6569 18 35Z",fill:"#455A64"}})]),e("p",[t._v("Dziękujemy za wiadomość")]),e("base-button",{attrs:{btn9:""},on:{click:t.close}},[t._v("Zamknij")])],1):t._e(),t.step>=2&&t.step<3&&!t.loading?e("div",{staticClass:"communicator-footer"},[e("base-button",{staticClass:"communicator-back",attrs:{btn9:""},on:{click:t.goBack}},[e("svg",{attrs:{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M1.70711 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H1.70711L4.85355 8.14645C5.04882 8.34171 5.04882 8.65829 4.85355 8.85355C4.65829 9.04882 4.34171 9.04882 4.14645 8.85355L0.146447 4.85355C-0.0488155 4.65829 -0.0488155 4.34171 0.146447 4.14645L4.14645 0.146447C4.34171 -0.0488155 4.65829 -0.0488155 4.85355 0.146447C5.04882 0.341709 5.04882 0.658291 4.85355 0.853553L1.70711 4Z",fill:"white"}}
1)])]),2===t.step?e("base-button",{staticClass:"communicator-submit",attrs:{btn1:"",disabled:t.ticket.description.length<10},on:{click:t.sendTicket}},[t._v("Wyślij")]):t._e()],1):t._e()]),e("div",{staticClass:"communicator-trigger",on:{click:t.openPopup}},[t.isOpen?e("svg",{attrs:{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M7.17461 0.120381C7.38428 -0.0593303 7.69993 -0.0350495 7.87964 0.174613C8.05935 0.384276 8.03507 0.699926 7.8254 0.879637L4.3254 3.87964C4.13816 4.04013 3.86186 4.04013 3.67461 3.87964L0.174613 0.879637C-0.0350495 0.699926 -0.0593303 0.384276 0.120381 0.174613C0.300092 -0.0350495 0.615742 -0.0593303 0.825405 0.120381L4.00001 2.84147L7.17461 0.120381Z",fill:"white"}})]):e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.6787 7.32147C19.8089 8.26957 22 11.1683 22 14.5C22 15.7913 21.6728 17.0357 21.0596 18.1387L21.9808 21.3626C22.0885 21.7398 21.7398 22.0885 21.3626 21.9808L18.1387 21.0596C17.0357 21.6728 15.7913 22 14.5 22C11.1715 22 8.27117 19.8126 7.32146 16.6786C6.81439 16.5249 6.32531 16.3176 5.86128 16.0596L2.63736 16.9808C2.26019 17.0885 1.91148 16.7398 2.01924 16.3626L2.94036 13.1387C2.32722 12.0357 2 10.7913 2 9.5C2 5.35786 5.35787 2 9.5 2C12.8845 2 15.7453 4.24179 16.6787 7.32147ZM5.78981 15.04C5.92223 15.0022 6.06438 15.0207 6.18274 15.0911C7.17822 15.6831 8.3153 16 9.5 16C13.0899 16 16 13.0899 16 9.5C16 5.91015 13.0899 3 9.5 3C5.91015 3 3 5.91015 3 9.5C3 10.6847 3.31694 11.8218 3.90894 12.8173C3.97933 12.9356 3.99779 13.0778 3.95996 13.2102L3.22801 15.772L5.78981 15.04ZM17 9.5C17 9.15018 16.9761 8.80595 16.9297 8.46886C19.35 9.44299 21 11.8087 21 14.5C21 15.6847 20.6831 16.8218 20.0911 17.8173C20.0207 17.9356 20.0022 18.0778 20.04 18.2102L20.772 20.772L18.2102 20.04C18.0778 20.0022 17.9356 20.0207 17.8173 20.0911C16.8218 20.6831 15.6847 21 14.5 21C11.811 21 9.44419 19.3526 8.46891 16.9296C8.80798 16.9763 9.15229 17 9.5 17C13.6421 17 17 13.6421 17 9.5Z",fill:"white"}})])])])}),It=[function(){var t=this,e=t._self._c;return e("div",[e("h5",[t._v("Napisz do nas")]),e("p",[t._v("Masz pytania, lub komentarze dotyczące działania systemu "),e("b",[t._v("Dostartu?")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],Pt=a("365c"),Et=a("82ea"),Tt={components:{BaseButton:Et["default"]},name:"Communicator",data(){return{isOpen:!1,step:1,ticket:{title:"",description:""},loading:!1}},methods:{openPopup(){this.isOpen=!this.isOpen,3===this.step&&(this.step=1)},goBack(){this.step-=1},next(t){t&&(this.ticket.title=t),this.step+=1},close(){this.step=1,this.isOpen=!1},async sendTicket(){this.loading=!0,await Pt["a"].post("/user/communicator",Object(v["a"])({},this.ticket)),this.loading=!1,this.step+=1,this.ticket={title:"",description:""}}}},Nt=Tt,Rt=(a("7a4c"),Object(U["a"])(Nt,jt,It,!1,null,"918e6842",null)),Lt=Rt.exports,Mt=function(){var t=this,e=t._self._c;return e("modal",{ref:"modal",staticClass:"modal-background changelog-latest-modal",attrs:{"body-class":"h-auto"},on:{"modal-close":t.onClose},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" Zmiany w systemie Dostartu ")]},proxy:!0},{key:"body",fn:function(){return[t.entry?e("changelog-entry-item",{attrs:{entry:t.entry,variant:"light","is-first":"","is-last":""}}):t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{attrs:{btn2:"",short:""},on:{click:t.goToList}},[t._v(" Zobacz pełną listę zmian ")]),e("base-button",{attrs:{btn1:"",short:""},on:{click:t.close}},[t._v(" ZAMKNIJ ")])]},proxy:!0}])})},Dt=[],$t=a("714b"),Ut=function(){var t=this,e=t._self._c;return e("article",{staticClass:"changelog-entry",class:["changelog-entry--"+t.variant,{"changelog-entry--first":t.isFirst,"changelog-entry--last":t.isLast}]},[t._m(0),e("div",{staticClass:"changelog-entry__body"},[e("div",{staticClass:"changelog-entry__meta"},[e("p",{staticClass:"changelog-entry__date-version"},[t.formattedDate?e("span",{staticClass:"changelog-entry__date"},[t._v(t._s(t.formattedDate))]):t._e(),t.entry.version?e("span",{staticClass:"changelog-entry__version"},[t._v(t._s(t.entry.version))]):t._e()]),t.typeLabel?e("span",{staticClass:"changelog-entry__type"},[t._v(t._s(t.typeLabel))]):t._e()]),e("div",{staticClass:"changelog-entry__card"},[e("div",{staticClass:"changelog-entry__content"},[e("h3",{staticClass:"changelog-entry__title"},[t._v(" "+t._s(t.entry.title)+" ")]),t.entry.description?e("p",{staticClass:"changelog-entry__description"},[t._v(" "+t._s(t.entry.description)+" ")]):t._e()]),t.entry.items&&t.entry.items.length?e("ul",{staticClass:"changelog-entry__items"},t._l(t.entry.items,(function(a,n){return e("li",{key:n},[t._v(" "+t._s(a)+" ")])})),0):t._e()])])])},Bt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"changelog-entry__axis"},[e("span",{staticClass:"changelog-entry__dot"})])}],Ft=a("4602"),qt=a("e3ee"),Ht=a("49ef"),Gt=a("b166");const Wt="ds-changelog-seen-id",Vt="ds-changelog-seen";function Kt(t){if(null==t||""===t)return"";try{let e;if("number"===typeof t||"string"===typeof t&&/^\d+$/.test(t)){const a=Number(t);e=a<1e12?Object(Ft["a"])(a):new Date(a)}else e=Object(qt["a"])(String(t));return Object(Ht["a"])(e)?Object(Gt["a"])(e,"dd.MM.yyyy"):""}catch(e){return""}}function Zt(){try{const t=window.localStorage.getItem(Wt);if(null===t||""===t)return null;const e=Number(t);return Number.isFinite(e)?e:null}catch(t){return null}}function Yt(t){if(null!=t){try{window.localStorage.setItem(Wt,String(t))}catch(e){}window.dispatchEvent(new CustomEvent(Vt,{detail:{id:t}}))}}function Qt(t){if(!t||null==t.id)return!1;const e=Zt();return null===e||e!==t.id}const Xt={feature:"Funkcja",improvement:"Aktualizacja",fix:"Poprawka",security:"Bezpieczeństwo"};var Jt={name:"ChangelogEntryItem",props:{entry:{type:Object,required:!0},variant:{type:String,default:"dark"},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}},computed:{typeLabel(){return Xt[this.entry.type]||""},formattedDate(){return Kt(this.entry.releasedAt)}}},te=Jt,ee=(a("c353"),Object(U["a"])(te,Ut,Bt,!1,null,"6812e4e9",null)),ae=ee.exports,ne={name:"ChangelogLatestMod
1al",components:{Modal:$t["a"],ChangelogEntryItem:ae},props:{entry:{type:Object,default:null}},methods:{open(){this.$refs.modal&&this.$refs.modal.openModal()},close(){this.$refs.modal&&this.$refs.modal.show&&this.$refs.modal.closeModal()},onClose(){this.entry&&null!=this.entry.id&&Yt(this.entry.id)},goToList(){this.close(),this.$router.push({name:"panel-changelog",alias:!0})}}},ie=ne,se=(a("bd82"),Object(U["a"])(ie,Mt,Dt,!1,null,"7dd0f66e",null)),oe=se.exports,re=function(){var t=this,e=t._self._c;return e("div",{staticClass:"nav-wrapper"},[e("img",{staticClass:"nav-close",attrs:{src:a("2b28"),alt:"close"},on:{click:function(e){return t.TOGGLE_NAV()}}}),e("div",{staticClass:"nav-status"},[e("p",{staticClass:"nav-status__title"},[t._v(" "+t._s(t.isResultsStatuses?"Wyniki":"Rejestracja online")+" ")]),t.isResultsStatuses?[e("base-button",{staticClass:"nav-status__button nav-status__button--results",class:{"nav-status__button--positive":t.competition.status==t.STATUSES.live},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.live)}}},[t._v(" Live ")]),e("base-button",{staticClass:"nav-status__button nav-status__button--results",class:{"nav-status__button--positive":t.competition.status==t.STATUSES.unofficial},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.unofficial)}}},[t._v(" Nieoficjalne ")]),e("base-button",{staticClass:"nav-status__button nav-status__button--results",class:{"nav-status__button--positive":t.competition.status==t.STATUSES.official},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.official)}}},[t._v(" Oficjalne ")])]:[e("base-button",{staticClass:"nav-status__button",class:{"nav-status__button--negative":[t.STATUSES.close,t.STATUSES.info].includes(t.competition.status)},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.close)}}},[t._v(" Zamknięta ")]),e("base-button",{staticClass:"nav-status__button",class:{"nav-status__button--positive":t.competition.status==t.STATUSES.open},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.open)}}},[t._v(" Otwarta ")])]],2),e("base-button-group",{staticClass:"nav-box"},[e("base-button",{staticClass:"nav-box__button nav-box__button--with-icon",attrs:{btn11:"",pressed:"panel-competition-dashboard"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-dashboard")}}},[e("img",{staticClass:"nav-box__button-icon",attrs:{src:a("7936"),alt:"Home icon"}}),t._v(" Zawody ")])],1),e("base-button-group",{staticClass:"nav-box"},[e("base-button",{staticClass:"nav-box__button nav-box__button--with-icon",attrs:{btn11:""},on:{click:function(e){return t.navigateTo("panel-competition-setting-info")}}},[e("img",{staticClass:"nav-box__button-icon",attrs:{src:a("f93c"),alt:"Slider icon"}}),t._v(" Ustawienia zawodów ")]),e("base-button",{staticClass:"nav-box__button",attrs:{btn11:"",pressed:"panel-competition-setting-info"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-setting-info")}}},[t._v(" Informacje o zawodach ")]),e("base-button",{staticClass:"nav-box__button",attrs:{btn11:"",pressed:"panel-competition-setting-classifications"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-setting-classifications")}}},[t._v(" Klasyfikacje, opłaty, limity ")]),e("base-button",{staticClass:"nav-box__button",attrs:{btn11:"",pressed:"panel-competition-setting-numbers"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-setting-numbers")}}},[t._v(" Numeracja startowa ")]),e("base-button",{staticClass:"nav-box__button",attrs:{btn11:"",pressed:"panel-competition-setting-regulation"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-setting-regulation")}}},[t._v(" Regulamin zawodów ")]),e("div",{staticClass:"nav-box__hint"},[t._v(" Aby skorzystać z zaawansowanych ustawień zawodów, przejdź do pełnej wersji panelu, używając przeglądarki na komputerze. ")])],1),e("base-button-group",{staticClass:"nav-box"},[e("base-button",{staticClass:"nav-box__button nav-box__button--with-icon",attrs:{btn11:"",pressed:"panel-competition-list-new"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-list-new")}}},[e("img",{staticClass:"nav-box__button-icon",attrs:{src:a("0b2b"),alt:"Users icon"}}),t._v(" Lista startowa ")])],1),e("base-button-group",{staticClass:"nav-box"},[e("base-button",{staticClass:"nav-box__button nav-box__button--with-icon",attrs:{btn11:"",pressed:"panel-competition-result"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-result")}}},[e("img",{staticClass:"nav-box__button-icon",attrs:{src:a("e278"),alt:"List icon"}}),t._v(" Wyniki ")]),e("div",{staticClass:"nav-box__hint"},[t._v(" Aby wgrać wyniki z pliku, przejdź do pełnej wersji panelu, używając przeglądarki na komputerze. ")
1])],1),e("base-button-group",{staticClass:"nav-box"},[e("base-button",{staticClass:"nav-box__button nav-box__button--with-icon",attrs:{btn11:"",pressed:"panel-competition-stoper"===t.$route.name},on:{click:function(e){return t.navigateTo("panel-competition-stoper")}}},[e("img",{staticClass:"nav-box__button-icon",attrs:{src:a("0fbd"),alt:"Clock icon"}}),t._v(" Stoper ")])],1),e("base-button-group",{staticClass:"nav-box nav-box--last"},[e("base-button",{staticClass:"nav-box__button nav-box__button--with-icon",attrs:{btn11:"",pressed:"panel-competition-scanner-qr"===t.$route.name},on:{click:t.navigateToScannerQR}},[e("img",{staticClass:"nav-box__button-icon",attrs:{src:a("8cc4"),alt:"Clock icon"}}),t._v(" Skaner QR ")])],1)],1)},le=[],ce=a("90d2"),de={data(){return{STATUSES:s["q"]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{competition(){return this.competitions[this.$route.params.id]},isResultsStatuses(){return"panel-competition-stoper"===this.$route.name&&this.competition.status<=4||this.competition.status>=4}}),methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["K"]])),Object(R["b"])([g["ld"]])),{},{async updateCompetitionStatus(t){await this.UPDATE_COMPETITION(Object(v["a"])(Object(v["a"])({},this.competition),{},{status:t}))},navigateTo(t){this.TOGGLE_NAV(),this.$router.push({name:t,params:this.competition,alias:!0})},navigateToScannerQR(){this.TOGGLE_NAV(),this.$router.push({name:"panel-competition-scanner-qr",params:{secureId:this.competition.apiKey},alias:!0})}})},ue=de,pe=(a("ebb7"),Object(U["a"])(ue,re,le,!1,null,"7d28ab4f",null)),me=pe.exports;function fe(t){const e={};return null!=t&&(e.limit=t),Pt["a"].get("/changelog",{params:e})}const he=["panel-changelog","panel-gate","panel-competition-stoper","panel-competition-map","panel-competition-scanner-qr"];var be={components:{LayoutBackHeader:wt,LayoutBackFooter:zt,PanelCompetitionNavMobile:me,Communicator:Lt,ChangelogLatestModal:oe},data(){return{latestChangelog:null,hasUnseenChangelog:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["isZenMode","isOnline","isNavActive"])),{},{isMobile(){return["sm","md"].includes(this.$mq)},isStoper(){return"panel-competition-stoper"===this.$route.name},isScannerQR(){return"panel-competition-scanner-qr"===this.$route.name},showCommunicator(){return!(this.isStoper&&this.isMobile||this.isScannerQR&&this.isMobile)},canOpenChangelogModal(){return!he.includes(this.$route.name)}}),watch:{"$route.name"(t){"panel-changelog"===t&&this.latestChangelog&&(Yt(this.latestChangelog.id),this.closeChangelogModal())}},created(){window.addEventListener(Vt,this.handleChangelogSeen)},async mounted(){await this.loadLatestChangelog()},beforeDestroy(){window.removeEventListener(Vt,this.handleChangelogSeen)},methods:Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["K"]])),{},{handleChangelogSeen(){this.hasUnseenChangelog=Qt(this.latestChangelog)},closeChangelogModal(){this.$refs.changelogModal&&this.$refs.changelogModal.close()},async loadLatestChangelog(){try{const t=await fe(1);if(this.latestChangelog=Array.isArray(t)&&t[0]?t[0]:null,!this.latestChangelog)return void(this.hasUnseenChangelog=!1);if("panel-changelog"===this.$route.name)return Yt(this.latestChangelog.id),void(this.hasUnseenChangelog=!1);this.hasUnseenChangelog=Qt(this.latestChangelog),this.hasUnseenChangelog&&this.canOpenChangelogModal&&this.$nextTick(()=>{this.$refs.changelogModal&&this.$refs.changelogModal.open()})}catch(t){this.hasUnseenChangelog=!1}}})},_e=be,ve=(a("041f"),Object(U["a"])(_e,nt,it,!1,null,"4ada9400",null)),ge=ve.exports,ye=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sticky",class:{"sticky--bottom":t.showInstallMessageOnIOS||t.promptEvent}},[t.isOrganizerPanel&&t.isNotification?e("div",{staticClass:"prompt",class:{"prompt--ios":t.showInstallMessageOnIOS}},[e("div",{staticClass:"prompt__cancel-ios",on:{click:function(e){return e.stopPropagation(),t.dismiss.apply(null,arguments)}}},[e("img",{attrs:{src:a("76b1"),alt:""}})]),e("div",{staticClass:"row w100"},[e("div",{staticClass:"col-12"},[t.promptEvent?e("div",{staticClass:"d-flex",on:{click:t.showPrompt}},[e("img",{staticClass:"prompt__icon",attrs:{src:a("d6c8"),alt:"Logo"}}),e("p",{staticClass:"prompt__description",on:{click:function(t){t.preventDefault()}}},[t._v(" Dodaj aplikację DO:ST:AR:TU do ekranu głównego ")]),e("i",{staticClass:"fas fa-times prompt__close",on:{click:function(e){return e.stopPropagation(),t.dismiss.apply(null,arguments)}}})]):t.showInstallMessageOnIOS?e("div",{staticClass:"prompt__ios-message"},[e("img",{staticClass:"prompt__ios-logo",attrs:{src:a("c9ff")}}),t._m(0)]):t.isInstalledInfo?e("div",[t._v(" Pomyślnie zainstalowano aplikacje. ")]):t._e()])])]):t._e()])},Ce=[function(){var t=this,e=t._self._c;return e("div",[e("p",{staticClass:"prompt__ios-title"},[t._v(" Zainstaluj dostartu jako aplikację ")]),e("div",{staticClass:"d-flex"},[e("p",[t._v("1. Tapnij ikonę")]),e("img",{attrs:{src:a("dcfe")}})]),e("div",{staticClass:"d-flex"},[e("p",[t._v("2. Dodaj do ekranu głównego")]),e("img",{attrs:{src:a("afbd"),alt:""}})])])}],we=a("a78e"),ke=a.n(we),xe={data(){return{isRefreshing:!1,registration:null,showInstallMessageOnIOS:!1,isInstalledInfo:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["promptEvent"])),{},{isNotification(){return!this.promptCookies&&(this.promptEvent||this.showInstallMessageOnIOS)||this.isInstalledInfo},promptCookies(){return ke.a.get("prompt-pwa")},isOrganizerPanel(){const t=this.$route.matched.find(t=>t.meta.layout);return"front"!==t.meta.layout}}),created(){this.isSafari()&&!this.isInStandaloneMode()&&(this.showInstallMessageOnIOS=!0),document.addEventListener("serviceWorkerUpdated",t=>this.refreshServiceWorker(t)),window.addEventListener("appinstalled",()=>{this.CLEAR_PROMPT_EVENT(),this.showInfoAfterInstalled()}),this.updateOnlineStatus(),window.addEventListener("online",()=>this.updateOnlineStatus()),window.addEventListener("offline",()=>
1this.updateOnlineStatus()),"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("controllerchange",()=>{this.isRefreshing||(this.isRefreshing=!0,window.location.reload())})},methods:Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["q"],ce["e"]])),{},{dismiss(){this.showInstallMessageOnIOS=null,this.CLEAR_PROMPT_EVENT()},updateOnlineStatus(){this.SET_IS_ONLINE(navigator.onLine)},refreshServiceWorker(t){this.registration=t.detail,this.registration&&this.registration.waiting&&this.registration.waiting.postMessage({type:"SKIP_WAITING"})},showPrompt(){this.promptEvent.prompt()},showInfoAfterInstalled(){this.isInstalledInfo=!0,setTimeout(()=>{this.isInstalledInfo=!1},4e3)},isInStandaloneMode(){return"standalone"in window.navigator&&window.navigator.standalone},isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}})},Oe=xe,Ae=(a("d37b"),Object(U["a"])(Oe,ye,Ce,!1,null,"16a4a377",null)),Se=Ae.exports;n["default"].component("layout-front",at),n["default"].component("layout-back",ge),I.a.use();var ze={components:{PwaNotification:Se},props:{layout:{type:String,required:!0}},metaInfo(){return{title:this.say.platform_for_organizers_and_players,titleTemplate:"%s | DO:ST:AR:TU"}},computed:Object(v["a"])({},Object(R["c"])(["say"])),created(){this.$messaging&&this.$messaging.onMessage(t=>{const e=t.notification.title,a={body:t.notification.body,click_action:t.notification.click_action};if("Notification"in window){if("granted"===Notification.permission)try{const n=new Notification(e,a);n.onclick=function(e){e.preventDefault(),window.open(t.notification.click_action,"_self"),n.close()}}catch(n){try{navigator.serviceWorker.ready.then((function(t){t.showNotification(e,a)}))}catch(i){alert(i.message)}}}else alert("This browser does not support system notifications")})},mounted(){document.querySelector(".loading").remove()}},je=ze,Ie=(a("e5ea"),Object(U["a"])(je,S,z,!1,null,null,null)),Pe=Ie.exports,Ee=function(){var t=this,e=t._self._c;return e("div",[e("main-header",{scopedSlots:t._u([{key:"right",fn:function(){return[e("main-header-search")]},proxy:!0}])}),e("transition",{attrs:{name:"home-promote"}},["main-landing"===t.$route.name?e("main-carousel"):t._e()],1),"main-list-map"!==t.$route.name?e("main-list"):t._e(),e("router-view")],1)},Te=[],Ne=function(){var t=this,e=t._self._c;return e("div",{class:t.classes},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{class:t.leftSideHeaderClasses},[t._t("left",(function(){return[e("transition",{attrs:{name:"home-top__counter"}},["main-landing"===t.$route.name?e("div",{staticClass:"row home-top__counter"},[e("div",{staticClass:"col-12 home-top__logo"},[e("h1",{staticClass:"home-top__info",domProps:{innerHTML:t._s(t.headTitle)}})])]):t._e()])]}))],2),e("div",{ref:"rightSideHeader",class:t.rightSideHeaderClasses},[t.isMainSite?e("div",{class:t.rightSideHeaderHeightPhoto,style:t.backgroundMainSite},[e("img",{staticClass:"background__image",attrs:{src:a("f6c3"),alt:"operator photo"}})]):t._e(),t._t("right")],2)])])])},Re=[],Le={props:{headerColor:{type:String,default:""},isMainSite:{type:Boolean,default:!1},withPosters:{type:Boolean,default:!1}},data(){return{width:void 0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{classes(){return{"home-top":this.$slots.right&&!this.$slots.left,"header-top":this.$slots.right&&this.$slots.left,"home-top--tall":"main-landing"===this.$route.name,"home-top--short":"main-list"===this.$route.name,"d-none d-md-block":"main-list-map"===this.$route.name}},headTitle(){let t=this.say.platform_for_organizers_and_players;const e=["organizatorów","organizátory","Organisatoren","organizers","organisateurs"];return e.forEach(e=>{t=t.replace(e,`<a class="home-top__info-link" href="https://organizator.dostartu.pl">${e}</a>`)}),t},leftSideHeaderClasses(){return{"col-12":!0,"col-lg-3":this.$slots.right&&this.$slots.left}},rightSideHeaderClasses(){return{"col-12":!0,"col-lg-9":this.$slots.right&&this.$slots.left,"header-box__search-container":this.isMainSite,"header-box__search-container--short":!this.withPosters&&this.isMainSite,"header-box__search-container--tall":this.withPosters&&this.isMainSite}},rightSideHeaderHeightPhoto(){return{"background__main-site--short":!this.withPosters&&this.isMainSite,"background__main-site--tall":this.withPosters&&this.isMainSite}},backgroundMainSite(){return{width:this.width,backgroundImage:this.headerColor}}}),mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.measurePhotoWidth)}),this.isMainSite&&this.measurePhotoWidth()},beforeDestroy(){window.removeEventListener("resize",this.measurePhotoWidth)},methods:{measurePhotoWidth(){this.getWindowWidth()>=1200?this.width=this.$refs.rightSideHeader.clientWidth+(window.innerWidth-1200)/2+6+"px":this.getWindowWidth()>=992?this.width="74%":this.width="100%"},getWindowWidth(){return window.innerWidth}}},Me=Le,De=(a("889e"),Object(U["a"])(Me,Ne,Re,!1,null,"0d01dc9c",null)),$e=De.exports,Ue=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row incoming-competitions"},[e("div",{staticClass:"col-12 col-lg-3"},[e("main-list-filters")],1),e("div",{ref:"listTop",staticClass:"col-12 col-lg-9 incoming-competitions__listing",attrs:{id:"listTop"}},[e("div",{staticClass:"incoming-competitions__listing--padding"},[t.futureCompetitions.length||t.promotedCompetitions.length?e("div",[e("p",[e("b",[t._v(t._s(t.say.upcoming_competitions))])]),t.promotedCompetitions.length&&"main-list"===t.$route.name?e("base-item-competition-promoted",{attrs:{id:t.promotedCompetitions[0]}}
1):t._e(),t._l(t.futureCompetitions,(function(t){return e("base-item-competition",{key:t,attrs:{id:t}})})),"main-landing"===t.$route.name?e("div",{staticClass:"col-12 mat32"},[e("router-link",{attrs:{to:{name:"main-list",query:{od:t.time.format("DD.MM.YYYY"),strona:2},alias:!0}}},[e("base-button",{staticClass:"incoming-competitions__listing-button",attrs:{btn4:""}},[t._v(" "+t._s(t._f("asUpperCase")(t.say.see_all_upcoming_competitions))+" ")])],1)],1):t._e()],2):t._e(),t.pastCompetitions.length?e("div",{class:{mat32:t.futureCompetitions.length}},[e("p",[e("b",[t._v(t._s(t.say.past_competitions))])]),t._l(t.pastCompetitions,(function(t){return e("base-item-competition",{key:t,attrs:{id:t}})})),"main-landing"===t.$route.name?e("div",{staticClass:"col-12 mat32"},[e("router-link",{attrs:{to:{name:"main-list",query:{do:t.time.format("DD.MM.YYYY"),strona:2},alias:!0}}},[e("base-button",{staticClass:"incoming-competitions__listing-button",attrs:{btn4:""}},[t._v(" "+t._s(t._f("asUpperCase")(t.say.see_all_past_competitions))+" ")])],1)],1):t._e()],2):t._e(),["main-list","main-site-operator","main-site-organizer"].includes(t.$route.name)?e("div",{staticClass:"row mat32"},[e("base-button",{attrs:{btn6:"",disabled:1===t.filter.page},on:{click:function(e){return t.prev()}}},[t._v(" "+t._s(t.say.previous)+" ")]),e("base-button",{attrs:{btn6:"",disabled:!t.futureCompetitions.length&&!t.pastCompetitions.length},on:{click:function(e){return t.next()}}},[t._v(" "+t._s(t.say.next)+" ")])],1):t._e()])])])])},Be=[],Fe=a("2ef0"),qe=a.n(Fe),He=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"col-12 home-filter"},["main-list-map"!==t.$route.name&&!0!==this.filter.remote?e("base-button",{staticClass:"ma4 mab48",attrs:{btn2:"",icon:"fas fa-map"},on:{click:function(e){return t.$router.push({name:"main-list-map",alias:!0})}}},[t._v(" Zobacz mapę ")]):t._e(),e("div",{staticClass:"row"},[e("p",{staticClass:"bolder"},[t._v(" "+t._s(t.say.competition_status)+" ")]),e("p",{staticClass:"d-inline c-positive pointer",on:{click:function(e){t.showFiltersOnMobile=!0}}},[t._v(" "+t._s(t.say.other_filters)+" ")])]),e("div",{staticClass:"row home-filter__buttons"},[e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledFutureFilter},on:{click:function(e){return t.toggleFutureFilter()}}},[t._v(" "+t._s(t.say.all_upcoming)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledPastFilter},on:{click:function(e){return t.togglePastFilter()}}},[t._v(" "+t._s(t.say.past_competitions)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledStatusOpenRegistrationFilter},on:{click:function(e){return t.toggleStatusOpenRegistrationFilter()}}},[t._v(" "+t._s(t.say.open_registration)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledStatusWithResultFilter},on:{click:function(e){return t.toggleStatusWithResultFilter()}}},[t._v(" "+t._s(t.say.results)+" ")]),"main-list-map"!==t.$route.name?e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledRemoteFilter},on:{click:function(e){return t.toggleRemoteFilter()}}},[t._v(" "+t._s(t.say.remote)+" ")]):t._e()],1)],1),e("div",{staticClass:"col-lg-3 home-filter--desktop",class:{"home-filter--other-filters":t.showFiltersOnMobile}},[e("div",{staticClass:"container filters"},["main-list-map"!==t.$route.name&&!0!==this.filter.remote?e("base-button",{staticClass:"ma4 mab48",attrs:{btn2:"",icon:"fas fa-map"},on:{click:function(e){return t.toggleMap()}}},[t._v(" Zobacz mapę ")]):t._e(),e("h1",{staticClass:"d-sm"},[t._v(" "+t._s(t.say.filters)+" ")]),e("div",{staticClass:"row filters__section filters__section--first"},[e("div",{staticClass:"mab12 col-12"},[e("b",[t._v(t._s(t.say.competition_status))]),t._v("   "),t.enabledMainFilter?e("b",{staticClass:"pointer c-orange",on:{click:function(e){return t.clearMainFilter()}}},[t._v(t._s(t.say.remove_filter))]):t._e()]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledFutureFilter},on:{click:function(e){return t.toggleFutureFilter()}}},[t._v(" "+t._s(t.say.all_upcoming)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledPastFilter},on:{click:function(e){return t.togglePastFilter()}}},[t._v(" "+t._s(t.say.past_competitions)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledStatusOpenRegistrationFilter},on:{click:function(e){return t.toggleStatusOpenRegistrationFilter()}}},[t._v(" "+t._s(t.say.open_registration)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledStatusWithResultFilter},on:{click:function(e){return t.toggleStatusWithResultFilter()}}},[t._v(" "+t._s(t.say.results)+" ")]),"main-list-map"!==t.$route.name?e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledRemoteFilter},on:{click:function(e){return t.toggleRemoteFilter()}}},[t._v(" "+t._s(t.say.remote)+" ")]):t._e()],1),e("div",{staticClass:"row filters__section"},[e("div",{staticClass:"col-12 mab12"},[e("b",[t._v(t._s(t.say.when))]),t._v("? "),t.enabledDateFilter?e("b",{staticClass:"pointer c-orange",on:{click:function(e){return t.clearDateFilter()}}},[t._v(t._s(t.say.remove_filter))]):t._e()]),e("base-input-date",{staticClass:"col-6",attrs:{label:t.say.from_date},model:{value:t.dateSince,callback:function(e){t.dateSince=e},expression:"dateSince"}}),e("base-input-date",{staticClass:"col-6",attrs:{label:t.say.to_date},model:{value:t.dateTo,callback:function(e){t.dateTo=e},expression:"dateTo"}})],1),e("div",{staticClass:"row filters__section"},[e("div",{staticClass:"col-12 mab12"},[e("b",[t._v(t._s(t.say.competitions_type))]),t._v("  "),t.enabledTypesFilter?e("b",{staticClass:"pointer c-orange",on:{click:function(e){return t.clearTypesFilter()}}},[t._v(t._s(t.say.remove_filter))]):t._e()]),t._l(t.types,(function(a){return e("base-button",{key:a,staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledTypeFilter(a)},on:{click:function(e){return t.toggleTypeFilter(a)}}},[t._v(" "+t._s(t.say["types_"+a])+" ")])}))],2),e("div",{staticClass:"row filters__section filters__section--last"},[e("div",{staticClass:"col-12 mab12"},[e("b",[t._v(t._s(t.say.participation_fee))]),t._v("  "),t.enabledPayFilter?e("b",{staticClass:"pointer c-orange",on:{click:function(e){return t.clearPayFilter()}}},[t._v(t._s(t.say.remove_filter))]):t._e()]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledPayYesFilter},on:{click:function(e){return t.togglePayYesFilter()}}},[t._v(" "+t._s(t.say.for_pay)+" ")]),e("base-button",{staticClass:"ma4",attrs:{btn6:"",pressed:t.enabledPayNoFilter},on:{click:function(e){return t.togglePayNoFilter()}}},[t._v(" "+t._s(t.say.feeless)+" ")])],1),e("div",{staticClass:"row filters__bottom-label"},[e("p",{staticClass:"pointer c-positive d-flex items-center mar30",on:{click:function(e){t.showFiltersOnMobile=!1,t.clearFilter()}}},[t._v(" "+t._s(t.say.see_all)+" ")]),e("base-button",{attrs:{btn1:""},on:{click:function(e){t.showFiltersOnMobile=!1}}},[t._v(" "+t._s(t.say.set_filter)+" ")])],1)],1)])])},Ge=[],We={data(){return{types:s["p"],showFiltersOnMobile:!1}},created(){"main-list-map"!==this.$route.name||this.enabledMainFilter||this.toggleFutureFilter()},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","time","filter"])),{},{today(){return this.time.startOf("day")},dateSince:{get(){return this.filter.dateSince},set(t){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{dateSince:t,page:1}),route:this.$route})}},dateTo:{get(){return this.filter.dateTo},set(t){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{dateTo:t,page:1}),route:this.$route})}},enabledRemoteFilter(){return!0===this.filter.remote},enabledFutureFilter(){var t;return null===(t=this.filter.dateSince)||void 0===t?void 0:t.isSame(this.today)},enabledPastFilter(){var t;return null===(t=this.filter.dateTo)||void 0===t?void 0:t.isSame(this.today)},enabledStatusOpenRegistrationFilter(){return 2===this.filter.status},enabledStatusWithResultFilter(){return 4===this.filter.status},enabledPayYesFilter(){return!0===this.filter.pay},enabledPayNoFilter(){return!1===this.filter.pay},enabledMainFilter(){return this.enabledFutureFilter||this.enabledPastFilter||this.enabledStatusOpenRegistrationFilter||this.enabledStatusWithResultFilter||this.enabledRemoteFilter},enabledDateFilter(){return this.filter.dateSince||this.filter.dateTo},enabledTypesFilter(){return this.filter.types.length>0},enabledPayFilter(){return void 0!==this.filter.pay}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["n"]])),{},{enabledTypeFilter(t){return this.filter.types.includes(t)},toggleMap(){this.SET_FILTER({filter:Object(v["a"])({},this.filter),destination:"main-list-map"})},toggleFutureFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{dateSince:this.enabledFutureFilter?void 0:this.today,dateTo:void 0,page:1}),route:this.$route})},togglePastFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{dateSince:void 0,dateTo:this.enabledPastFilter?void 0:this.today,page:1}),route:this.$route})},toggleStatusOpenRegistrationFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{status:this.enabledStatusOpenRegistrationFilter?void 0:2,page:1}),route:this.$route})},toggleStatusWithResultFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{status:this.enabledStatusWithResultFilter?void 0:4,page:1}),route:this.$route})},toggleRemoteFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{remote:!this.enabledRemoteFilter||void 0,page:1}),route:this.$route})},toggleTypeFilter(t){const{types:e}=this.filter;this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{type:this.enabledTypeFilter(t)?Object(w["d"])(e,t):e.push(t),page:1}),route:this.$route})},togglePayYesFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{pay:!this.enabledPayYesFilter||void 0,page:1}),route:this.$route})},togglePayNoFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{pay:!!this.enabledPayNoFilter&&void 0,page:1}),route:this.$route})},clearMainFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{dateSince:void 0,dateTo:void 0,status:void 0,remote:void 0,page:1}),route:this.$route})},clearDateFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{dateSince:void 0,dateTo:void 0,page:1}),route:this.$route})},clearTypesFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{types:[],page:1}),route:this.$route})},clearPayFilter(){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{pay:void 0,page:1}),route:this.$route})},clearFilter(){this.SET_FILTER({filter:{},route:this.$route})}})},Ve=We,Ke=Object(U["a"])(Ve,He,Ge,!1,null,null,null),Ze=Ke.exports,Ye={components:{MainListFilters:Ze},data(){return{promotedCompetitions:[],futureCompetitions:[-5,-4,-3,-2,-1],pastCompetitions:[-5,-4,-3,-2,-1]}},computed:Object(v["a"])({},Object(R["c"])(["say","time","filter"])),watch:{filter:{deep:!0,immediate:!0,handler(){this.searchCompet
1itions()}}},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Tc"]])),Object(R["d"])([ce["n"]])),{},{scrollToListTop(){const t=this.$refs.listTop;window.pageYOffset>t.getBoundingClientRect().top&&t.scrollIntoView({behavior:"smooth"})},searchCompetitions(){this.searchCompetitionsThrottled(this)},searchCompetitionsThrottled:qe.a.throttle(t=>t.searchCompetitionsDo(),250),async searchCompetitionsDo(){const[t,e,a]=await this.SEARCH_COMPETITIONS_LIST();this.promotedCompetitions=t,this.futureCompetitions=e,this.pastCompetitions=a},prev(){this.setPage(this.filter.page-1)},next(){this.setPage(this.filter.page+1)},setPage(t){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{page:t}),route:this.$route}),this.scrollToListTop()}})},Qe=Ye,Xe=Object(U["a"])(Qe,Ue,Be,!1,null,null,null),Je=Xe.exports,ta=function(){var t=this,e=t._self._c;return e("div",{class:t.homePromoteClasses},[e("div",{class:t.promoteBoxClasses},[e("div",{staticClass:"home-promote__btn home-promote__btn--left",class:{"home-promote__btn--high":"main-landing"!==t.$route.name},on:{click:function(e){return t.prev()}}},[e("i",{staticClass:"fas fa-chevron-left"})]),e("div",{staticClass:"row home-promote__carousel",attrs:{id:"carousel"}},t._l(t.ids,(function(a){return e("main-carousel-item",{key:a,attrs:{id:a},on:{loaded:function(e){return t.delay(t.activeClassWatcher)}}})})),1),e("div",{staticClass:"home-promote__btn home-promote__btn--right",class:{"home-promote__btn--high":"main-landing"!==t.$route.name},on:{click:function(e){return t.next()}}},[e("i",{staticClass:"fas fa-chevron-right"})])])])},ea=[],aa=function(){var t=this,e=t._self._c;return e("div",{class:t.carouselItemClasses},[e("router-link",{attrs:{to:t.link}},[e("div",{staticClass:"home-promote__competition"},[t.competition?e("img",{staticClass:"home-promote__competition-poster",attrs:{src:t.layout.posterLink}}):e("div",{staticClass:"home-promote__competition-poster home-promote__competition-poster--skeleton"},[e("div",{staticClass:"lds-ellipsis lds-ellipsis--bottom-left"},[e("div"),e("div"),e("div")])]),t.competition?e("div",{staticClass:"home-promote__competition-info row mat24"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"home-promote__competition-category"},[t._v(" "+t._s(t._f("asType")(t.competition.type))+" ")]),e("h3",{staticClass:"home-promote__competition-title"},[t._v(" "+t._s(t.competition.name)+" ")])]),e("div",{staticClass:"home-promote__competition-info--bottom"},[e("p",{staticClass:"home-promote__competition-place"},[t._v(" "+t._s(t.competition.location)+" ")]),e("p",{staticClass:"home-promote__competition-date"},[t._v(" "+t._s(t._f("asTime")(t.competition.startedTime))+" ")]),e("div",{staticClass:"home-promote__competition-hint"},[e("i",{staticClass:"fas fa-info-circle f16"}),e("p",{staticClass:"d-inline mal8"},[t._v(" "+t._s(t.say.promoted_competition)+" ")])])])]):e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-3 loading-text"})]),e("div",{staticClass:"row mat12"},[e("div",{staticClass:"col-9 loading-text"})]),e("div",{staticClass:"row mat16"},[e("div",{staticClass:"col-5 loading-text"})]),e("div",{staticClass:"row mat36"},[e("div",{staticClass:"col-6 loading-text"})]),e("div",{staticClass:"row mat18"},[e("div",{staticClass:"col-11 loading-text"})]),e("div",{staticClass:"row mat22 mab46"},[e("div",{staticClass:"col-9 loading-text"})])])])])]),e("div",{staticClass:"scroll-point"})],1)},na=[],ia={props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","layoutsBy"])),{},{competition(){return this.competitions[this.id]},layout(){return this.layoutsBy(this.competition)[0]},link(){return this.competition?{name:"minisite-landing",params:this.competition,alias:!0}:""},carouselItemClasses(){return{"home-promote__carousel-item":!0,"justify-content-center":!0,"col-lg-3":"main-landing"===this.$route.name,"col-lg-4":"main-landing"!==this.$route.name}}}),watch:{id:{immediate:!0,handler(){this.competition&&this.$emit("loaded")}}}},sa=ia,oa=Object(U["a"])(sa,aa,na,!1,null,null,null),ra=oa.exports,la={components:{MainCarouselItem:ra},props:{competitionFilter:{type:Object,default:()=>{}}},data(){return{ids:[-1,-2,-3,-4]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{homePromoteClasses(){return{"home-promote":!0,"home-promote--person":"main-landing"!==this.$route.name,container:"main-landing"===this.$route.name}},promoteBoxClasses(){return{promote__box:"main-landing"===this.$route.name,"position-relative":"main-landing"!==this.$route.name}}}),async created(){this.ids=await this.SEARCH_COMPETITIONS_CAROUSEL(this.competitionFilter),this.$emit("ready",this.ids)}
1,mounted(){this.addCarouselListener()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Sc"]])),{},{delay(t){setTimeout(t,60)},prev(){const t=document.getElementsByClassName("home-promote__competition--active"),e=t[0].parentNode.clientWidth;document.getElementById("carousel").scrollBy({left:-e,behavior:"smooth"})},next(){const t=document.getElementsByClassName("home-promote__competition--active"),e=t[0].parentNode.clientWidth;document.getElementById("carousel").scrollBy({left:e,behavior:"smooth"})},elementInViewport(t){const e=t.getBoundingClientRect();return e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},activeClassWatcher(){const t=document.getElementsByClassName("home-promote__competition");for(const e in t)this.elementInViewport(t.item(e))?t.item(e).className="home-promote__competition home-promote__competition--active":t.item(e).className="home-promote__competition"},addCarouselListener(){const t=document.getElementById("carousel");t.addEventListener("scroll",this.activeClassWatcher)}})},ca=la,da=Object(U["a"])(ca,ta,ea,!1,null,null,null),ua=da.exports,pa=function(){var t=this,e=t._self._c;return e("div",{class:t.searchClasses},[e("h2",{staticClass:"search-competition__info",class:{"col-12 mab16i":["main-site-operator","main-site-organizer"].includes(t.$route.name)}},[t._v(" "+t._s(t.say.find_competitions_for_you)+" ")]),e("div",{staticClass:"col-12 search-competition__name-input",class:["main-site-operator","main-site-organizer"].includes(t.$route.name)?"col-lg-4 max-w100i":"col-lg-3"},[e("base-input-autocomplete",{attrs:{action:"AUTOCOMPLETE_COMPETITION_NAME",label:t.say.competition_name},on:{select:function(e){e.value?t.setCompetition(e):t.setFilter()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),e("h4",{staticClass:"d-lg search-competition__hint"},[t._v(" "+t._s(t._f("asLowerCase")(t.say.or))+" ")]),e("div",{staticClass:"col-12 search-competition__location-input",class:["main-site-operator","main-site-organizer"].includes(t.$route.name)?"col-lg-4":"col-lg-3"},[e("base-input-autocomplete",{attrs:{action:"AUTOCOMPLETE_LOCATION",label:t.say.location,"clear-search-on-select":!0,clearable:!0,"only-poland":""},on:{input:function(e){t.locationGeometry=null},select:function(e){return t.selectLocationHandler(e)}},model:{value:t.locationName,callback:function(e){t.locationName=e},expression:"locationName"}})],1),e("div",{staticClass:"col-12 col-lg-2 search-competition__button"},[e("base-button",{staticClass:"pointer",attrs:{btn1:""},on:{click:function(e){return t.setFilter()}}},[t._v(" "+t._s(t.say.search)+" ")])],1)])},ma=[],fa={data(){return{name:"",locationName:"",locationGeometry:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","filter"])),{},{searchClasses(){return{row:!0,"search-competition":!0,patb32:"main-list"===this.$route.name||"main-list-map"===this.$route.name,"search-competition--main-site":["main-site-operator","main-site-organizer"].includes(this.$route.name)}}}),created(){this.name=this.filter.name,this.locationName=this.filter.location.name,this.locationGeometry=this.filter.location.geometry},methods:Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["n"]])),{},{setFilter(){var t;const e={event:"klikniecie",event_category:"przyciskszukaj",event_label:"stronaglowna"};this.$gtm.push(e),this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{name:this.name?this.name:void 0,location:{geometry:this.locationGeometry,name:null===(t=this.locationName)||void 0===t?void 0:t.split(",")[0]},page:1}),route:this.$route})},setCompetition(t){this.$router.push({name:"minisite-landing",params:{name:t.text,id:t.value},alias:!0})},selectLocationHandler(t){null===t?(this.locationName="",this.locationGeometry=null,this.setFilter()):setTimeout(()=>{this.locationName=t.city,this.locationGeometry={lng:t.cityLng,lat:t.cityLat},this.setFilter()},150)}})},ha=fa,ba=Object(U["a"])(ha,pa,ma,!1,null,null,null),_a=ba.exports,va={components:{MainHeader:$e,MainList:Je,MainCarousel:ua,MainHeaderSearch:_a}},ga=va,ya=Object(U["a"])(ga,Ee,Te,!1,null,null,null),Ca=ya.exports,wa=function(){var t=this,e=t._self._c;return e("div",[e("minisite-header"),e("router-view")],1)},ka=[],xa=function(){var t=this,e=t._self._c;return e("div",[t.competition?e("header",{staticClass:"minisite"}
1,[e("base-photo-sport",{attrs:{type:t.competition.type,colour:t.layout.colourDefault}},["minisite-landing"!==t.$route.name&&"minisite-contact"!==t.$route.name?e("div",{staticClass:"minisite-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row space-between"},[e("div",{staticClass:"col-12 col-md-6"},[e("h1",[t._v(t._s(t.competition.name))]),e("p",[t._v(t._s(t.competition.location))]),e("p",[t._v(t._s(t._f("asDate")(t.competition.startedTime)))])]),"minisite-list"===t.$route.name?e("div",{staticClass:"col-12 col-md-3"},[e("div",{staticClass:"players-info"},[e("div",[e("span",{staticClass:"big"},[t._v(t._s(t.registeredPlayers))]),e("span",{staticClass:"small"},[t._v(t._s(t.say.zarejestrowanych)),e("br"),t._v(t._s(t.say.uczestników))])]),t.competitionSetting.showOnlyPayed?t._e():e("div",[e("span",{staticClass:"big"},[t._v(t._s(t.paidPlayers))]),e("span",{staticClass:"small"},[t._v(t._s(t.say.opłaconych)),e("br"),t._v(t._s(t.say.uczestników))])])])]):e("div",{staticClass:"col-12 col-md-3 minisite-header__back-button"},[e("base-button",{staticClass:"text-upper hover-dark border-none",attrs:{btn7:""},on:{click:function(e){return t.$router.push({name:"minisite-landing",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.back_to_competition)+" ")])],1)])])]):e("div",{staticClass:"minisite-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row",class:[t.layout.posterLink&&4762!==t.competition.id&&4784!=t.competition.id?"title--with-poster":""]},[t.layout.posterLink&&4762!==t.competition.id&&4784!=t.competition.id?e("div",{staticClass:"col-4 col-md-3 d-flex"},[e("img",{staticClass:"image-poster",attrs:{src:t.layout.posterLink},on:{click:function(e){t.index=0}}})]):t._e(),e("div",{staticClass:"col-md-9 minisite-title",class:[t.layout.posterLink&&4762!==t.competition.id&&4784!=t.competition.id?"col-8":"col-12 title--without-poster"]},[e("p",[t._v(" "+t._s(t._f("asType")(t.competition.type))+" "),t.competition.cycle?e("span",[t._v(t._s(t.say.in_cycle)+" "+t._s(t.competition.cycle.namePl))]):t._e()]),e("h2",[t._v(t._s(t.competition.name))])])])])])])],1):e("header",{staticClass:"minisite--loading"}),e("CoolLightBox",{attrs:{items:t.posters,index:t.index},on:{close:function(e){t.index=null}}})],1)},Oa=[],Aa=a("5547"),Sa={components:{CoolLightBox:Aa["a"]},data:function(){return{index:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","layoutsBy","minisiteId","registeredPlayers","paidPlayers","competitionsSettings"])),{},{competition(){return this.competitions[this.minisiteId]},layout(){return this.layoutsBy(this.competition)[0]},posters(){const t=[];return this.layout&&this.layout.posterLink&&t.push(this.layout.posterLink),t},competitionSetting(){return this.competitionsSettings[this.minisiteId]}})},za=Sa,ja=(a("7d6a"),Object(U["a"])(za,xa,Oa,!1,null,"0347d13d",null)),Ia=ja.exports,Pa={components:{MinisiteHeader:Ia}},Ea=Pa,Ta=Object(U["a"])(Ea,wa,ka,!1,null,null,null),Na=Ta.exports,Ra=function(){var t=this,e=t._self._c;return e("div",["panel-competition-results-live"===this.$route.name||"panel-competition-results-live-all"===this.$route.name?e("div"):e("div",{staticClass:"container"},[t.ready?t._e():e("div",{staticClass:"row mat32"},[t._m(0)]),t.ready?e("div",{staticClass:"row mat16",class:{"d-none":t.isZenMode,"none-mobile":"panel-competition-stoper"===t.$route.name||"panel-competition-scanner-qr"===t.$route.name}},[e("h2",[t._v(t._s(t.competition.name))])]):t._e(),t.ready?e("div",{staticClass:"row buttons-row",class:{"d-none":t.isZenMode,"none-mobile":"panel-competition-stoper"===t.$route.name||"panel-competition-scanner-qr"===t.$route.name}},[e("div",{staticClass:"col-8 minisite-link none-mobile"},[e("span",[t._v(" "+t._s(t.link)+" ")])]),e("div",{staticClass:"col-3 none-mobile"},[t.competition.status<4?e("p",[t._v(" Rejestracja online ")]):e("p",[t._v(" Wyniki online ")])]),e("panel-competition-topbar",{staticClass:"col-lg-12 mat8 none-mobile"}),e("panel-competition-update-results",{attrs:{competition:t.competition}}),e("div",{staticClass:"d-flex w100 none-desktop"},[e("div",{staticClass:"button-page",on:{click:function(e){return t.TOGGLE_NAV()}}},[e("img",{staticClass:"button-page__icon",attrs:{src:t.currentPage.icon,alt:"Icon"}}),e("p",{staticClass:"button-page__title"},[t._v(" "+t._s(t.currentPage.text)+" ")]),e("img",{staticClass:"button-page__arrow",attrs:{src:a("220b"),alt:"Arrow down"}}
1)])])],1):t._e()]),t.competition?e("router-view",{attrs:{competition:t.competition}}):t._e()],1)},La=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],Ma=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row flex-nowrap nav-bar"},[e("div",{staticClass:"col-lg-7"},[e("base-button-group",{staticClass:"mar30 h100",attrs:{horizontal:""}},[e("base-button",{staticClass:"competition-topbar__btn competition-topbar__btn--1",attrs:{btn11:"",badge:"far fa-home",pressed:"panel-competition-dashboard"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-competition-dashboard",params:t.competition,alias:!0})}}}),e("base-button",{staticClass:"nowrap competition-topbar__btn competition-topbar__btn--2",attrs:{btn11:"",badge:"fas fa-tachometer-alt"},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-info",params:t.competition,alias:!0})}}},[t._v(" Ustawienia zawodów ")]),e("base-button",{staticClass:"nowrap competition-topbar__btn competition-topbar__btn--3",attrs:{btn11:"",badge:"far fa-users"},on:{click:function(e){return t.$router.push({name:"panel-competition-list-new",params:t.competition,alias:!0})}}},[t._v(" Lista startowa ")]),!1===t.competition.isRemote?e("base-button",{staticClass:"nowrap competition-topbar__btn competition-topbar__btn--4",attrs:{btn11:"",badge:"fas fa-list-ol"},on:{click:function(e){return t.$router.push({name:"panel-competition-result",params:t.competition,alias:!0})}}},[t._v(" Wyniki ")]):e("base-button",{staticClass:"nowrap competition-topbar__btn competition-topbar__btn--4",attrs:{btn11:"",badge:"fas fa-list-ol"},on:{click:function(e){return t.$router.push({name:"panel-competition-result-legacy",params:t.competition,alias:!0})}}},[t._v(" Wyniki ")])],1)],1),e("div",{staticClass:"col-lg-2"},[e("panel-menu-button",{staticClass:"mar30",scopedSlots:t._u([{key:"menu",fn:function(){return[e("base-button",{attrs:{btn11:"",badge:"far fa-clock"},on:{click:function(e){return t.$router.push({name:"panel-competition-stoper",params:t.competition,alias:!0})}}},[t._v(" Stoper ")]),e("base-button",{attrs:{btn11:"",badge:"fas fa-envelope"},on:{click:function(e){return t.$router.push({name:"panel-competition-mail-new",params:t.competition,alias:!0})}}},[t._v(" Wiadomości ")]),e("base-button",{attrs:{btn11:"",badge:"far fa-shopping-bag"},on:{click:function(e){return t.$router.push({name:"panel-competition-shop",params:t.competition,alias:!0})}}},[t._v(" Sklep ")]),e("base-button",{attrs:{btn11:"",badge:"fas fa-shield-alt"},on:{click:function(e){return t.$router.push({name:"panel-competition-insurance",params:t.competition,alias:!0})}}},[t._v(" Ubezpieczenia ")]),e("base-button",{attrs:{btn11:"",badge:"fas fa-qrcode"},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-scaner-qr",params:t.competition,alias:!0})}}},[t._v(" Skaner QR ")]),e("base-button",{attrs:{btn11:"",badge:"far fa-language"},on:{click:function(e){return t.$router.push({name:"panel-competition-languages",params:t.competition,alias:!0})}}},[t._v(" Wersje językowe ")]),e("base-button",{attrs:{btn11:"",badge:"far fa-map"},on:{click:function(e){return t.$router.push({name:"panel-competition-map",params:t.competition,alias:!0})}}},[t._v(" Trasa i punkty ")])]},proxy:!0}])},[e("base-button",{class:{"menu-btn":!0,"menu-btn--active":t.isMenuActive},attrs:{btn11:"",icon:"fas fa-caret-down"}},[t._v(" Narzędzia ")])],1)],1),t.isResultsStatuses?e("div",{staticClass:"col-lg-3 d-flex"},[t.competition.status<=t.STATUSES.live?e("base-button",{staticClass:"mar4 status-result",class:{"status-btn--positive":t.competition.status==t.STATUSES.live},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.live)}}},[t._v(" Live ")]):t._e(),e("base-button",{staticClass:"mar4 status-result",class:{"status-btn--positive":t.competition.status==t.STATUSES.unofficial},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.unofficial)}}},[t._v(" Nieoficjalne ")]),e("base-button",{staticClass:"status-result",class:{"status-btn--positive":t.competition.status==t.STATUSES.official},attrs:{btn9:""},on:{click:function(e){return t.updateCompetitionStatus(t.STATUSES.official)}}},[t._v(" Oficjalne ")])],1):e("div",{staticClass:"col-lg-3 d-flex"},[e("base-button",{staticClass:"status-btn mar3",class:{"status-btn--negative":[t.STATUSES.close,t.STATUSES.info].includes(t.competition.status)},attrs:{btn9:""},on:{click:t.closeCompetition}},[t._v(" Zamknięta ")]),e("base-button",{staticClass:"status-btn",class:{"status-btn--positive":t.competition.status==t.STATUSES.open},attrs:{btn9:""},on:{click:t.checkOrganizer}},[t._v(" Otwarta ")])],1),t.showOrganizerModal?e("CheckOrganizerSetup",{attrs:{id:t.organizerId,competitionId:t.$route.params.id},on:{change:function(e){return t.updateCompetitionStatus(t.STATUSES.open)},close:function(e){t.showOrganizerModal=!1}}}):t._e()],1)},Da=[],$a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"menu"},[t._t("default"),e("div",{staticClass:"arrow"}),e("base-button-group",{staticClass:"menu-button-group"},[t._t("menu")],2)],2)},Ua=[],Ba={props:{pressed:{type:Boolean,default:!1}}},Fa=Ba,qa=(a("99ca"),Object(U["a"])(Fa,$a,Ua,!1,null,"3a5ee654",null)),Ha=qa.exports,Ga=function(){var t=this,e=t._self._c;return e("div",[e("modal",{ref:"checkOrganizerSetupModal",staticClass:"modal-background",attrs:{id:"checkOrganizerSetupModal"}
1,on:{"modal-close":function(e){return t.$emit("close")}},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Uzupełnij dane")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"info-box info-bg"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("h3",{staticClass:"mab16",staticStyle:{"line-height":"1.1"}},[t._v("Uzupełnij dane organizatora i zaakceptuj umowę powierzenia przetwarzania danych osobowych.")]),e("p",[t._v("Aby dostosować działanie systemu do obowiązujących przepisów, potrzebujemy danych organizatorów do wystawienia umów o przetwarzaniu danych osobowych uczestników.")])])])])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{attrs:{btn2:"",short:""},on:{click:function(e){return t.$refs.checkOrganizerSetupModal.closeModal()}}},[t._v("Anuluj")]),e("base-button",{attrs:{btn1:"",short:""},on:{click:t.goToPage}},[t._v("Przejdź do ustawień")])]},proxy:!0}])})],1)},Wa=[],Va={name:"CheckOrganizerSetup",props:{id:{type:Number,required:!0},competitionId:{type:Number,default:0},route:{type:String,default:"panel-setting-new"}},components:{Modal:$t["a"]},data(){return{redirect:null}},computed:{},created(){this.readOrganizerSetup()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["rc"]])),{},{async readOrganizerSetup(){const t={id:this.$props.id,data:{type:this.$props.route}};this.$props.competitionId>0&&(t["data"]["competition_id"]=this.$props.competitionId);const e=await this.READ_ORGANIZER_SETUP(t);this.redirect=e,""===this.redirect?this.$emit("change","success"):this.$refs.checkOrganizerSetupModal.openModal()},goToPage(){document.querySelector("body").classList.remove("overflow-hidden"),this.$router.push({name:this.redirect.route,params:{name:this.redirect.name,id:this.redirect.id},alias:!0})}})},Ka=Va,Za=(a("ed89"),Object(U["a"])(Ka,Ga,Wa,!1,null,"fa0014c0",null)),Ya=Za.exports,Qa={components:{PanelMenuButton:Ha,CheckOrganizerSetup:Ya},data(){return{STATUSES:s["q"],showOrganizerModal:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{competition(){return this.competitions[this.$route.params.id]},organizerId(){return this.competition.organizer||null},ready(){return void 0!==this.competition},isMenuActive(){return["panel-competition-stoper","panel-competition-map"].includes(this.$route.name)},isResultsStatuses(){return"panel-competition-stoper"===this.$route.name&&this.competition.status<=4||"panel-competition-result"===this.$route.name&&this.competition.status<=4||this.competition.status>=4}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["ld"]])),{},{async updateCompetitionStatus(t){await this.UPDATE_COMPETITION(Object(v["a"])(Object(v["a"])({},this.competition),{},{status:t}))},checkOrganizer(){this.showOrganizerModal=!0},closeCompetition(){this.showOrganizerModal=!1,this.updateCompetitionStatus(s["q"].close)}})},Xa=Qa,Ja=(a("5c79"),Object(U["a"])(Xa,Ma,Da,!1,null,"24e103d6",null)),tn=Ja.exports,en=function(){var t=this,e=t._self._c;return t.showUpdate?e("div",{staticClass:"update-results"},[e("div",{staticClass:"update-results-content"},[e("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M17.1429 20.5625C17.1429 20.7232 17.0179 20.8571 16.8571 20.8571H15.1429C14.9821 20.8571 14.8571 20.7232 14.8571 20.5625V18.8661C14.8571 18.7054 14.9821 18.5714 15.1429 18.5714H16.8571C17.0179 18.5714 17.1429 18.7054 17.1429 18.8661V20.5625ZM17.125 17.2232C17.1161 17.3393 16.9821 17.4286 16.8214 17.4286H15.1696C15 17.4286 14.8661 17.3393 14.8661 17.2232L14.7143 13.1429C14.7143 13.0893 14.7411 13 14.8036 12.9554C14.8571 12.9107 14.9375 12.8571 15.0179 12.8571H16.9821C17.0625 12.8571 17.1429 12.9107 17.1964 12.9554C17.2589 13 17.2857 13.0714 17.2857 13.125L17.125 17.2232ZM17 8.88393C16.8036 8.51786 16.4196 8.28571 16 8.28571C15.5804 8.28571 15.1964 8.51786 15 8.88393L8.14286 21.4554C7.94643 21.8036 7.95536 22.2321 8.16071 22.5804C8.36607 22.9286 8.74107 23.1429 9.14286 23.1429H22.8571C23.2589 23.1429 23.6339 22.9286 23.8393 22.5804C24.0446 22.2321 24.0536 21.8036 23.8571 21.4554L17 8.88393Z",fill:"#FED25A"}})]),e("b",[t._v("Wyniki na stronie dla uczestników nie zostały zaktualizowane")])]),e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.updateResults()}}},[t._v(" Uaktualnij wyniki ")])],1):t._e()},an=[],nn={name:"PanelCompetitionUpdateResults",props:{competition:{type:Object,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["isResultsEdit"])),{},{showUpdate(){return!!(this.competition.status>4&&this.isResultsEdit)}}),mounted(){this.READ_RESULTS_EDIT_STATUS(this.competition.id)},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Ac"]])),Object(R["d"])([ce["A"]])),{},{async updateResults(){this.SET_RESULTS_EDIT_STATUS(!1),await Pt["a"].post(`panel/competitions/${this.competition.id}/results/update`)}})},sn=nn,on=(a("5da6"),Object(U["a"])(sn,en,an,!1,null,null,null)),rn=on.exports;const ln=a("7936"),cn=a("f93c"),dn=a("0b2b"),un=a("e278"),pn=a("0fbd"),mn=a("8cc4");var fn={components:{PanelCompetitionTopbar:tn,PanelCompetitionUpdateResults:rn},data(){return{ready:!1,routesIcons:{home:ln,slider:cn,users:dn,list:un,clock:pn},mobileRoutes:[{name:"panel-competition-dashboard",text:"Zawody",icon:ln},{name:"panel-competition-setting-info",text:"Ustawienia zawodów",icon:cn},{name:"panel-competition-setting-info",text:"Informacje o zawodach",icon:cn},{name:"panel-competition-setting-classifications",text:"Klasyfikacje, opłaty, limity",icon:cn},{name:"panel-competition-setting-numbers",text:"Numeracja startowa",icon:cn},{name:"panel-competition-setting-regulation",text:"Regulamin zawodów",icon:cn},{name:"panel-competition-list-new",text:"Lista startowa",icon:dn},{name:"panel-competition-result",text:"Wyniki",icon:un},{name:"panel-competition-stoper",text:"Stoper",icon:pn}
1,{name:"panel-competition-scanner-qr",text:"Skaner QR",icon:mn}]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","isZenMode"])),{},{competition(){return this.competitions[this.$route.params.id]},link(){const t=window.location.origin,{href:e}=this.$router.resolve({name:"minisite-landing",params:this.competition,alias:!0});return`${t}${e}`},currentPage(){var t;return null!==(t=this.mobileRoutes.find(t=>t.name===this.$route.name))&&void 0!==t?t:{}}}),async created(){await this.READ_PANEL_COMPETITION(this.$route.params.id),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["sc"]])),Object(R["d"])([ce["K"]]))},hn=fn,bn=(a("45c1"),Object(U["a"])(hn,Ra,La,!1,null,"24e4e3a7",null)),_n=bn.exports,vn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row mat40 flex-nowrap"},[e("div",{staticClass:"side-bar none-mobile"},[e("panel-competition-setting-sidebar")],1),e("router-view",{attrs:{competition:t.competition}})],1)])},gn=[],yn=function(){var t=this,e=t._self._c;return e("div",[e("base-button-group",[e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-info",params:t.competition,alias:!0})}}},[t._v(" Informacje"),e("br"),t._v("o zawodach ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-classifications",params:t.competition,alias:!0})}}},[t._v(" Klasyfikacje, "),e("br"),t._v("limity, opłaty ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-numbers",params:t.competition,alias:!0})}}},[t._v(" Numeracja "),e("br"),t._v("startowa ")])],1),e("base-button-group",{staticClass:"mat16"},[e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-rebates",params:t.competition,alias:!0})}}},[t._v(" Kody rabatowe ")])],1),e("base-button-group",{staticClass:"mat16"},[e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-register",params:t.competition,alias:!0})}}},[t._v(" Rejestracja ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-cycle",params:t.competition,alias:!0})}}},[t._v(" Zawody cykliczne ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-regulation",params:t.competition,alias:!0})}}},[t._v(" Regulamin zawodów ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-statement",params:t.competition,alias:!0})}}},[t._v(" Zgody "),e("br"),t._v("uczestników ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-confirmation",params:t.competition,alias:!0})}}},[t._v(" Potwierdzenie"),e("br"),t._v("rejestracji ")]),e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-layout",params:t.competition,alias:!0})}}},[t._v(" Wygląd ")])],1),t.isOperator?e("base-button-group",{staticClass:"mat16"},[e("base-button",{attrs:{btn11:"",novelty:""},on:{click:t.competitionSettingStoperFullscreen}},[t._v(" Pomiar czasu ")])],1):e("base-button-group",{staticClass:"mat16"},[e("base-button",{attrs:{btn11:"",novelty:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-stoper",params:t.competition,alias:!0})}}},[t._v(" Pomiar czasu ")])],1),e("base-button-group",{staticClass:"mat16"},[e("base-button",{attrs:{btn11:"",novelty:""},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-scaner-qr",params:t.competition,alias:!0})}}},[t._v(" Skaner QR ")])],1)],1)},Cn=[],wn={computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","competitions"])),{},{isOperator(){return this.user.operator},competition(){return this.competitions[this.$route.params.id]}}),methods:{competitionSettingStoperFullscreen(){const t=this.$router.resolve({name:"panel-competition-setting-stoper-fullscreen",params:this.competition,alias:!0});window.open(t.href,"_blank")}}},kn=wn,xn=Object(U["a"])(kn,yn,Cn,!1,null,null,null),On=xn.exports,An={components:{PanelCompetitionSettingSidebar:On},props:{competition:{type:Object,required:!0}}},Sn=An,zn=(a("1274"),Object(U["a"])(Sn,vn,gn,!1,null,"16c64d3e",null)),jn=zn.exports,In=function(){var t=this,e=t._self._c;return e("router-view")},Pn=[],En={},Tn=Object(U["a"])(En,In,Pn,!1,null,null,null),Nn=Tn.exports,Rn=function(){var t=this,e=t._self._c;return e("div",[e("user-header"),e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4 col-lg-3"},[e("div",{staticClass:"user-profile"},[e("user-sidebar")],1)]),e("div",{staticClass:"col-12 col-md-8 col-lg-9 user-content"},[t.isUserWidget&&t.competitionsIds.length>0&&!1===t.competition.isRemote?e("user-widget",{staticClass:"user-content__widget",scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" Twoje najbliższe zawody ")]},proxy:!0}
1,{key:"content",fn:function(){return[e("user-widget-competition",{attrs:{id:t.competition.id}})]},proxy:!0}],null,!1,3615267267)}):t._e(),e("user-navigation"),e("router-view")],1)])]),e("user-mobile-nav")],1)},Ln=[],Mn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box-user"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row user-header"},[e("div",{staticClass:"col-12 col-md-4 col-lg-3 d-flex justify-content-space-between align-items-center"},[e("div",{staticClass:"d-flex align-items-center"},[e("div",{staticClass:"user-header__img",on:{click:function(e){return t.$refs.avatar.click()}}},[e("input",{ref:"avatar",staticClass:"user-header__img-input",attrs:{type:"file"},on:{input:function(e){return t.inputAvatarHandler(e)}}}),t.user.avatar?e("img",{staticClass:"user-header__img-avatar",attrs:{src:t.user.avatar,alt:"Avatar"}}):e("strong",{staticClass:"user-header__img-initials"},[t._v(t._s((t.user.firstname||"").charAt(0))+t._s((t.user.lastname||"").charAt(0)))])]),e("div",{staticClass:"user-header__name"},[e("p",[t._v(" "+t._s(t.say.hello)+", "),e("br"),e("strong",{staticClass:"user-header__name-text"},[t._v(t._s(t.user.firstname))])])])])]),e("div",{staticClass:"hidden-md col-12 col-md-8 overflow-hidden col-lg-9 d-flex justify-content-space-between align-items-center"},[e("div",{staticClass:"user-header__nav"},[e("base-button",{staticClass:"user-header__nav-btn",class:{"user-header__nav-btn--active":t.$router.matched("user-competitions",t.$route)},attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"user-competitions-future",alias:!0})}}},[t._v(" "+t._s(t.say.competitions)+" ")]),e("base-button",{staticClass:"user-header__nav-btn",class:{"user-header__nav-btn--active":t.$router.matched("user-family",t.$route)},attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"user-family-children",alias:!0})}}},[t._v(" "+t._s(t.say.family)+" ")]),e("base-button",{staticClass:"user-header__nav-btn",class:{"user-header__nav-btn--active":t.$router.matched("user-insurance",t.$route)},attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"user-insurance-policies",alias:!0})}}},[t._v(" "+t._s(t.say.insurance)+" ")]),e("base-button",{staticClass:"d-md-none user-header__nav-btn",class:{"user-header__nav-btn--active":t.$router.matched("user-edit",t.$route)},attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"user-edit-profile",alias:!0})}}},[t._v(" "+t._s(t.say.profile)+" ")])],1)])])])])},Dn=[],$n=a("e78c"),Un={mixins:[$n["a"]],computed:Object(v["a"])({},Object(R["c"])(["say","user"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["R"]])),{},{async inputAvatarHandler(t){const{files:e}=t.target,[a]=await this.createBinaryFileList(e);await this.CREATE_USER_AVATAR(a)}})},Bn=Un,Fn=(a("cffc"),Object(U["a"])(Bn,Mn,Dn,!1,null,"4c277442",null)),qn=Fn.exports,Hn=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",{staticClass:"sidebar__attribute"},[t._v(" "+t._s(t.say.firstname_and_lastname)+" ")]),e("p",{staticClass:"sidebar__value"},[t._v(" "+t._s(t.user.firstname)+" "+t._s(t.user.lastname)+" ")])]),e("div",[e("p",{staticClass:"sidebar__attribute"},[t._v(" "+t._s(t.say.birthtime)+" ")]),e("p",{staticClass:"sidebar__value"},[t._v(" "+t._s(t._f("asDate")(t.user.birthTime))+" ")])]),e("div",[e("p",{staticClass:"sidebar__attribute"},[t._v(" "+t._s(t.say.email_address)+" ")]),e("p",{staticClass:"sidebar__value"},[t._v(" "+t._s(t.user.email)+" ")])]),e("div",[e("p",{staticClass:"sidebar__attribute"},[t._v(" "+t._s(t.say.city)+" ")]),e("p",{staticClass:"sidebar__value"},[t._v(" "+t._s(t.user.city)+", "+t._s(t._f("asNationality")(t.user.nationality))+" ")])]),t.$router.matched("user-edit",t.$route)?t._e():e("base-button",{staticClass:"sidebar__edit-btn",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"user-edit-profile",alias:!0})}}},[t._v(" "+t._s(t.say.edit_data)+" ")])],1)},Gn=[],Wn={computed:Object(v["a"])({},Object(R["c"])(["say","user"]))},Vn=Wn,Kn=(a("a580"),Object(U["a"])(Vn,Hn,Gn,!1,null,"cff8e8ac",null)),Zn=Kn.exports,Yn=function(){var t=this,e=t._self._c;return t.ifUserMore?t._e():e("div",{staticClass:"subnav"},[e("div",{staticClass:"d-flex align-items-center"}
1,[t.$router.matched("user-competitions",t.$route)?[e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-competitions-proposed",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.your_proposed_competitions)+" ")]),e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-competitions-future",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.your_future_competitions)+" ")]),e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-competitions-past",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.your_past_competitions)+" ")])]:t.$router.matched("user-edit",t.$route)?[e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-edit-profile",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.edit_personal_data)+" ")]),e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-edit-insurance",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.edit_insurance_data)+" ")])]:t.$router.matched("user-insurance",t.$route)?[e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-insurance-policies",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.your_insurnace_policies)+" ")])]:t.$router.matched("user-family",t.$route)?[e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-family-children",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.manage_family)+" ")]),e("router-link",{staticClass:"subnav__link",attrs:{to:{name:"user-family-parents",alias:!0},"active-class":"subnav__link--active"}},[t._v(" "+t._s(t.say.who_can_manage_me)+" ")])]:t._e()],2)])},Qn=[],Xn={computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{ifUserMore(){return"user-more"===this.$route.name}})},Jn=Xn,ti=(a("d5e6"),Object(U["a"])(Jn,Yn,Qn,!1,null,"53ca719d",null)),ei=ti.exports,ai=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mobile-bar d-lg-none"},[e("div",{staticClass:"mobile-bar-item",class:{"is-active":t.$router.matched("user-competitions",t.$route)},on:{click:function(e){return t.$router.push({name:"user-competitions-future",alias:!0})}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.0715 2C4.55509 2 4.19932 2.51802 4.3847 3L7.75415 11.7606C6.67025 12.8461 6 14.3448 6 16C6 19.3137 8.68629 22 12 22C15.3137 22 18 19.3137 18 16C18 12.6863 15.3137 10 12 10C11.9982 10 11.9964 10 11.9946 10L14.6869 3H18.5441L15.4361 11.0807C15.7258 11.2834 15.9968 11.5111 16.246 11.7606L19.6155 3C19.8008 2.51802 19.4451 2 18.9287 2H14.6869C14.2731 2 13.9021 2.25483 13.7535 2.64102L12.0001 7.2L10.2466 2.64102C10.0981 2.25483 9.72705 2 9.31328 2H5.0715ZM10.8833 10.1037L11.4644 8.59284L9.31328 3H5.45611L8.56404 11.0806C9.24668 10.6029 10.0333 10.2637 10.8833 10.1037ZM17 16C17 18.7614 14.7614 21 12 21C9.23858 21 7 18.7614 7 16C7 13.2386 9.23858 11 12 11C14.7614 11 17 13.2386 17 16Z",fill:"#4A4A4A"}})]),e("span",[t._v(t._s(t.say.competitions))])]),e("div",{staticClass:"mobile-bar-item",class:{"is-active":t.$router.matched("user-family",t.$route)},on:{click:function(e){return t.$router.push({name:"user-family-children",alias:!0})}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.0425 13.5651C13.4189 13.8446 12.7276 14 12 14C11.2739 14 10.5839 13.8452 9.96127 13.5668L5.8793 15.4223C5.3438 15.6657 5 16.1996 5 16.7878V17.5C5 18.3284 5.67157 19 6.5 19H11.5C11.7761 19 12 19.2239 12 19.5C12 19.7761 11.7761 20 11.5 20H6.5C5.11929 20 4 18.8807 4 17.5V16.7878C4 15.8075 4.57301 14.9176 5.46549 14.5119L8.92216 12.9407C7.75209 12.0255 7 10.6006 7 9C7 6.23858 9.23858 4 12 4C14.7614 4 17 6.23858 17 9C17 10.5929 16.2551 12.0119 15.0946 12.9275L17.6966 14.0403C17.9505 14.1489 18.0683 14.4427 17.9597 14.6966C17.8511 14.9505 17.5573 15.0683 17.3034 14.9597L14.0425 13.5651ZM17 19V16.5C17 16.2239 17.2239 16 17.5 16C17.7761 16 18 16.2239 18 16.5V19H20.5C20.7761 19 21 19.2239 21 19.5C21 19.7761 20.7761 20 20.5 20H18V22.5C18 22.7761 17.7761 23 17.5 23C17.2239 23 17 22.7761 17 22.5V20H14.5C14.2239 20 14 19.7761 14 19.5C14 19.2239 14.2239 19 14.5 19H17ZM16 9C16 11.2091 14.2091 13 12 13C9.79086 13 8 11.2091 8 9C8 6.79086 9.79086 5 12 5C14.2091 5 16 6.79086 16 9Z",fill:"#4A4A4A"}})]),e("span",[t._v(t._s(t.say.family))])]),e("div",{staticClass:"mobile-bar-item",class:{"
1is-active":t.$router.matched("user-messages",t.$route)},on:{click:function(e){return t.$router.push({name:"user-messages",alias:!0})}}},[e("div",{staticClass:"new-messages",class:{"is-active":t.isMessagesUnread}}),e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 21C13.2866 21 14.4116 20.1832 14.8292 19H16.4225C16.7723 19 17.1182 18.9266 17.4378 18.7845C18.6995 18.2238 19.2678 16.7464 18.707 15.4847L18 13.8939V11C18 8.38756 16.3304 6.16508 14 5.34141V5C14 3.89543 13.1046 3 12 3C10.8954 3 9.99999 3.89543 9.99999 5V5.34141C7.66961 6.16508 5.99999 8.38756 5.99999 11V13.8939L5.29299 15.4847C5.15092 15.8043 5.07751 16.1502 5.07751 16.5C5.07751 17.8807 6.1968 19 7.57751 19H9.17072C9.58711 20.1802 10.7106 21 12 21ZM10.2671 19H13.7329C13.3836 19.6045 12.7308 20 12 20C11.2679 20 10.6158 19.6033 10.2671 19ZM13 5.08296V5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5V5.08296C11.3252 5.0284 11.6593 5 12 5C12.3407 5 12.6748 5.0284 13 5.08296ZM6.99999 11C6.99999 8.23858 9.23857 6 12 6C14.7614 6 17 8.23858 17 11V14L17.0431 14.2031L17.7932 15.8908C18.1296 16.6478 17.7887 17.5343 17.0317 17.8707C16.8399 17.956 16.6323 18 16.4225 18H7.57751C6.74909 18 6.07751 17.3284 6.07751 16.5C6.07751 16.2901 6.12156 16.0826 6.2068 15.8908L6.9569 14.2031L6.99999 14V11Z",fill:"#4A4A4A"}})]),e("span",[t._v(t._s(t.say.messages))])]),e("div",{staticClass:"mobile-bar-item",class:{"is-active":t.$router.matched("user-more",t.$route)},on:{click:function(e){return t.$router.push({name:"user-more",alias:!0})}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 12.5V11.5C8 10.6716 7.32843 10 6.5 10H5.5C4.67157 10 4 10.6716 4 11.5V12.5C4 13.3284 4.67157 14 5.5 14H6.5C7.32843 14 8 13.3284 8 12.5ZM14 12.5V11.5C14 10.6716 13.3284 10 12.5 10H11.5C10.6716 10 10 10.6716 10 11.5V12.5C10 13.3284 10.6716 14 11.5 14H12.5C13.3284 14 14 13.3284 14 12.5ZM20 12.5V11.5C20 10.6716 19.3284 10 18.5 10H17.5C16.6716 10 16 10.6716 16 11.5V12.5C16 13.3284 16.6716 14 17.5 14H18.5C19.3284 14 20 13.3284 20 12.5ZM18.5 11C18.7761 11 19 11.2239 19 11.5V12.5C19 12.7761 18.7761 13 18.5 13H17.5C17.2239 13 17 12.7761 17 12.5V11.5C17 11.2239 17.2239 11 17.5 11H18.5ZM13 11.5C13 11.2239 12.7761 11 12.5 11H11.5C11.2239 11 11 11.2239 11 11.5V12.5C11 12.7761 11.2239 13 11.5 13H12.5C12.7761 13 13 12.7761 13 12.5V11.5ZM7 11.5C7 11.2239 6.77614 11 6.5 11H5.5C5.22386 11 5 11.2239 5 11.5V12.5C5 12.7761 5.22386 13 5.5 13H6.5C6.77614 13 7 12.7761 7 12.5V11.5Z",fill:"#4A4A4A"}})]),e("span",[t._v(t._s(t.say.more))])])])},ni=[],ii={data(){return{interval:null}},computed:Object(v["a"])({},Object(R["c"])(["say","isMessagesUnread"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Kc"]])),{},{readMessagesUnread(){this.READ_USER_MESSAGES_UNREAD(),this.interval=setInterval(()=>{this.READ_USER_MESSAGES_UNREAD()},9e5)}}),beforeDestroy(){clearInterval(this.interval)},mounted(){this.readMessagesUnread()}},si=ii,oi=(a("bcf1"),Object(U["a"])(si,ai,ni,!1,null,"38455871",null)),ri=oi.exports,li=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("b",[t._t("label")],2)]),e("div",{staticClass:"user-widget col-12"},[t._t("content")],2)])},ci=[],di={},ui=di,pi=(a("f741"),Object(U["a"])(ui,li,ci,!1,null,"b32f7c16",null)),mi=pi.exports,fi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row widget"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"col-12"},[e("div",{staticClass:"row widget__header"},[e("div",{staticClass:"col-12 col-lg-unset widget__header-competition"},[t._v(" "+t._s(t.competition.name)+" ")]),Object.keys(t.userPlayers).length&&(2==t.competition.status||t.competition.isRemote||t.competition.status>=5)?[e("div",{staticClass:"col-12 col-lg-unset widget__header-classification"},t._l(t.userPlayers,(function(a){return e("span",{key:a.id},[t._v(t._s(t.classifications[a.classification].namePl))])})),0)]:t._e()],2),e("div",{staticClass:"row widget__content"},[e("div",{staticClass:"col-12 col-lg-5"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-8"},[e("p",{staticClass:"widget__content-label widget__content-label--time"},[t._v(" "+t._s(t.say.competition_starts_in)+" ")]),e("div",{staticClass:"widget__content-value"},[e("h1",[t._v(t._s(t._f("asCounter")(t.competition.startedTime)))])]),e("p",{staticClass:"widget__content-label widget__content-label--start"},[t._v(" "+t._s(t.say.start)+" ")]),e("p",{staticClass:"widget__content-value widget__content-value--date"},[t._v(" "+t._s(t._f("asTime")(t.competition.startedTime))+" ")])]),e("div",{staticClass:"col-4"},[e("weather",{key:t.competition.id,attrs:{id:t.competition.id}})],1),e("hr",{staticClass:"widget__content-figure"}),t.isQRCodeVisible?e("base-button",{staticClass:"widget__content-qr-button",attrs:{btn1:"",disabled:t.startQrLoading},on:{click:t.openStartQrModal}},[t._v(" "+t._s(t.startQrLoading?"Ładowanie...":t.say.show_start_qr_code||"Wyświetl kod startowy")+" ")]):t._e()],1)]),e("div",{staticClass:"col-12 col-lg-7 widget__content-box"},[""!==t.competition.location?e("div",{staticClass:"widget__content-place"},[e("p",{staticClass:"widget__content-label widget__content-label--localization"},[t._v("Lokalizacja")]),t._v(" "+t._s(t.competition.location)+" ")]):t._e(),e("base-button",{staticClass:"widget__content-open",attrs:{btn5:"",icon:"fas fa-map-pin"},on:{click:function(e){return t.openLink(t.competition.mapGoogleLink)}}},[t._v(" Otwórz w Mapach Google ")]),e("div",{staticClass:"widget__content-map"},[e("widget-static-map",{ref:"staticMap",attrs:{lat:t.competition.locationLat,lng:t.competition.locationLng}})],1)],1)])]),t.ready?t._e():e("div",{staticClass:"col-12"},[t._m(0),t._m(1)]),e("modal",{ref:"startQrModal",staticClass:"start-qr-modal",attrs:{id:"startQrModal","body-class":"h-auto"}
1,on:{"modal-close":t.closeStartQrModal},scopedSlots:t._u([{key:"body",fn:function(){return[e("div",{staticClass:"start-qr-modal__content"},[t.startQrUrl?e("img",{staticClass:"start-qr-modal__image",attrs:{src:t.startQrUrl,alt:"Kod startowy QR"}}):t._e()])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{btn9:""},on:{click:function(e){return t.$refs.startQrModal.closeModal()}}},[t._v("Zamknij")])]},proxy:!0}])})],1)},hi=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row widget__header",staticStyle:{"min-height":"48px","box-sizing":"border-box"}},[e("div",{staticClass:"col-12 col-lg-unset widget__header-competition"},[t._v(" ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row widget__content"},[e("div",{staticClass:"col-12 col-lg-5"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-8"},[e("p",{staticClass:"widget__content-label base-skeleton-text base-skeleton-text--location",staticStyle:{"margin-top":"10px","margin-bottom":"8px"}}),e("p",{staticClass:"widget__content-value base-skeleton-text competition-box__description-title--skeleton"}),e("p",{staticClass:"widget__content-label--start base-skeleton-text base-skeleton-text--date"}),e("p",{staticClass:"widget__content-label--date base-skeleton-text base-skeleton-text--location",staticStyle:{"margin-top":"8px"}})]),e("div",{staticClass:"col-4"},[e("div",{staticClass:"widget__content-line"},[e("p",{staticClass:"widget__content-label base-skeleton-text competition-box__description-title--skeleton",staticStyle:{"margin-top":"10px","margin-bottom":"8px"}}),e("p",{staticClass:"widget__content-value widget__content-value--temp base-skeleton-text competition-box__description-title--skeleton"}),e("p",{staticClass:"widget__content-value widget__content-value--img base-skeleton-text competition-box__description-title--skeleton",staticStyle:{"margin-bottom":"8px"}})])]),e("hr",{staticClass:"widget__content-figure"})])]),e("div",{staticClass:"col-12 col-lg-7 widget__content-box"},[e("p",{staticClass:"widget__content-label base-skeleton-text base-skeleton-text--location",staticStyle:{"margin-left":"12px","margin-top":"10px","margin-bottom":"8px"}}),e("p",{staticClass:"base-skeleton-text competition-box__description-title--skeleton",staticStyle:{"margin-left":"12px","margin-bottom":"8px"}}),e("p",{staticClass:"base-skeleton-text competition-box__description-title--skeleton",staticStyle:{"margin-left":"12px","margin-bottom":"8px"}}),e("p",{staticClass:"base-skeleton-text competition-box__description-title--skeleton",staticStyle:{"margin-left":"12px","margin-bottom":"8px"}})])])}],bi=(a("2b3d"),a("9861"),a("0463")),_i=function(){var t=this,e=t._self._c;return null!==t.weather&&Object.keys(t.weather).length>1?e("div",{staticClass:"widget__content-line"},[e("p",{staticClass:"widget__content-label widget__content-label--wheater"},[t._v(" Prognoza ")]),e("div",{staticClass:"widget__content-value widget__content-value--img"},[e("img",{attrs:{src:a("e2b3")(`./${t.weather.weatherIcon}.png`)}})]),e("p",{staticClass:"widget__content-value widget__content-value--temp"},[t._v(" "+t._s(t.weather.realTemperatureDay)+"°C ")])]):t._e()},vi=[],gi={name:"Weather",props:{id:{type:Number,required:!0}},data(){return{weather:null}},created(){this.READ_COMPETITION_WEATHER(this.id).then(t=>this.weather=t)},methods:Object(v["a"])({},Object(R["b"])([g["Yb"]]))},yi=gi,Ci=(a("a49a"),Object(U["a"])(yi,_i,vi,!1,null,"56d882d2",null)),wi=Ci.exports,ki=function(){var t=this,e=t._self._c;return e("l-map",{staticClass:"widget-static-map",attrs:{center:t.center,zoom:t.zoom,options:t.mapOptions},on:{ready:t.onMapReady}},[e("l-tile-layer",{attrs:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}}),e("l-marker",{attrs:{"lat-lng":t.center,icon:t.markerIcon}})],1)},xi=[],Oi=a("2699"),Ai=a("a40a"),Si=a("4e2b"),zi=a("e11e"),ji=a.n(zi),Ii={name:"WidgetStaticMap",components:{LMap:Oi["a"],LTileLayer:Ai["a"],LMarker:Si["a"]},props:{lat:{type:Number,required:!0},lng:{type:Number,required:!0}},data(){return{zoom:13,mapOptions:{zoomControl:!1,dragging:!1,touchZoom:!1,doubleClickZoom:!1,scrollWheelZoom:!1,boxZoom:!1,keyboard:!1,attributionControl:!1},markerIcon:ji.a.divIcon({className:"",html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="36" viewBox="0 0 24 36"><path d="M12 0C5.373 0 0 5.373 0 12c0 9 12 24 12 24S24 21 24 12C24 5.373 18.627 0 12 0z" fill="#ff3d00"/><circle cx="12" cy="12" r="5" fill="#fff"/></svg>',iconSize:[24,36],iconAnchor:[12,36]})}},computed:{center(){return[this.lat,this.lng]}},methods:{onMapReady(t){this._map=t},refresh(){this.$nextTick(()=>{this._map&&this._map.invalidateSize()})}}},Pi=Ii,Ei=(a("aea3"),Object(U["a"])(Pi,ki,xi,!1,null,"11fb41ec",null)),Ti=Ei.exports,Ni=a("7c9b"),Ri={name:"UserCompetitionWidget",components:{Weather:wi,WidgetStaticMap:Ti,Modal:$t["a"]},mixins:[bi["a"]],props:{id:{type:Number,required:!0}},data(){return{userPlayersIds:[],ready:!1,startQrUrl:"",startQrLoading:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","say","user","classifications","players","limits","competitionsSettings"])),{},{competition(){return this.competitions[this.id]},userPlayers(){return Object(Ni["c"])(this.players,this.userPlayersIds)},isQRCodeVisible(){var t;return null===(t=this.competitionsSettings[this.id])||void 0===t?void 0:t.canQR}}),watch:{ready(t){t&&this.$refs.staticMap&&this.$refs.staticMap.refresh()}},beforeDestroy(){this.revokeStartQrUrl()},async created(){if(this.user&&this.user.roles.includes("ROLE_USER")&&this.id>0){const t=await this.READ_USER_COMPETITION_PLAYERS(this.id),e=[];
1if(t.length){for(const a of t)e.push(this.READ_CLASSIFICATION(this.players[a].classification));e.push(this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.id)),await Promise.all(e)}this.userPlayersIds=t}this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Gc"],g["xb"],g["Ob"]])),{},{openLink(t){window.open(t,"_blank")},revokeStartQrUrl(){this.startQrUrl&&(URL.revokeObjectURL(this.startQrUrl),this.startQrUrl="")},closeStartQrModal(){this.revokeStartQrUrl()},async openStartQrModal(){if(!this.startQrLoading){this.startQrLoading=!0,this.revokeStartQrUrl();try{const t=await Pt["a"].get("qr/generate/"+this.userPlayersIds[0],{responseType:"blob"}),e=t instanceof Blob?t:new Blob([t],{type:"image/png"});this.startQrUrl=URL.createObjectURL(e),this.$refs.startQrModal.openModal()}catch(t){}finally{this.startQrLoading=!1}}}})},Li=Ri,Mi=(a("74c8"),Object(U["a"])(Li,fi,hi,!1,null,"541ef836",null)),Di=Mi.exports,$i={data(){return{competitionsIds:[]}},components:{UserHeader:qn,UserSidebar:Zn,UserNavigation:ei,UserMobileNav:ri,UserWidget:mi,UserWidgetCompetition:Di},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{isUserWidget(){return["user-competitions-future","user-competitions-proposed","user-competitions-past"].includes(this.$route.name)},competition(){return this.competitions[this.competitionsIds[0]]}}),async created(){const{competitions:t}=await this.READ_USER_COMPETITIONS({type:"future"});this.competitionsIds=t},methods:Object(v["a"])({},Object(R["b"])([g["Fc"]]))},Ui=$i,Bi=(a("ff04"),Object(U["a"])(Ui,Rn,Ln,!1,null,"6da92d36",null)),Fi=Bi.exports,qi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row login__content"},[e("div",{staticClass:"col-12 col-lg-3"},[e("h1",{staticClass:"par15"},[t._v(" "+t._s(t.say.login)+" ")])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"login-section bg--gray row"},[e("div",{staticClass:"login-section__inputs col-12 col-lg-5"},[e("p",{staticClass:"mat32"},[t._v(" "+t._s(t.say.type_your_email_and_password)+" ")]),e("base-input-text",{staticClass:"mat24",attrs:{label:t.say.email_address,error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.credentials.email,callback:function(e){t.$set(t.credentials,"email",e)},expression:"credentials.email"}}),e("base-input-password",{staticClass:"mat24",attrs:{label:t.say.password,error:t.errors.plainPassword},on:{"update:error":function(e){return t.$set(t.errors,"plainPassword",e)}},model:{value:t.credentials.plainPassword,callback:function(e){t.$set(t.credentials,"plainPassword",e)},expression:"credentials.plainPassword"}}),t.awaiting2FA?[e("p",{staticClass:"mat24"},[t._v(" "+t._s(t.say.enter_auth_code||"Wpisz 6-cyfrowy kod z Google Authenticator")+" ")]),e("base-input-text",{staticClass:"mat24",attrs:{label:t.say.auth_code||"Kod weryfikacyjny",error:t.authCodeError,"without-error-message":""},on:{"update:error":function(e){t.authCodeError=e}},model:{value:t.credentials.authCode,callback:function(e){t.$set(t.credentials,"authCode",e)},expression:"credentials.authCode"}}),t.authCodeError?e("span",{staticClass:"error-message"},[t._v(" "+t._s(t.authCodeErrorMessage)+" ")]):t._e()]:t._e(),e("p",{staticClass:"mat16"},[t._v(" "+t._s(t.say.forgotten_password)+" "),e("router-link",{staticClass:"c-orange",attrs:{to:{name:"authentication-reset",alias:!0}}},[t._v(" "+t._s(t.say.reset_password)+" ")])],1)],2)]),e("div",{staticClass:"row login__buttons-box"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"login__btn-primary",attrs:{btn1:""},on:{click:function(e){return t.loginUser()}}},[t._v(" "+t._s(t.say.login_to_account)+" ")])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"login__btn-secondary",attrs:{btn4:""},on:{click:function(e){return t.$router.replace({name:"authentication-register",alias:!0})}}},[t._v(" "+t._s(t.say.create_new_account)+" ")])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"login__btn-cancel",attrs:{btn4:""},on:{click:function(e){return t.$router.back()}}},[t._v(" "+t._s(t.say.cancel)+" ")])],1)]),t.showRegisterWithoutLogin?e("div",{staticClass:"row register-without-account"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"d-inline-block"},[t._v(" "+t._s(t.say.fast_register_ask)+" ")]),e("p",{staticClass:"d-inline-block"},[t._v(" "+t._s(t.say.collect_results_ask)+" ")])]),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"register-without-account__btn",attrs:{btn4:""},on:{click:t.registerWithoutLogin}},[t._v(" "+t._s(t.say.apply_for_participation_without_account)+" ")])],1)]):t._e()])])])},Hi=[];function Gi(t){return t.roles.includes("ROLE_ADMIN")?{name:"panel-admin",alias:!0}:t.roles.includes("ROLE_OPERATOR")?{name:"panel-operator",alias:!0}:t.roles.includes("ROLE_ORGANIZER")?{name:"panel-organizer",alias:!0}:{name:"authentication-create-organizer",alias:!0}}function Wi(t){return"panel"===t.loginTo?Gi(t):{name:"user-compet
1itions-future",alias:!0}}var Vi=(t,e,a)=>{const n=t.query.to,{user:i}=l["a"].getters;i?a("panel"===n&&i?A.getParsed(Gi(i),hx):Wi(i)):a()},Ki={data(){return{credentials:{email:"",plainPassword:"",authCode:""},errors:{},awaiting2FA:!1,showRegisterWithoutLogin:!1}},metaInfo(){var t;return{title:(null===(t=this.say)||void 0===t?void 0:t.login)||""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","user","createNotifications","competitions"])),{},{isRedirect(){return this.$route.query.redirect},redirect(){var t;return this.$router.match(null!==(t=this.$route.query.redirect)&&void 0!==t?t:"")},competition(){var t;return this.competitions[null===(t=this.redirect)||void 0===t?void 0:t.params.id]},authCodeError(){return"2fa_code_required"===this.errors.authCode||"invalid_2fa_code"===this.errors.authCode},authCodeErrorMessage(){if(!this.errors.authCode)return"";const t={"2fa_code_required":"Wymagany kod weryfikacyjny 2FA",invalid_2fa_code:"Nieprawidłowy kod weryfikacyjny 2FA"};return this.say[this.errors.authCode]||t[this.errors.authCode]||this.errors.authCode}}),beforeRouteEnter:Vi,async created(){var t,e;null!==(t=this.redirect)&&void 0!==t&&t.params.id&&(await this.READ_COMPETITION(this.redirect.params.id),!this.$router.matched("minisite",this.redirect)||null!==(e=this.competition)&&void 0!==e&&e.cycle||(this.showRegisterWithoutLogin=!0))},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["sb"],g["t"],g["Lc"],g["Hb"]])),{},{async loginUser(){this.errors={};try{const t={email:this.credentials.email,plainPassword:this.credentials.plainPassword};this.awaiting2FA&&(t.authCode=this.credentials.authCode),await this.LOGIN_USER(t),this.awaiting2FA=!1,this.READ_USER_NOTIFICATIONS(),this.navigateAfterLogin()}catch(t){!t||"2fa_code_required"!==t.authCode&&"invalid_2fa_code"!==t.authCode||(this.awaiting2FA=!0),this.errors=t||{}}},async continueViaFacebook(){try{await this.CONTINUE_VIA_FACEBOOK(),this.READ_USER_NOTIFICATIONS(),this.navigateAfterLogin()}catch(t){console.log(t)}},navigateAfterLogin(){let t=Wi(this.user);!0!==this.createNotifications||this.isRedirect?this.user.roles.length?"panel"===this.$route.query.to?t=Gi(this.user):this.isRedirect&&(t=Object(v["a"])(Object(v["a"])({},this.redirect),{},{alias:!0})):t={name:"authentication-choose-profile",alias:!0}:t={name:"user-notifications",alias:!0},this.$router.push(t)},_keyListener(t){"Enter"===t.code&&this.loginUser()},registerWithoutLogin(){if(this.competition&&"new"===this.competition.frontFormType)this.$router.push({name:"minisite-register",params:this.competition,query:{skip:"true"},alias:!0});else{const t=this.$router.resolve({path:this.redirect.fullPath,query:{skip:"true"}});window.location.href=t.href}}}),mounted(){window.addEventListener("keypress",this._keyListener)},beforeDestroy(){window.removeEventListener("keypress",this._keyListener)}},Zi=Ki,Yi=(a("719a"),Object(U["a"])(Zi,qi,Hi,!1,null,"33911678",null)),Qi=Yi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row login__content"},[e("div",{staticClass:"col-12 col-lg-3"},[e("h1",{staticClass:"par15"},[t._v(" "+t._s(t.say.create_new_account)+" ")])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"login-section bg--gray row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"login-section__inputs"},[e("div",{staticClass:"row mat32"},[e("p",[t._v(t._s(t.say.type_your_email_and_password))])]),e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-12 col-lg-5"},[e("base-input-text",{attrs:{label:t.say.email_address,error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.credentials.email,callback:function(e){t.$set(t.credentials,"email",e)},expression:"credentials.email"}})],1)]),e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-12 col-lg-5"},[e("base-input-password",{attrs:{label:t.say.password,error:t.errors.plainPassword},on:{"update:error":function(e){return t.$set(t.errors,"plainPassword",e)}},model:{value:t.credentials.plainPassword,callback:function(e){t.$set(t.credentials,"plainPassword",e)},expression:"credentials.plainPassword"}})],1),e("div",{staticClass:"col-12 col-lg-4 login-section__password-hint"},[e("p",[t._v(t._s(t.say.password_should_contain))])])])])])]),"account_email_occupied"===t.errors.email?e("base-notification-local",{attrs:{negative:""},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.say[t.errors.email])+" ")]},proxy:!0},{key:"content",fn:function(){return[t._v(" "+t._s(t.say.troubles_with_login)+", "),e("router-link",{attrs:{to:{name:"authentication-reset",alias:!0}}},[t._v(" "+t._s(t._f("asLowerCase")(t.say.reset_your_password))+" ")]),t._v(" . ")]},proxy:!0}],null,!1,3117980037)}):t._e(),e("div",{staticClass:"row login__buttons-box"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"login__btn-primary",attrs:{btn1:""},on:{click:function(e){return t.registerUser()}}},[t._v(" "+t._s(t.say.step_next)+" ")])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"login__btn-secondary",attrs:{btn4:""},on:{click:function(e){return t.$router.replace({name:"authentication-login",alias:!0})}}},[t._v(" "+t._s(t.say.login_to_account)+" ")])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"login__btn-cancel",attrs:{btn4:""},on:{click:function(e){return t.$router.back()}}},[t._v(" "+t._s(t.say.cancel)+" ")])],1)])],1)])])},Ji=[],ts={data(){return{credentials:{email:"",plainPassword:""},errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["say","user"])),beforeRouteEnter:Vi,methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Nc"],g["t"]])),{},{async registerUser(){this.errors={};try{await this.REGISTER_USER(this.credentials),"panel"===this.$route.query.to?this.$router.push({name:"authentication-create-organizer",alias:!0}):this.$router.push({name:"authentication-choose-profile",alias:!0})}catch(t){this.errors=t}},async continueViaFacebook(){try{if(await this.CONTINUE_VIA_FACEBOOK(),this.user.roles.length||"panel"===this.$route.query.to)if("panel"===this.$route.query.to){const t=Gi(this.user);this.$router.push(t)}else{const t=Wi(this.user);this.$router.push(t)}else this.$router.push({name:"authentication-choose-profile",alias:!0})}catch(t){console.log(t)}},_keyListener(t){"Enter"===t.code&&this.registerUser()}}
1),mounted(){window.addEventListener("keypress",this._keyListener)},beforeDestroy(){window.removeEventListener("keypress",this._keyListener)}},es=ts,as=Object(U["a"])(es,Xi,Ji,!1,null,null,null),ns=as.exports,is=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row reset-password"},[e("div",{staticClass:"col-12 col-lg-3"},[e("h1",[t._v(t._s(t.say.reset_your_password))])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"row bg--gray reset-password__email-input"},[e("div",{staticClass:"col-12 col-lg-5 reset-password__hint"},[e("p",[t._v(t._s(t.say.enter_email_address_from_register))])]),e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-text",{attrs:{label:t.say.email_address,error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1)]),e("div",{staticClass:"row reset-password__box-buttons"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"box-buttons__reset-button",attrs:{btn1:""},on:{click:t.resetPassword}},[t._v(" "+t._s(t.say.reset_your_password)+" ")])],1),e("div",{staticClass:"col-12 col-lg-2 box-buttons__cancel"},[e("base-button",{attrs:{btn4:""},on:{click:function(e){return t.$router.back()}}},[t._v(" "+t._s(t.say.cancel)+" ")])],1)])])])])},ss=[],os={data(){return{email:"",errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["say"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Pc"]])),{},{async resetPassword(){this.errors={};try{await this.RESET_PASSWORD(this.email),this.$router.push({name:"authentication-reset-confirmation",alias:!0})}catch(t){this.errors=t}}})},rs=os,ls=Object(U["a"])(rs,is,ss,!1,null,null,null),cs=ls.exports,ds=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row reset-password"},[e("div",{staticClass:"col-12 col-lg-3"},[e("h1",[t._v(t._s(t.say.reset_your_password))])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"row bg--gray reset-password__confirmation"},[e("div",{staticClass:"col-12"},[e("h2",{staticClass:"confirmation__title"},[t._v(" "+t._s(t.say.check_email)+" ")])]),e("div",{staticClass:"col-12 confirmation__message"},[e("p",[t._v(t._s(t.say.password_reset_msg))])]),e("div",{staticClass:"col-12 col-lg-3"},[e("base-button",{staticClass:"confirmation__return-button",attrs:{btn4:""},on:{click:function(e){return t.$router.replace({name:"authentication-login",alias:!0})}}},[t._v(" "+t._s(t.say.return_to_login)+" ")])],1)])])])])},us=[],ps={computed:Object(v["a"])({},Object(R["c"])(["say"]))},ms=ps,fs=Object(U["a"])(ms,ds,us,!1,null,null,null),hs=fs.exports,bs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container matb45"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("h1",{staticClass:"mab16"},[t._v(" "+t._s(t.say.error_404)+" ")]),e("router-link",{attrs:{to:{name:"main-landing",alias:!0}}},[t._v(" "+t._s(t.say.go_home)+" ")])],1)])])},_s=[],vs={computed:Object(v["a"])({},Object(R["c"])(["say"]))},gs=vs,ys=Object(U["a"])(gs,bs,_s,!1,null,null,null),Cs=ys.exports,ws=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-3"}),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"row mat80 home__organize-button"},[e("div",{staticClass:"col-12"},[e("h1",[t._v(t._s(t.say.organize_competitions_with_us))])]),e("div",{staticClass:"col-12 col-lg-4 mat16"},[e("a",{attrs:{href:t.organizerUrl}},[e("base-button",{attrs:{btn2:""}},[t._v(" "+t._s(t.say.go_to_organizer_zone)+" ")])],1)])]),e("div",{staticClass:"row mat80 home__organize-button"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"podcast-banner"},[t._m(0),e("a",{attrs:{href:t.podcastUrl}},[e("base-button",{attrs:{btn2:""}},[t._v(" "+t._s(t.say.go_to_podcast)+" ")])],1),e("img",{staticClass:"podcast-banner-bg",attrs:{src:a("1ca6")}})])])])])])])},ks=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"podcast-banner-logos"},[e("img",{attrs:{src:a("f66d")}}),e("img",{attrs:{src:a("7d77")}})])}],xs={data(){return{organizerUrl:"https://organizator.dostartu.pl",podcastUrl:"https://open.spotify.com/show/3vaTPt1QEthuAEgdkTI2vH"}},computed:Object(v["a"])({},Object(R["c"])(["say"]))},Os=xs,As=(a("a9d3"),Object(U["a"])(Os,ws,ks,!1,null,"6f99907c",null)),Ss=As.exports,zs=function(){var t=this,e=t._self._c;return e("i")},js=[],Is={},Ps=Object(U["a"])(Is,zs,js,!1,null,null,null),Es=Ps.exports,Ts=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"max-width":"100vw"}},[e("div",{staticClass:"row nowrap-lg",staticStyle:{overflow:"hidden"}},[e("div",{staticClass:"col-12 col-lg-2"},[e("main-list-filters",{staticClass:"map-margin-top"})],1),e("div",{staticClass:"col-12 col-lg-10 mapWrap"},[t.loading?e("div",{staticClass:"loading"},[t._m(0)]):e("div",[t.showMap?e("l-map",{ref:"map",staticClass:"mapWrapper",attrs:{zoom:t.zoom,center:t.center,options:t.mapOptions},on:{ready:t.onReady}},[e("l-control",{staticClass:"custom-control",attrs:{position:"topleft"}},[e("base-button",{staticClass:"ma4",attrs:{btn6:""},on:{click:function(e){return t.toggleMap()}}},[e("span",{staticClass:"d-none d-md-inline-block"},[t._v("Zobacz listę")]),t._v(" "),e("i",{staticClass:"fas fa-list"})])],1),e("l-control-zoom",{attrs:{position:"topright"}}),e("l-tile-layer",{attrs:{url:t.url,attribution:t.attribution}}),e("v-marker-cluster",{ref:"markers"}
1,[t._l(t.filteredAllCompetitions,(function(a,n){return[e("CompetitionsMapMarker",{key:a,attrs:{index:n,selectedIndex:t.selectedIndex,competitionId:a},on:{markers:t.bounds,ref:t.markersRefs,click:function(e){return t.changeSlide(n)}}})]}))],2)],1):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&null!==t.selectedIndex,expression:"!loading && selectedIndex !== null"}],staticClass:"carousel-wrap"},[e("swiper",{ref:"mySwiper",staticClass:"carousel",attrs:{options:t.swiperOption},on:{slideChange:t.slideChanged}},t._l(t.filteredAllCompetitions,(function(a,n){return e("swiper-slide",{key:a,attrs:{index:n,id:a}},[t._v(" "+t._s(n)+" "),e("base-item-competition",{attrs:{id:a}})],1)})),1),e("base-button",{directives:[{name:"show",rawName:"v-show",value:t.boundsArr.length>t.selectedIndex+1,expression:"boundsArr.length > selectedIndex + 1"}],staticClass:"carousel-prev",attrs:{btn6:""}},[e("svg",{attrs:{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M1.70711 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H1.70711L4.85355 8.14645C5.04882 8.34171 5.04882 8.65829 4.85355 8.85355C4.65829 9.04882 4.34171 9.04882 4.14645 8.85355L0.146447 4.85355C-0.0488155 4.65829 -0.0488155 4.34171 0.146447 4.14645L4.14645 0.146447C4.34171 -0.0488155 4.65829 -0.0488155 4.85355 0.146447C5.04882 0.341709 5.04882 0.658291 4.85355 0.853553L1.70711 4Z",fill:"#4A4A4A"}})])]),e("base-button",{directives:[{name:"show",rawName:"v-show",value:0!==t.selectedIndex,expression:"selectedIndex !== 0"}],staticClass:"carousel-next",attrs:{btn6:""}},[e("svg",{attrs:{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10.2929 5H0.5C0.223858 5 0 4.77614 0 4.5C0 4.22386 0.223858 4 0.5 4H10.2929L7.14645 0.853553C6.95118 0.658291 6.95118 0.341709 7.14645 0.146447C7.34171 -0.0488155 7.65829 -0.0488155 7.85355 0.146447L11.8536 4.14645C12.0488 4.34171 12.0488 4.65829 11.8536 4.85355L7.85355 8.85355C7.65829 9.04882 7.34171 9.04882 7.14645 8.85355C6.95118 8.65829 6.95118 8.34171 7.14645 8.14645L10.2929 5Z",fill:"#4A4A4A"}})])])],1)])])])},Ns=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],Rs=function(){var t=this,e=t._self._c;return e("l-marker",{ref:"markersRef",attrs:{"lat-lng":[t.competition.locationLat,t.competition.locationLng],name:t.competition.name},on:{ready:function(e){return t.$emit("markers",[t.competition.locationLat,t.competition.locationLng])},click:function(e){return t.$emit("click")}}},[e("l-icon",{attrs:{"icon-anchor":[15,37]}},[e("img",{attrs:{src:a("8d90")}})])],1)},Ls=[],Ms=a("fbba"),Ds={components:{LMarker:Si["a"],LIcon:Ms["a"]},props:{competitionId:{type:Number,default:null},index:{type:Number,required:!0},selectedIndex:{type:Number,default:null}},data(){return{}},mounted:function(){this.$nextTick(()=>{this.$emit("ref",{refs:this.$refs.markersRef,index:this.index})})},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{competition(){return this.competitions[this.competitionId]}}),methods:{}},$s=Ds,Us=Object(U["a"])($s,Rs,Ls,!1,null,null,null),Bs=Us.exports,Fs=a("c8b6"),qs=a("2253"),Hs=a("ca9f"),Gs=a.n(Hs),Ws=a("7212"),Vs={name:"MainListMap",components:{MainListFilters:Ze,LMap:Oi["a"],LTileLayer:Ai["a"],LControlZoom:Fs["a"],LControl:qs["a"],CompetitionsMapMarker:Bs,"v-marker-cluster":Gs.a,Swiper:Ws["Swiper"],SwiperSlide:Ws["SwiperSlide"]},directives:{swiper:Ws["directive"]},data(){return{promotedCompetitions:[],futureCompetitions:[-5,-4,-3,-2,-1],pastCompetitions:[-5,-4,-3,-2,-1],allCompetitions:[],loading:!1,zoom:13,center:Object(zi["latLng"])(47.41322,-1.219482),url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',withPopup:Object(zi["latLng"])(47.41322,-1.219482),withTooltip:Object(zi["latLng"])(47.41422,-1.250482),currentZoom:11.5,currentCenter:Object(zi["latLng"])(47.41322,-1.219482),showParagraph:!1,mapOptions:{zoomSnap:.5,zoomControl:!1,scrollWheelZoom:!1},showMap:!0,staticAnchor:[15,37],boundsArr:[],selectedIndex:null,swiperOption:{loop:!1,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".carousel-prev",prevEl:".carousel-next"}},markersRefArray:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","time","filter","competitions"])),{},{swiper(){return this.$refs.mySwiper.$swiper},filteredAllCompetitions(){return this.allCompetitions.filter(t=>!1===this.competitions[t].isRemote)}}),watch:{filter:{deep:!0,immediate:!0,handler(){this.loading=!0,this.boundsArr=[],this.selectedIndex=null,this.searchCompet
1itions()}}},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Tc"]])),Object(R["d"])([ce["n"]])),{},{onReady(){this.$nextTick(()=>{this.$refs.map.mapObject.fitBounds(this.boundsArr,{padding:[50,50]})})},bounds(t){this.boundsArr.push(t)},changeSlide(t){this.selectedIndex=t;var e=this.$refs.markers.mapObject,n=this.markersRefArray[t]?this.markersRefArray[t].mapObject:void 0;e.eachLayer(t=>{t.setIcon(this.createIcon(a("8d90")))}),n.setIcon(this.createIcon(a("807c"))),this.swiper.slideTo(t,1e3,!1)},slideChanged(){var t=this.swiper.activeIndex,e=this.$refs.markers.mapObject,n=this.markersRefArray[t]?this.markersRefArray[t].mapObject:void 0,i=e.getVisibleParent(n);this.selectedIndex=t,e.eachLayer(t=>{t.setIcon(this.createIcon(a("8d90")))}),n.setIcon(this.createIcon(a("807c"))),this.$refs.map.mapObject.setView(this.boundsArr[t]),i instanceof zi["MarkerCluster"]?i.spiderfy():this._unspiderfyPreviousClusterIfNotParentOf(n)},createIcon(t){return new zi["Icon"]({iconUrl:t,iconAnchor:[16,37]})},_unspiderfyPreviousClusterIfNotParentOf(t){var e=this.$refs.markers.mapObject,a=e._spiderfied;a&&!this._clusterContainsMarker(a,t)&&a.unspiderfy()},_clusterContainsMarker(t,e){var a=e;while(a&&a!==t)a=a.__parent;return!!a},markersRefs(t){this.markersRefArray[t.index]=t.refs},toggleMap(){this.SET_FILTER({filter:Object(v["a"])({},this.filter),destination:"main-list"})},scrollToListTop(){const t=this.$refs.listTop;window.pageYOffset>t.getBoundingClientRect().top&&t.scrollIntoView({behavior:"smooth"})},checkCompetition(){return this.competitions[this.id]},searchCompetitions(){this.searchCompetitionsThrottled(this)},searchCompetitionsThrottled:qe.a.throttle(t=>t.searchCompetitionsDo(),250),async searchCompetitionsDo(){const[t,e,a]=await this.SEARCH_COMPETITIONS_LIST();this.promotedCompetitions=t,this.futureCompetitions=e,this.pastCompetitions=a,this.allCompetitions=[],this.allCompetitions.push(...t),this.allCompetitions.push(...e),this.allCompetitions.push(...a),this.allCompetitions=qe.a.uniq(this.allCompetitions),this.loading=!1},prev(){this.setPage(this.filter.page-1)},next(){this.setPage(this.filter.page+1)},setPage(t){this.SET_FILTER({filter:Object(v["a"])(Object(v["a"])({},this.filter),{},{page:t}),route:this.$route})}})},Ks=Vs,Zs=(a("71ab"),Object(U["a"])(Ks,Ts,Ns,!1,null,null,null)),Ys=Zs.exports,Qs=function(){var t=this,e=t._self._c;return t.ready?e("main",{staticClass:"container"},[e("div",{staticClass:"row"},[e("minisite-sidebar"),e("div",{staticClass:"col-12 col-md-9 mat33 pat15"},[e("div",{staticClass:"row minisite-contact"},[e("div",{staticClass:"col-12"},[e("h3",{staticClass:"pab16 inf"},[t._v(" "+t._s(t.say.contact_with_organizer)+" ")])]),e("div",{staticClass:"col-12 mab48"},[e("div",{staticClass:"bgarea pa24"},[e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"row d-md-none mab16"},[e("div",{staticClass:"col-12"},[t._v(" "+t._s(t.say.do_you_want_ask)+" ")])]),e("div",{staticClass:"row mab16"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-input"},[e("base-input-text",{attrs:{label:t.say.firstname_and_lastname,error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.mail.name,callback:function(e){t.$set(t.mail,"name",e)},expression:"mail.name"}})],1)]),e("div",{staticClass:"col-12 col-md-6 d-md-block"},[e("div",{staticClass:"form-description"},[t._v(" "+t._s(t.say.do_you_want_ask)+" ")])])]),e("div",{staticClass:"row mab16"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-input"},[e("base-input-text",{attrs:{label:t.say.email_address,error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.mail.email,callback:function(e){t.$set(t.mail,"email",e)},expression:"mail.email"}})],1)]),e("div",{staticClass:"col-12 col-md-6 d-md-block"},[e("div",{staticClass:"form-description"},[t._v(" "+t._s(t.say.organizer_email)+": "),e("strong",[t._v(t._s(t.competition.contactEmail))]),e("br"),t._v(" "+t._s(t.say.organizer_phone)+": "),e("strong",[t._v(t._s(t.competition.contactPhone))])])])]),e("div",{staticClass:"row mab16"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-input"},[e("base-input-area",{attrs:{label:t.say.message_content,rows:5,error:t.errors.message}
1,on:{"update:error":function(e){return t.$set(t.errors,"message",e)}},model:{value:t.mail.message,callback:function(e){t.$set(t.mail,"message",e)},expression:"mail.message"}})],1)])]),e("div",{staticClass:"row d-md-none mab16"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"form-description"},[t._v(" "+t._s(t.say.organizer_email)+": "),e("strong",[t._v(t._s(t.competition.contactEmail))]),e("br"),t._v(" "+t._s(t.say.organizer_phone)+": "),e("strong",[t._v(t._s(t.competition.contactPhone))])])])])])])])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-md-5 col-lg-4"},[e("base-button",{staticClass:"mab20",attrs:{btn1:""},on:{click:function(e){return t.send()}}},[t._v(" "+t._s(t.say.send)+" ")])],1)])])])],1)]):t._e()},Xs=[],Js=function(){var t=this,e=t._self._c;return e("div",{ref:"trackVisibility",staticClass:"col-12 col-md-3 mat33 pat15"},[t.visibility?t._e():e("div",{staticClass:"mtopbar patb15"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row flex-nowrap"},[e("div",{staticClass:"col-6 col-md-3"},[e("minisite-button",{staticClass:"mtopbar__button"})],1),e("div",{staticClass:"col-6 col-md-5"},[e("h4",[t._v(" "+t._s(t.competition.name)+" ")])]),e("div",{staticClass:"d-none d-md-block col-md-4"},[t.competition.location?e("p",[t._v(" "+t._s(t.competition.location)+" "),e("br"),t._v(" "+t._s(t._f("asTime")(t.competition.startedTime))+" ")]):e("p",[t._v(" "+t._s(t.say.whole_world)+" "),e("br"),t._v(" "+t._s(t._f("asTime")(t.competition.startedTime))+" ")])])])])]),e("div",{staticClass:"sidebar-wrapper"},[e("minisite-button"),e("div",{class:[2===t.competition.status||t.competition.status>=4?"bsh mat32":"bsh"]},[(t.competition.status<=3||t.competition.isRemote)&&![4439,4094,4095,5165,8515,8502,8519,8520,8526].includes(t.competition.id)?e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"minisite-list",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.start_list)+" ")]):t._e(),t.canDeclareResults(t.user,t.competition)?e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){t.competition.status<3?t.$router.push({name:"user-competitions-future",alias:!0}):t.$router.push({name:"user-competitions-past",alias:!0})}}},[t._v(" "+t._s(t.say.add_your_result)+" ")]):t._e(),4===t.competition.status||t.competition.isRemote?e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"minisite-results-pick-classification",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.results)+" ")]):t._e(),t.competition.statuteLinkPl||t.competition.statuteFilePl?e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({path:t.competition.statuteLinkPl||t.competition.statuteFilePl,tab:!0})}}},[t._v(" "+t._s(t.say.regulations)+" ")]):t._e(),e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"minisite-contact",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.contact_with_organizer)+" ")])],1),t.layout.logoLink?e("img",{staticClass:"mat48 w100",attrs:{src:t.layout.logoLink}}):t._e()],1)])},to=[],eo={data(){return{top:0}},computed:{isVisible(){return this.top>=0}},created(){window.addEventListener("scroll",this.updateTop)},mounted(){this.updateTop()},methods:{updateTop(){this.top=this.$refs.trackVisibility.getBoundingClientRect().top}},destroyed(){window.removeEventListener("scroll",this.updateTop)},watch:{isVisible(t){this.$emit("visibility:update",t)}}},ao=function(){var t=this,e=t._self._c;return e("div",[t.canRegister(t.competition,t.limits)?e("base-button",{attrs:{btn1:""},on:{click:t.handleSignUp}},[t._v(" "+t._s(t.say.sign_up)+" ")]):t.competition.status>=4?e("base-button",{attrs:{btn1:""},on:{click:function(e){return t.$router.push({name:"minisite-results-pick-classification",params:t.competition,alias:!0})}}},[t._v(" "+t._s(4===t.competition.status?t.say.statuses_4:t.say.results)+" ")]):t.canRegisterOutside(t.competition)?e("base-button-info",{on:{click:function(e){return t.$router.push({path:t.competition.websitePl,tab:!0})}},scopedSlots:t._u([{key:"info",fn:function(){return[t._v(" "+t._s(t.say.registrations_off_platform)+" ")]},proxy:!0}])},[t._v(" "+t._s(t.say.sign_up)+" ")]):t._e()],1)},no=[],io={mixins:[bi["a"]],computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","say","competitions","limitsBy","minisiteId"])),{},{competition(){return this.competitions[this.minisiteId]},limits(){return this.limitsBy(this.competition)[0]}}),methods:{handleSignUp(){const t={event:"zapisany",event_category:"zapiszsie"},e={name:"new"===this.competition.frontFormType?"minisite-register":"minisite-register-old",params:this.competition,alias:!0},a=this.$router.resolve(e).route.fullPath;this.$gtm.push(t),this.user?this.$router.push(e):this.$router.push({name:"authentication-login",alias:!0,query:{redirect:a},params:{id:this.competition.id}})}}},so=io,oo=Object(U["a"])(so,ao,no,!1,null,null,null),ro=oo.exports,lo={components:{MinisiteButton:ro},mixins:[eo,bi["a"]],data(){return{visibility:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","user","competitions","layoutsBy","minisiteId"])),{},{competition(){return this.competitions[this.minisiteId]},layout(){return this.layoutsBy(this.competition)[0]}}),created(){this.$on("visibility:update",this.setVisibility)},methods:{setVisibility(t){this.visibility=t}}},co=lo,uo=(a("92f2"),Object(U["a"])(co,Js,to,!1,null,"c07e58ee",null)),po=uo.exports,mo={components:{MinisiteSidebar:po},props:{id:{type:Number,required:!0}},data(){return{ready:!1,mail:{name:"",email:"",message:""},errors:{}}},metaInfo(){var t;return{title:this.say.contact_with_organizer+" - "+(null===(t=this.competition)||void 0===t?void 0:t.name)||""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","minisiteId"])),{},{competition(){return this.competitions[this.minisiteId]}}),async created(){await this.BOOTSTRAP_MINISITE(this.id),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["n"],g["Wc"]])),{},{async send(){this.errors={};try{await this.SEND_CONTACT_MAIL(this.mail),this.$router.go(-1)}catch(t){this.errors=t}}})},fo=mo,ho=(a("2674"),Object(U["a"])(fo,Qs,Xs,!1,null,"be329b66",null)),bo=ho.exports,_o=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container"},[e("h1",{staticClass:"remote-competition__title"},[t._v(" "+t._s(t.say.add_your_result)+" ")]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"row"},[e("h2",[t._v(t._s(t.player.firstname)+" "+t._s(t.player.lastname))])]),5165!==t.competition.id?[e("div",{staticClass:"row person__birthdate flex-column"},[e("p",[t._v(t._s(t.say.birthtime))]),e("strong",[t._v(t._s(t._f("asDate")(t.player.birthTime)))])]),e("div",{staticClass:"row person__location flex-column"},[e("p",[t._v(t._s(t.say.city))]),e("strong",[t._v(t._s(t.player.city))])]),e("div",{staticClass:"row person__email flex-column"},[e("p",[t._v(t._s(t.say.email_address))]),e("strong",[t._v(t._s(t.player.email))])]),e("div",{staticClass:"row person__classification flex-column"},[e("p",[t._v(t._s(t.say.classification))]),e("strong",[t._v(t._s(t.classification.namePl))])])]:t._e()],2),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"remote-competition__box bg--gray"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[t.config.isTime?e("h2",[t._v(" "+t._s(t.say.your_time)+" ")]):e("h2",[t._v(" "+t._s(t.say.your_distance)+" ")])])]),t.config.isTime?e("div",{staticClass:"row remote-competition__box-time"},[e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-time",{attrs:{label:"Twój czas",error:t.errors.declaredTime}
1,on:{"update:error":function(e){return t.$set(t.errors,"declaredTime",e)}},model:{value:t.declaredTime,callback:function(e){t.declaredTime=e},expression:"declaredTime"}})],1)]):t._e(),t.config.isDistance?e("div",{staticClass:"row remote-competition__box-distance"},[e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-text",{attrs:{label:t.say.distance+" [km]",error:t.errors.declaredDistance,hint:"00.0"},on:{"update:error":function(e){return t.$set(t.errors,"declaredDistance",e)}},model:{value:t.declaredDistance,callback:function(e){t.declaredDistance=e},expression:"declaredDistance"}})],1)]):t._e(),t.config.isFile?e("div",{staticClass:"row remote-competition__box-file"},[e("div",{staticClass:"col-12 col-lg-5 remote-competition__hint"},[5165===t.competition.id?e("p",[t._v(" Dodaj plik który umożliwi organizatorowi weryfikację twojego wyniku np. widok z Endomondo. ")]):e("p",[t._v(" "+t._s(t.say.add_file_to_verify)+" ")])]),e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-filearea",{attrs:{error:t.errors.files},on:{"update:error":function(e){return t.$set(t.errors,"files",e)}},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}})],1)]):t._e(),e("div",{staticClass:"row remote-competition__box-description"},[e("div",{staticClass:"col-12 col-lg-5 remote-competition__hint"},[t._v(" "+t._s(t.say.you_can_add_description)+" ")]),e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-area",{attrs:{rows:10,label:t.say.description,error:t.errors.declaredDescription},on:{"update:error":function(e){return t.$set(t.errors,"declaredDescription",e)}},model:{value:t.declaredDescription,callback:function(e){t.declaredDescription=e},expression:"declaredDescription"}})],1)])]),t.config.isAddress?e("div",{staticClass:"shipping-address bg--gray mat24"},[e("div",{staticClass:"row"},[e("p",[t._v(t._s(t.say.shipping_address))])]),e("div",{staticClass:"row shipping-address__street"},[e("div",{staticClass:"col-12 col-lg-5 shipping-address__hint"},[t._v(" "+t._s(t.say.add_address_hint)+" ")]),e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-text",{attrs:{label:t.say.street,error:t.errors.street},on:{"update:error":function(e){return t.$set(t.errors,"street",e)}},model:{value:t.addressInfo.street,callback:function(e){t.$set(t.addressInfo,"street",e)},expression:"addressInfo.street"}})],1)]),e("div",{staticClass:"row shipping-address__number"},[e("div",{staticClass:"col-6 col-lg-3"},[e("base-input-text",{staticClass:"mar15",attrs:{label:t.say.house_number,error:t.errors.houseNumber},on:{"update:error":function(e){return t.$set(t.errors,"houseNumber",e)}},model:{value:t.addressInfo.houseNumber,callback:function(e){t.$set(t.addressInfo,"houseNumber",e)},expression:"addressInfo.houseNumber"}})],1),e("div",{staticClass:"col-6 col-lg-3"},[e("base-input-text",{staticClass:"mal15",attrs:{label:t.say.flat_number,error:t.errors.flatNumber},on:{"update:error":function(e){return t.$set(t.errors,"flatNumber",e)}},model:{value:t.addressInfo.flatNumber,callback:function(e){t.$set(t.addressInfo,"flatNumber",e)},expression:"addressInfo.flatNumber"}})],1)]),e("div",{staticClass:"row shipping-address__location"},[e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-text",{attrs:{label:t.say.city,error:t.errors.city},on:{"update:error":function(e){return t.$set(t.errors,"city",e)}},model:{value:t.addressInfo.city,callback:function(e){t.$set(t.addressInfo,"city",e)},expression:"addressInfo.city"}})],1)]),e("div",{staticClass:"row shipping-address__zip-code"},[e("div",{staticClass:"col-6 col-lg-3"},[e("base-input-text",{staticClass:"mar15",attrs:{label:t.say.zip_code,error:t.errors.postcode},on:{"update:error":function(e){return t.$set(t.errors,"postcode",e)}},model:{value:t.addressInfo.postcode,callback:function(e){t.$set(t.addressInfo,"postcode",e)},expression:"addressInfo.postcode"}})],1)]),e("div",{staticClass:"row shipping-address__country"},[e("div",{staticClass:"col-12 col-lg-6"},[e("div",{staticClass:"input-field input-field--border-none"},[e("label",{staticClass:"input-field__label input-field__label--show"},[t._v(t._s(t.say.country))]),e("base-input-select",{staticStyle:{width:"100%"},attrs:{options:t.countries,clearable:!1,label:t.say.country,reduce:t=>t.id,error:t.errors.country}
1,on:{"update:error":function(e){return t.$set(t.errors,"country",e)}},model:{value:t.addressInfo.country,callback:function(e){t.$set(t.addressInfo,"country",e)},expression:"addressInfo.country"}})],1)])])]):t._e(),e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4 remote-competition__button"},[e("base-button",{attrs:{btn1:"",loading:t.loading},on:{click:t.addResult}},[t._v(" "+t._s(t.say.add_result)+" ")])],1)])])])]):t._e()},vo=[],go={props:{token:{type:String,default:""}},data(){return{declaredDescription:"",declaredDistance:"",ready:!1,files:[],errors:{},countries:p,loading:!1,playerId:null,config:null,addressInfo:{},declaredTime:{hours:"",minutes:"",seconds:"",milliseconds:""}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","players","classificationsBy","competitions","minisiteId"])),{},{player(){return this.players[this.playerId]},classification(){return this.classificationsBy(this.player)[0]},competition(){return this.competitions[this.minisiteId]}}),async created(){try{this.playerId=await this.READ_PLAYER(this.token),await this.READ_CLASSIFICATION(this.player.classification)}catch(r){return void this.$router.push({name:"minisite-landing",alias:!0})}const[t]=await Promise.all([this.READ_DECLARE_RESULT_CONFIG(this.classification.competition),this.BOOTSTRAP_MINISITE(this.classification.competition)]);this.config=t;const{street:e="",houseNumber:a="",flatNumber:n="",city:i="",postcode:s="",country:o=""}=this.player;this.addressInfo={street:e,houseNumber:a,flatNumber:n,city:i,postcode:s,country:o},this.ready=!0},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["wc"],g["xb"],g["Hb"],g["n"],g["Zb"],g["V"],g["U"],g["Y"]])),Object(R["d"])([ce["m"]])),{},{async addResult(){this.loading=!0;const t=[];this.config.isAddress&&t.push(this.DECLARE_ADDRESS({token:this.token,address:Object(v["a"])({},this.addressInfo)})),this.config.isFile&&t.push(this.DECLARE_FILES({token:this.token,files:this.files}));const e={declaredDescription:this.declaredDescription,declaredDistance:Number.parseFloat(this.declaredDistance.replace(",",".")),declaredTime:f.a.duration(this.declaredTime).valueOf()?Number.parseInt(f.a.duration(this.declaredTime).valueOf()/10,10):null};t.push(this.DECLARE_RESULT({result:e,token:this.token}));const a=await Promise.all(t);for(const n of a)n&&(this.errors=Object.assign(this.errors,n));for(const n of Object.values(this.errors))if(n)return void(this.loading=!1);this.loading=!1,this.SET_ENTITIES({players:{[this.player.id]:Object(v["a"])(Object(v["a"])({},this.player),{},{declaredTime:10*e.declaredTime,declaredDistance:e.declaredDistance})}}),this.$router.push({name:"minisite-declare-result-confirmation",params:{playerId:this.playerId,isTimeCompetition:Number(this.config.isTime)},alias:!0})}})},yo=go,Co=Object(U["a"])(yo,_o,vo,!1,null,null,null),wo=Co.exports,ko=function(){var t=this,e=t._self._c;return e("main",{ref:"minisite-top",staticClass:"container"},[e("div",{staticClass:"row justify-content-start"},[t.ready?e("minisite-sidebar",{attrs:{id:t.id}}):t._e(),t.ready?t._e():e("div",{staticClass:"col-12 col-md-3 mat33 pat15"},[e("div",{staticClass:"minisite-sidebar--skeleton"})]),e("div",{staticClass:"col-12 col-md-8 col-lg-9 mat48"},[t.ready&&!t.competitionSetting[t.lang+"On"]?e("div",{staticClass:"row mab32"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"nolang"},[e("p",[t._v(" "+t._s(t.say.translation_not_provided_by_organizer)+" ")])])])]):t._e(),t.ready&&t.competition.isRemote&&4762!==t.competition.id?e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"bg--green remote-competition"},[e("div",{staticClass:"row justify-content-space-between"},[t._m(0),e("div",{staticClass:"col-12 col-lg-7 remote-competition__description"},[e("div",{staticClass:"remote-competition__description-header"},[t._v(" "+t._s(t.say.remote_competition)+" ")]),e("div",[t._v(" "+t._s(t.say.remote_competition_information)+" ")])])])])])]):t._e(),t.ready?e("div",{staticClass:"row minisite-section minisite-section--without-padding"},[e("div",{staticClass:"col-12"},["registration"===t.competition.formType?e("div",{staticClass:"row competition__info"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"pair-lbl pair-lbl--no-margin"},[t._v(" "+t._s(t.say.competition_status)+" ")]),2===t.competition.status&&0===t.limits.playersAvailable?e("p",{staticClass:"pair-inf tc--negative"},[t._v(" "+t._s(t.say.statuses_3)+" ")]):e("p",{staticClass:"pair-inf",class:{"tc--positive":[2,6].includes(t.competition.status),"tc--negative":![2,6].includes(t.competition.status)}},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")])]),t.competition.preStartedTime?[e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.duration_of_competition)+" ")]),e("p",{staticClass:"pair-inf"},[t._v(" "+t._s(t._f("asDate")(t.competition.preStartedTime))+" - "),e("span",{staticClass:"pair-inf-countdown"},[t._v(t._s(t._f("asDate")(t.competition.startedTime)))])])])]:3===t.competition.status?[e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.registration_end_in)+" ")]),e("p",{staticClass:"pair-inf pair-inf-countdown"},[t._v("0d 0g 0m")])])]:[e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.registration_end_in)+" ")]),e("p",{staticClass:"pair-inf pair-inf-countdown"},[t._v(" "+t._s(t._f("asCounter")(t.competition.provisionTime))+" ")])])],e("div",{staticClass:"col-12 col-lg-3"},[3===t.competition.status&&t.limits.playersLimit>0||2===t.competition.status&&0===t.limits.playersAvailable?[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.available)+" ")]),0===t.limits.playersAvailable?e("p",{staticClass:"pair-inf tc--negative"},[t._v(" "+t._s(t.say.age_limit_none)+" ")]):e("p",{staticClass:"pair-inf tc--negative"},[t._v(" "+t._s(t.say.time_is_up)+" ")])]:[t.canRegister(t.competition,t.limits)&&!0!==t.limits.playersAvailable?[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.available)+" ")]),e("p",{staticClass:"pair-inf"},[e("span",{staticClass:"pair-inf-countdown"},[t._v(t._s(t.limits.playersAvailable))]),e("span",[t._v("/"+t._s(t.limits.playersLimit))])])]:[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.number_of_participants)+" ")]),e("p",{staticClass:"pair-inf"},[t._v(" "+t._s(t.limits.playersUnavailable)+" ")])]]],2)],2):t._e(),e("div",{staticClass:"row competition__info"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.location)+" ")]),t.competition.location?e("p",{staticClass:"pair-inf pair-inf--wrap"},[t._v(" "+t._s(t.competition.location)+" ")]):e("p",{staticClass:"pair-inf pair-inf--wrap"},[t._v(" "+t._s(t.say.whole_world)+" ")])]),e("div",{staticClass:"col-12 col-lg-4"},[t.competition.websitePl?[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.competition_website)+" ")]),e("p",{staticClass:"pair-inf cpointer",attrs:{href:t.competition.websitePl},on:{click:function(e){return t.$router.push({path:t.competition.websitePl,tab:!0})}}},[t._v(" "+t._s(t.competition.websitePl)+" ")])]:t._e()],2),e("div",{staticClass:"col-12 col-lg-3"},[t.competition.preStartedTime?t._e():[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.start)+" ")]),t.competition.startedTime?e("p",{staticClass:"pair-inf"},[t._v(" "+t._s(t._f("asTime")(t.competition.startedTime))+" ")]):t._e()]],2)]),e("div",{staticClass:"row competition__info"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.organizer)+" ")]),e("p",{staticClass:"pair-inf",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.$router.push({name:"main-site-organizer",params:t.organizer,alias:!0})}}},[t._v(" "+t._s(t.organizer.name)+" ")])]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.organizer_email)+" ")]),e("p",{staticClass:"pair-inf pair-inf--wrap pointer",on:{click:function(e){return t.$router.push({name:"minisite-contact",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.competition.contactEmail)+" ")])]),e("div",{staticClass:"col-12 col-lg-3"},[e("p",{staticClass:"pair-lbl"},[t._v(" "+t._s(t.say.organizer_phone)+" ")]),e("p",{staticClass:"pair-inf"},[t._v(" "+t._s(t.competition.contactPhone)+" ")])])])])]):e("div",{staticClass:"row minisite-section minisite-section--without-padding"},[t._m(1)]),t.ready&&t.transferablePlayers.length?e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"boxremarks"},[e("h4",[t._v("Przekaż start")]),e("p",{staticClass:"mab16"},[t._v("Nie możesz wystartować? Przekaż swój opłacony start innej osobie.")]),t._l(t.transferablePlayers,(function(a){return e("div",{key:a.id,staticClass:"mab8"},[e("base-button",{attrs:{btn2:"",short:""},on:{click:function(e){return t.$router.push({name:"player-transfer-start",params:{competitionId:t.competition.id,playerId:a.id}})}}},[t._v(" Przekaż start "),t.transferablePlayers.length>1?[t._v(" — "+t._s(a.firstname)+" "+t._s(a.lastname)+" ")]:t._e()],2)],1)}))],2)])]):t._e(),t.ready&&t.competition.remarksPl?e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"boxremarks"},[e("h4",[t._v(t._s(t._f("asUpperCase")(t.say.attention)))]),e("div",{domProps:{innerHTML:t._s(t.sanitizeHtml(t.$options.filters.asLink(t.$options.filters.asLang(t.competition,"remarks",t.lang))))}})])])]):t._e(),e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12"},[e("h4",{staticClass:"mab16"},[t._v(" "+t._s(t.say.classifications)+" ")]),t.ready?t._l(t.classifications,(function(a){return e("base-item-classification",{key:a.id,attrs:{id:a.id,"competition-id":t.id,"is-light":""}})})):t._l(1,(function(a){return e("base-item-classification",{key:a,attrs:{id:0,"competition-id":t.id,"is-light":""}})}))],2)]),t.ready&&t.competition.descriptionPl?e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12 pre-line",domProps:{innerHTML:t._s(t.sanitizeHtml(t.$options.filters.asLink(t.$options.filters.asLang(t.competition,"description",t.lang))))}})]):t._e(),t.ready&&t.isGpxTrack?e("div",{staticClass:"row minisite-section"},[t.isReadyMap?e("div",{staticClass:"col-12 mab16"},[e("h4",[t._v(t._s(t.say.map))])]):t._e(),t.isReadyMap?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row minisite-section__nav"},t._l(t.classifications,(function(a){return e("div",{key:a.id,staticClass:"minisite-section__nav-btn",class:{"minisite-section__nav-btn--active":t.selectedClassification.id===a.id},on:{click:function(e){t.selectedClassification=a}}},[t._v(" "+t._s(a["name"+(t.lang.charAt(0).toUpperCase()+t.lang.slice(1))])+" ")])})),0)]):t._e(),e("div",{staticClass:"col-12"},[e("map-competition",{attrs:{"disable-scroll":"",competition:t.competition,classifications:t.classifications,"selected-classification":t.selectedClassification,"read-only":"",fullscreenable:!1},on:{"update:selectedClassification":function(e){t.selectedClassification=e},"update:selected-classification":function(e){t.selectedClassification=e},"map:ready":function(e){t.isGpxTrack=e,t.isReadyMap=e}},scopedSlots:t._u([{key:"optional-button",fn:function(){return[e("l-control",{attrs:{position:"bottomright"}},[t.gpxFiles[t.selectedClassification.id]?e("base-button-download",{staticClass:"minisite-section__btn-download",attrs:{disabled:null===t.gpxFiles[t.selectedClassification.id].url,url:t.gpxFiles[t.selectedClassification.id].url,"file-name":t.selectedClassification.namePl+".gpx"}},[t._v(" "+t._s(t.say.download_gpx_track)+" ")]):t._e()],1)]},proxy:!0}],null,!1,3013377069)})],1)]):t.ready&&t.competition.locationLat&&t.competition.locationLng&&t.baseLocationPoint?e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12"},[e("h4",{staticClass:"mab16"},[t._v(" "+t._s(t.say.location)+" ")]),e("div",{staticClass:"minisite-section__map"},[e("base-map",{attrs:{"disable-scroll":"",lat:t.competition.locationLat,lng:t.competition.locationLng,fullscreenable:!1,zoom:12}},t._l(t.points,(function(a){return e("map-competition-point",{key:a.id,attrs:{"read-only":"",point:a,"competition-id":t.id,"selected-classification-id":t.selectedClassification.id}})})),1)],1)])]):t._e(),t.ready&&t.nextInCycleIds.length?e("div",{staticClass:"row minisite-section"},[e("div",{staticClass:"col-12"},[e("h4",{staticClass:"mab0"},[t._v(" "+t._s(t.say.other_cycle_competitions)+" ")]),e("div",{staticClass:"row cycles pab25"},t._l(t.nextInCycle,(function(t){return e("base-item-competition-small",{key:t.id,attrs:{id:t.id}})})),1)])]):t._e(),t.ready?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("facebook-comments",{attrs:{settings:{href:t.competition.permaLink}}})],1)]):t._e()])],1)])},xo=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-lg-5 d-flex justify-content-center"},[e("img",{staticClass:"remote-competition__image",attrs:{src:a("8cb0")}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"row competition__info"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"pair-lbl pair-lbl--no-margin pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})]),e("div",{staticClass:"col-12 col-lg-3"},[e("p",{staticClass:"pair-lbl pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})])]),e("div",{staticClass:"row competition__info"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"pair-lbl pair-lbl--no-margin pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})]),e("div",{staticClass:"col-12 col-lg-3"},[e("p",{staticClass:"pair-lbl pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})])]),e("div",{staticClass:"row competition__info"},[e("div",{staticClass:"col-12 col-lg-5"},[e("p",{staticClass:"pair-lbl pair-lbl--no-margin pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"pair-lbl pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})]),e("div",{staticClass:"col-12 col-lg-3"},[e("p",{staticClass:"pair-lbl pair-lbl--skeleton"}),e("p",{staticClass:"pair-inf pair-inf--skeleton"})])])])}],Oo=function(){var t=this,e=t._self._c;return t.ready?e("base-map",{staticClass:"map-container__map",class:{h100i:t.isZenMode},attrs:{zoom:12,lat:t.competition.locationLat,lng:t.competition.locationLng,fullscreenable:t.fullscreenable,"disable-scroll":t.disableScroll},on:{ready:function(e){t.map=e,t.$emit("ready",e)}}},[t._l(t.points,(function(a){return e("map-competition-point",{key:a.id,attrs:{"read-only":t.readOnly,point:a,"competition-id":t.competition.id,"selected-classification-id":t.selectedClassification&&t.selectedClassification.id},on:{"delete-point":function(e){return t.$emit("delete-point",e)}}})})),t.map?e("base-map-track",{attrs:{classifications:t.classifications,map:t.map,"selected-classification-id":t.selectedClassification&&t.selectedClassification.id},on:{trackClick:t.trackClickHandler}}):t._e(),t._t("optional-button"),t._v("> ")],2):t._e()},Ao=[];function So(t){const e={};for(const n of t){var a;const t=null!==(a=e[n.location])&&void 0!==a?a:{location:n.location,trackpoints:{}};t.trackpoints[n.type]=n.id,e[n.location]=t}return e}var zo=function(){var t=this,e=t._self._c;return e("base-map-marker",{attrs:{lat:t.location.lat,lng:t.location.lng,point:t.point,"selected-classification-id":t.selectedClassificationId,"read-only":t.readOnly},on:{"change:latlng":function(e){return t.updateLocationLatLng(e)},click:function(e){t.popup=!t.popup}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._l(t.types,(function(a,n){return[t.hasType(a)?e("div",{key:a,class:{icon:!0,["icon--"+n]:!0,disabled:t.hasType(a)&&!t.hasSelectedClassification(a)}}):t._e()]}))]},proxy:!0},{key:"popup",fn:function(){return[t._l(t.types,(function(a){return e("base-button",{key:a,class:{button:!0,"button--enabled":t.hasType(a)&&t.hasSelectedClassification(a
1),"button--disabled":t.hasType(a)&&!t.hasSelectedClassification(a)},attrs:{btn11:"",badge:Object.entries({fas:!0,"fa-map-marker-alt":a===t.types.start,"fa-flag-checkered":a===t.types.meta,"fa-stopwatch":a===t.types.checkpoint,"fa-utensils":a===t.types.buffet,"fa-undo":a===t.types.return,"fa-exchange-alt":a===t.types.change,"fa-users":a===t.types.fans,"fa-id-card":a===t.types.office,"fa-parking":a===t.types.parking}).filter(([t,e])=>e).map(([t])=>t).join(" ")},on:{click:function(e){return t.toggleType(a)}}},[t._v(" "+t._s(t.typesNames[a])+" ")])})),e("div",{staticClass:"line mat4"}),e("base-button",{staticClass:"button mat4",attrs:{btn11:"",badge:"fas fa-trash-alt"},on:{click:function(e){return t.$emit("delete-point",t.point)}}},[t._v(" Usuń punkt ")])]},proxy:!0}])})},jo=[],Io={props:{point:{type:Object,required:!0},competitionId:{type:Number,default:null},selectedClassificationId:{type:Number,default:null},readOnly:{type:Boolean,default:!1}},data(){return{popup:!1,types:s["s"],typesNames:{[s["s"].start]:"Start",[s["s"].meta]:"Meta",[s["s"].checkpoint]:"Punkt kontrolny",[s["s"].buffet]:"Bufet",[s["s"].return]:"Nawrót",[s["s"].change]:"Strefa zmian",[s["s"].fans]:"Strefa kibica",[s["s"].office]:"Biuro zawodów",[s["s"].parking]:"Parking"}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["trackpoints","locations","competitions","classificationsBy"])),{},{competition(){return this.competitions[this.competitionId]},classifications(){return this.classificationsBy(this.competition)},selectedClassification(){return this.$store.getters.classifications[this.selectedClassificationId]},location(){return this.locations[this.point.location]}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["nd"],g["ud"],g["P"],g["jb"]])),{},{hasType(t){return void 0!==this.point.trackpoints[t]},hasSelectedClassification(t){const e=this.point.trackpoints[t],a=this.trackpoints[e];return this.selectedClassification?a.classifications.includes(this.selectedClassification.id):a.classifications.length===this.classifications.length},async toggleType(t){const e=this.point.trackpoints[t],a=this.trackpoints[e];if(a){let e;e=this.selectedClassification?this.hasSelectedClassification(t)?Object(w["d"])(a.classifications,this.selectedClassification.id):a.classifications.concat(this.selectedClassification.id):this.hasSelectedClassification(t)?[]:this.classifications.map(t=>t.id),e.length>0?await this.UPDATE_TRACKPOINT(Object(v["a"])(Object(v["a"])({},a),{},{classifications:e})):await this.DELETE_TRACKPOINT(a.id)}else await this.CREATE_TRACKPOINT({location:this.location.id,type:t,classifications:this.selectedClassification?[this.selectedClassification.id]:this.classifications.map(t=>t.id)})},async updateLocationLatLng(t){await this.UPDATE_LOCATION(Object(v["a"])(Object(v["a"])({},this.location),t))}})},Po=Io,Eo=(a("2e37"),Object(U["a"])(Po,zo,jo,!1,null,null,null)),To=Eo.exports,No={components:{MapCompetitionPoint:To},props:{competition:{type:Object,required:!0},classifications:{type:Array,required:!0},selectedClassification:{type:Object,default:null},readOnly:{type:Boolean,default:!1},fullscreenable:{type:Boolean,default:!0},disableScroll:{type:Boolean,default:!1}},data(){return{map:void 0,ready:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["trackpointsBy","isZenMode","gpxFiles"])),{},{points(){return So(this.trackpoints)},trackpoints(){return this.trackpointsBy(this.classifications)}}),async created(){await this.READ_COMPETITION_TRACKPOINTS(this.competition.id);const t=[];for(const a of this.trackpoints)t.push(this.READ_LOCATION(a.location));await Promise.all(t);const e=[];for(const a of this.classifications)e.push(this.READ_CLASSIFICATION_GPX_FILE(a.id));await Promise.all(e),this.findGpxTrack(),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Xb"],g["zb"],g["hc"]])),{},{trackClickHandler(t){const e=this.classifications.filter(e=>e.id===t.classification),[a]=e;this.$emit("update:selectedClassification",a)},findGpxTrack(){const t=this.classifications.map(t=>t.id);return qe.a.find(this.gpxFiles,e=>e.url&&t.includes(e.classification))?this.$emit("map:ready",!0):this.$emit("map:ready",!1)}})},Ro=No,Lo=(a("115d"),Object(U["a"])(Ro,Oo,Ao,!1,null,"05ca652e",null)),Mo=Lo.exports,Do=a("5e22"),$o=a.n(Do),Uo={components:{MinisiteSidebar:po,MapCompet
1ition:Mo,LControl:qs["a"],MapCompetitionPoint:To},mixins:[bi["a"]],props:{id:{type:Number,required:!0}},data(){return{ready:!1,nextInCycleIds:[],selectedClassification:{},isGpxTrack:!0,isReadyMap:!1,baseLocationPoint:null,userPlayersIds:[]}},metaInfo(){var t;return{title:(null===(t=this.competition)||void 0===t?void 0:t.name)||""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["lang","say","time","competitions","organizers","limitsBy","competitionsSettings","classificationsBy","minisiteId","classificationsSettings","gpxFiles","trackpointsBy","user","players"])),{},{competition(){return this.competitions[this.minisiteId]},competitionSetting(){return this.competitionsSettings[this.id]},limits(){return this.limitsBy(this.competition)[0]},classifications(){const t=this.classificationsBy(this.competition);for(const e of t)e.position=this.classificationsSettings[e.classificationSetting].position;return qe.a.orderBy(t,"position","asc")},nextInCycle(){return Object(Ni["c"])(this.competitions,this.nextInCycleIds)},organizer(){return this.organizers[this.competition.organizer]},points(){return So(this.trackpoints)},trackpoints(){return this.trackpointsBy(this.classifications)},userPlayers(){return Object(Ni["c"])(this.players,this.userPlayersIds)},transferablePlayers(){return this.competition?Object.values(this.userPlayers).filter(t=>this.canPlayerTransferStart(t,this.competition)):[]}}),watch:{id:{immediate:!0,handler(){this.bootstrap()}},async isGpxTrack(){this.isGpxTrack||(this.baseLocationPoint=await this.createDefaultLocationPoint(this.competition.locationLat,this.competition.locationLng))}},mounted(){window.scroll(0,0),6772===this.id&&this.CHANGE_LANG("en")},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["n"],g["Ub"],g["Lb"],g["jc"],g["Tb"],g["Ob"],g["Nb"],g["v"],g["F"],g["s"],g["Gc"]])),{},{async bootstrap(){this.ready=!1,this.userPlayersIds=[];const[{competitions:t}]=await Promise.all([this.READ_NEXT_IN_CYCLE_COMPETITIONS(this.id),this.READ_COMPETITION_ORGANIZER(this.id),this.READ_COMPETITION_CLASSIFICATIONS(this.id),this.BOOTSTRAP_MINISITE(this.id),this.READ_COMPETITION_LIMITS(this.id),this.READ_COMPETITION_CLASSIFICATIONS_AGES(this.id),this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.id)]);if(this.user&&this.user.roles.includes("ROLE_USER"))try{this.userPlayersIds=await this.READ_USER_COMPETITION_PLAYERS(this.id)}catch(a){this.userPlayersIds=[]}this.nextInCycleIds=t;const[e]=this.classifications;this.selectedClassification=e,this.ready=!0},async createDefaultLocationPoint(t,e){const a=await this.CREATE_LOCATION_POINT({lat:t,lng:e}),n=this.classifications.map(t=>t.id),i=await this.CREATE_BASE_POINT({classifications:n,type:"STA",locationId:a.id});return i},sanitizeHtml:$o.a})},Bo=Uo,Fo=(a("2b9e"),Object(U["a"])(Bo,ko,xo,!1,null,"f1273bd8",null)),qo=Fo.exports,Ho=(a("4e82"),function(){var t=this,e=t._self._c;return e("div",[t.ready?t._e():e("main",[e("div",{staticClass:"d-flex flex-column mat24"},[e("h2",{staticClass:"text-center"},[t._v(" "+t._s(t.say.start_list_is_loading)+" ")]),t._m(0)])]),t.ready?e("main",[e("div",{staticClass:"list-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3 mar-auto align-items-center"},[e("h1",{staticClass:"l-short"},[t._v(" "+t._s(t.say.start_list)+" ")])]),e("div",{staticClass:"col-12 col-lg-3"},[e("base-input-select",{staticClass:"mar15",attrs:{options:t.classifications,label:t.say.classification,"label-select":"name"+t.activeLang},model:{value:t.selectedClassification,callback:function(e){t.selectedClassification=e},expression:"selectedClassification"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[t.selectedClassification?e("base-input-select",{attrs:{options:t.categoriesBy(t.selectedClassification),label:t.say.category,"label-select":"name"+t.activeLang},model:{value:t.selectedCategory,callback:function(e){t.selectedCategory=e},expression:"selectedCategory"}}):t._e()],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"list-header__search-input"},[e("base-input-text-with-icon",{attrs:{label:t.say.search,icon:"fas fa-search",badge:"fas fa-times"}
1,on:{"icon-click":function(e){t.search=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)])])])]),e("div",{staticClass:"container"},[e("div",{staticClass:"container-result"},[t.items.length?e("base-table",{staticClass:"table-list",attrs:{headers:t.headers,items:t.items,search:t.search,sortColumnDefault:"1"},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"table-list__row bg--white"},t._l(t.headers,(function(n,i){return e("th",{key:i,staticClass:"table-list__header",class:{"table-list__header-pay":"isPay"===n.value},on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a){return e("tr",{key:a.id,staticClass:"table-list__row"},t._l(t.headers,(function(n,i){return e("td",{key:i,staticClass:"table-list__data",class:{"align-right table-list__data-pay":"isPay"===n.value}},["isPay"===n.value&&!a[n.value]&&(t.limits[a.classificationId].playersAvailable>0&&"pay"===t.competitionSetting.playersKindLimit||"register"==t.competitionSetting.playersKindLimit)?[null!==t.competition.isAutoPay&&t.competition.status<3?e("router-link",{staticClass:"c-orange",attrs:{to:{name:"minisite-paylink",params:{name:t.competition.name,id:t.id,playerId:a.id},alias:!0}}},[t._v(" "+t._s(t.say.pay_for_participation)+" ")]):3===t.competition.status?e("p",[t._v(" "+t._s(t.say.not_payed)+" ")]):e("p")]:"isPay"!==n.value||a[n.value]||3!==t.competition.status&&(0!==t.limits[a.classificationId].playersAvailable||"pay"!==t.competitionSetting.playersKindLimit)?"isPay"===n.value&&!0===a[n.value]?e("p",[t._v(" "+t._s(t.say.payed)+" ")]):"isPay"===n.value&&"free"===a[n.value]?e("p",[t._v(" "+t._s(t.say.feeless)+" ")]):"name"==n.value&&a.isAnonymous?[t._v(" "+t._s(t.say.anonymous_participant)+" ")]:"number"==n.value?[0===a[n.value]?e("span",[t._v("-")]):e("span",[t._v(t._s(a[n.value]))])]:[t._v(" "+t._s(a[n.value])+" ")]:e("p",[t._v(" "+t._s(t.say.not_payed)+" ")])],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[e("p",{staticClass:"bg--gray pa16"},[t._v(" "+t._s(t.say.no_search_results)+" "),e("b",[t._v(t._s(a))])])]}}],null,!1,2637228964)}):t._e()],1)])]):t._e()])}),Go=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat16 lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],Wo={props:{id:{type:Number,required:!0}},data(){return{ready:!1,search:"",selectedClassification:null,selectedCategory:null,headersDefault:[{text:"Nr",value:"number"},{text:"Nazwisko i imię",value:"name"},{text:"Klub",value:"clubname"},{text:"Kraj",value:"country"},{text:"Miejscowość",value:"city"},{text:"Klas./Kat.",value:"classificationAndCategory"},{text:"",value:"isPay"}]}},metaInfo(){var t;return{title:this.say.start_list+" - "+(null===(t=this.competition)||void 0===t?void 0:t.name)||""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","pricesBy","categoriesBy","competitionsSettings","classificationsBy","playersBy","minisiteId","limits"])),{},{competition(){return this.competitions[this.minisiteId]},competitionSetting(){return this.competitionsSettings[this.minisiteId]},classifications(){return this.classificationsBy(this.competition)},players(){return this.playersBy(this.classifications)},headers(){if(this.competition.frontColumn){const t=[{text:this.competition.frontColumn,value:"frontInfo"}];return Object(w["b"])(this.headersDefault,6,t)}return this.headersDefault},items(){const t=this.players.filter(t=>{const e=this.pricesBy(this.classificationsBy(t)[0]);return this.selectedCategory&&this.competitionSetting.showOnlyPayed?0===e.length?t.category.includes(this.selectedCategory.id):t.category.includes(this.selectedCategory.id)&&t.pay:this.selectedCategory?t.category.includes(this.selectedCategory.id):this.selectedClassification&&this.competitionSetting.showOnlyPayed?0===e.length?t.classification===this.selectedClassification.id:t.classification===this.selectedClassification.id&&t.pay:this.selectedClassification?t.classification===this.selectedClassification.id:!this.competitionSetting.showOnlyPayed||(0===e.length?t:t.pay)});let e=0;const a=[];for(const i of t){var n;e+=1;const[t]=this.categoriesBy(i).filter(t=>!t.special),s=this.pricesBy(this.classificationsBy(i)[0]);a.push({position:e,name:`${i.lastname} ${i.firstname}`,number:i.playerNumber,country:i.country,city:i.city,clubname:i.clubname,classificationAndCategory:`${null===(n=this.classificationsBy(i)[0])||void 0===n?void 0:n.short}/${t?t.short:"-"}`,isPay:0===s.length?"free":i.pay,isAnonymous:i.isAnonymous,id:i.id,classificationId:i.classification,frontInfo:i.frontInfo})}return a},activeLang(){return this.$store.getters.lang[0].toUpperCase()+this.$store.getters.lang.slice(1)}}),watch:{selectedClassification(){this.selectedCategory=null},items(){this.registeredPlayers(),this.paidPlayers()}},async created(){await Promise.all([this.READ_COMPETITION_CLASSIFICATIONS(this.id),this.READ_COMPETITION_PLAYERS(this.id),this.BOOTSTRAP_MINISITE(this.id),this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.id)]),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["n"],g["Lb"],g["Wb"],g["Ob"],g["X"],g["W"]])),{}
1,{registeredPlayers(){this.DECLARE_PLAYERS_REGISTERED(this.items.length)},paidPlayers(){this.DECLARE_PLAYERS_PAID(this.items.filter((t,e)=>t.isPay).length)}})},Vo=Wo,Ko=Object(U["a"])(Vo,Ho,Go,!1,null,null,null),Zo=Ko.exports,Yo=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("h2",{staticClass:"mat40"},[t._v(" "+t._s(t.say.pay_for_participation)+" ")])]),e("div",{staticClass:"row mat40"},[e("div",{staticClass:"col-12 col-lg-2 mab16"},[e("h4",[t._v(t._s(t.say.email_paylink))])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"malr15"},[e("div",{staticClass:"pa24 bg--gray ma0"},[e("p",{staticClass:"f16"},[t._v(" "+t._s(t.say.paylink_hint)+" ")]),e("p",{staticClass:"f16 mat16"},[t._v(" "+t._s(t.say.participation_pay_hint)+" ")])]),e("div",{staticClass:"row minisite-pay__btn-send"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:""},on:{click:function(e){return t.send()}}},[t._v(" "+t._s(t.say.email_paylink)+" ")])],1)])])])]),e("div",{staticClass:"row mat48"},[e("div",{staticClass:"col-12 col-lg-2 mab16"},[e("h4",[t._v(t._s(t.say.or_create_account))]),e("p",{staticClass:"minisite-pay__register-hint"},[t._v(" "+t._s(t.say.register_email_hint)+" ")])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"pa24 bg--gray ma0"},[e("h3",[t._v(t._s(t.say.create_account_to_access)+":")]),e("p",{staticClass:"minisite-pay__hint minisite-pay__hint--first"},[t._v(" "+t._s(t.say.lists_upcoming_competition)+" ")]),e("p",{staticClass:"minisite-pay__hint"},[t._v(" "+t._s(t.say.easy_registration)+" ")]),e("p",{staticClass:"minisite-pay__hint"},[t._v(" "+t._s(t.say.list_your_results)+" ")]),e("p",{staticClass:"minisite-pay__hint"},[t._v(" "+t._s(t.say.list_of_insurance_polices)+" ")])]),e("div",{staticClass:"row mat48 minisite-pay__buttons"},[e("div",{staticClass:"col-12 col-lg-3 minisite-pay__btn-back"},[e("base-button",{staticClass:"text-upper",attrs:{btn4:""},on:{click:function(e){return t.$router.go(-1)}}},[t._v(" "+t._s(t.say.step_back)+" ")])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticClass:"text-upper",attrs:{btn2:""},on:{click:function(e){return t.$router.push({name:"authentication-register",alias:!0})}}},[t._v(" "+t._s(t.say.create_new_account)+" ")])],1)])])])]):t._e()},Qo=[],Xo={props:{playerId:{type:Number,required:!0},id:{type:Number,required:!0}},data(){return{ready:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","players","competitions","minisiteId"])),{},{player(){return this.players[this.playerId]},competition(){return this.competitions[this.minisiteId]}}),async created(){await this.READ_PLAYER(this.playerId),await this.BOOTSTRAP_MINISITE(this.id),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["wc"],g["n"],g["Zc"]])),{},{async send(){await this.SEND_PAYLINK_MAIL(this.player),this.$router.push({name:"minisite-paylink-confirmation",params:this.competition,alias:!0})}})},Jo=Xo,tr=Object(U["a"])(Jo,Yo,Qo,!1,null,null,null),er=tr.exports,ar=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center minisite-paylink__confirmation"},[t._m(0),e("div",{staticClass:"col-lg-4 col-12 minisite-pay__send-info"},[e("div",{staticClass:"row mab24"},[e("div",{staticClass:"col-12"},[e("h3",[t._v(t._s(t.say.sent_paylink))])])]),e("div",{staticClass:"row mat12"},[e("div",{staticClass:"col-12 col-lg-11"},[e("p",[t._v(t._s(t.say.open_paylink_hint))])]),e("div",{staticClass:"col-12 col-lg-11 mat16"},[e("p",[t._v(t._s(t.say.no_received_paylink_hint))])])])])]),e("div",{staticClass:"row mat16 minisite-pay__back-to-list justify-content-center"},[e("div",{staticClass:"col-lg-2"}),e("div",{staticClass:"col-12 col-lg-3"},[e("base-button",{staticClass:"text-upper",attrs:{btn2:""},on:{click:function(e){return t.$router.push({name:"minisite-list",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.back_to_start_list)+" ")])],1)])])},nr=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-lg-3 col-12 justify-content-center"},[e("img",{attrs:{src:a("b6cf")}})])}],ir={props:{id:{type:Number,required:!0}},data(){return{ready:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","minisiteId"])),{},{competition(){return this.competitions[this.minisiteId]}}),async created(){await this.BOOTSTRAP_MINISITE(this.id),this.ready=!0},methods:Object(v["a"])({},Object(R["b"])([g["n"]]))},sr=ir,or=Object(U["a"])(sr,ar,nr,!1,null,null,null),rr=or.exports,lr=function(){var t=this,e=t._self._c;return e("div",[t.ready?t._e():e("main",[e("div",{staticClass:"d-flex flex-column mat24"},[e("h2",{staticClass:"text-center"},[t._v(" "+t._s(t.say.results_are_loading)+" ")]),t._m(0)])]),t.ready?e("main",[e("div",{staticClass:"list-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-12 col-lg-2 mar-auto"},[e("h1",{staticClass:"l-short"},[t._v(" "+t._s(t.say.results)+" ")]),e("p",[t._v(t._s(t.classification.namePl))])]),t.ageCategories.length>1?e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"list-header__select"},[e("base-input-select",{attrs:{options:t.ageCategories,label:t.say.category,"label-select":"namePl"},model:{value:t.selectedAgeCategory,callback:function(e){t.selectedAgeCategory=e},expression:"selectedAgeCategory"}})],1)]):t._e(),t.specialCategories.length>0?e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"list-header__select"},[e("base-input-select",{attrs:{options:t.specialCategories,label:t.say.special_categories,"label-select":"namePl"},model:{value:t.selectedSpecialCategory,callback:function(e){t.selectedSpecialCategory=e},expression:"selectedSpecialCategory"}})],1)]):t._e(),e("div",{staticClass:"col-12",class:{"col-lg-2":Object.values(t.splitTime).length,"col-lg-3":!Object.values(t.splitTime).length}},[e("div",{staticClass:"list-header__search-input"},[e("base-input-text-with-icon",{attrs:{label:t.say.search,icon:"fas fa-search",badge:"fas fa-times"}
1,on:{"icon-click":function(e){t.search=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)]),Object.values(t.splitTime).length?e("div",{staticClass:"col-lg-1 list-header--right"},[e("div",{staticClass:"list-header__switch row"},[e("div",{staticClass:"list-header__switch-btn col-5",class:{"list-header__switch-btn--right":t.isSplitTime},on:{click:function(e){t.isSplitTime=!t.isSplitTime}}},[t._v(" "+t._s(t.isSplitTime?"SPLIT":"LAP")+" ")])])]):t._e()])])]),e("div",{staticClass:"palr16"},[t.competition.isRemote?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"bg--green results__remote"},[e("div",{staticClass:"row justify-content-start"},[t._m(1),e("div",{staticClass:"col-12 col-md-7 col-lg-5 results__remote-description"},[e("div",{staticClass:"results__remote-header"},[t._v(" "+t._s(t.say.remote_competition)+" ")]),e("div",[t._v(t._s(t.say.add_your_result_hint))]),t.canDeclareResults(t.user,t.competition)?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-3 mat24"},[e("base-button",{staticClass:"nowrap",attrs:{btn4:""},on:{click:function(e){return t.declareResult()}}},[t._v(" "+t._s(t.say.add_your_result)+" ")])],1)]):t._e()])])])])]):t._e(),t.items.length?t._e():e("div",{staticClass:"row mat16"},[e("div",{staticClass:"col-12 text-center"},[t._v(" "+t._s(t.say.no_results_yet)+" ")])]),e("div",{staticClass:"container-result"},[t.items.length?e("base-table",{staticClass:"table-list",attrs:{headers:t.headers,items:t.items,search:t.search},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"table-list__row bg--white"},t._l(t.headers,(function(n,i){return e("th",{key:i,staticClass:"table-list__header",class:{"table-list__header--second-cell":1===i,"table-list__header--first-cell":0===i,"d-none":1===i&&t.competition.isRemote&&4877!==t.competition.id||"meta_summary"===n.value&&t.isSplitTime},on:{click:function(t){return a(i)}}},[t.isSplitTime||i!==t.headers.length-3||t.competition.isRemote?[t._v(" "+t._s(n.text)+" ")]:[t._v(" LAP ")]],2)})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a){return e("tr",{key:a.id,staticClass:"table-list__row"},t._l(t.headers,(function(n,i){return e("td",{key:i,staticClass:"table-list__data",class:{"table-list__data--second-cell":1===i,"table-list__data--first-cell":0===i,"d-none":1===i&&t.competition.isRemote&&4877!==t.competition.id||"meta_summary"===n.value&&t.isSplitTime,"table-list__data--right-border":0===i&&t.competition.isRemote&&4877!==t.competition.id,"table-list__data--padding":"type"===n.value,"align-right":"isDeclaredTime"===n.value}},["meta_summary"===n.value?e("p",[t._v(" "+t._s(a.time)+" ")]):"isDeclaredTime"===n.value&&a.isDeclaredTime?e("p",{staticClass:"table-list__data--info-time"},[t._v(" "+t._s(t.say.declared_time)+" ")]):"isDeclaredDistance"===n.value&&a.isDeclaredDistance?e("p",{staticClass:"table-list__data--info-time"},[t._v(" "+t._s(t.say.declared_distance)+" ")]):"isDeclaredTime"===n.value&&!a.isDeclaredTime||"isDeclaredDistance"===n.value&&!a.isDeclaredDistance?e("p"):"distance"===n.value&&a[n.value]?[t._v(" "+t._s(a[n.value]+" km")+" ")]:[t._v(" "+t._s(a[n.value])+" ")]],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[e("p",{staticClass:"bg--gray pa16"},[t._v(" "+t._s(t.say.no_search_results)+" "),e("b",[t._v(t._s(a))])])]}}],null,!1,3805028916)}):t._e()],1)])]):t._e()])},cr=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat16 lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-5 d-flex justify-content-center align-items-center"},[e("img",{staticClass:"results__remote-img",attrs:{src:a("8cb0"),alt:""}})])}],dr={mixins:[bi["a"]],props:{id:{type:Number,required:!0},classificationId:{type:Number,required:!0}},metaInfo(){var t,e;return{title:(null===(t=this.say)||void 0===t?void 0:t.results)+" - "+(null===(e=this.competition)||void 0===e?void 0:e.name)||""}},data(){return{ready:!1,search:"",selectedAgeCategory:null,selectedSpecialCategory:null,headersDefault:[{text:"",value:"position"},{text:"Nr",value:"number"},{text:"Nazwisko i imię",value:"name"},{text:"Kraj",value:"country"},{text:"Miejscowość",value:"city"},{text:"Klub",value:"clubname"},{text:"",value:"isDeclaredTime"},{text:"Czas",value:"time"}],positions:[],splitTime:{},lapTime:{},isSplitTime:!0,remoteConfig:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","classifications","user","categoriesBy","competitions","playersBy","minisiteId","checkpointsBy","results"])),{},{classification(){return this.classifications[this.classificationId]},competition(){return this.competitions[this.minisiteId]},categories(){return this.categoriesBy(this.classification)},ageCategories(){return this.categories.filter(t=>!t.special)},specialCategories(){return this.categories.filter(t=>t.special)},checkpoints(){const t=(t,e)=>t.number-e.number;return this.checkpointsBy(this.classification).sort(t)},checkpointsHeaders(){if(!this.competition.isRemote){const t=t=>t.number>0;return this.checkpoints.filter(t)}return[]},headers(){const t=this.checkpointsHeaders.map(t=>({text:t.name,value:"checkpoint_"+t.id}));if(!this.competition.isRemote){const e=this.headersDefault.filter(t=>"Czas"!==t.text),a=[{text:"Meta",value:"meta_summary"}],n=Object(w["b"])(t,t.length,a);return Object(w["b"])(e,6,n)}if(!this.remoteConfig.isTime){const t=this.headersDefault.find(t=>"Czas"===t.text);t.value="distance",t.text="Dystans";const e=this.headersDefault.find(t=>"isDeclaredTime"===t.value);e.value="isDeclaredDistance"}return Object(w["b"])(this.headersDefault,6,t)},players(){return this.playersBy(this.classification)},items(){const t=t=>{let e,a;return e=!this.selectedAgeCategory||t.category.includes(this.selectedAgeCategory.id),a=!this.selectedSpecialCategory||t.category.includes(this.selectedSpecialCategory.id),e&&a},e=(t,e,a,n=!1)=>t[a]===e[a]?0:null===t[a]?1:null===e[a]?-1:n?t[a]<e[a]?1:-1:t[a]<e[a]?-1:1;let a=[],n=[];const i=t=>this.players.find(e=>e.id===t);if(this.competition.isRemote)a=this.players.filter(t),n=this.remoteConfig.isTime?a.sort((t,a)=>e(t,a,"time")):a.sort((t,a)=>e(t,a,"distance",!0));else{if(!this.positions)return[];const e=[];for(const t of this.positions)e.push(i(t));n=e.filter(t)}const o=t=>{if("string"===typeof t&&t.startsWith("P")){const e=t.match(/P(?:\d+Y)?(?:\d+M)?(?:(\d+)D)?T(\d+)H(\d+)M(\d+)S(\d{3})/);if(e){const[,t="0",a,n,i,s]=e,o=String(s).padStart(3,"0"),r=String(i).padStart(2,"0"),l=String(n).padStart(2,"0"),c=String(a).padStart(2,"0");return`${String(t).padStart(1,"0")} ${c}:${l}:${r}.${o}`}}return f()(t,"[P][Y][M]D[D][T]HH[H]mm[M]ss[S]SSS").format("D HH:mm:ss.SSS")};let r=0;const l=[];for(const m of n){const t={id:m.id,name:m.isAnonymous?this.say.anonymous_participant:`${m.lastname} ${m.firstname}`,number:m.playerNumber,country:m.country,city:m.city,clubname:m.clubname,position:r+=1,isDeclaredTime:"declared"===m.timeType,time:this.$options.filters.asStoper(m.time),distance:m.distance,isDeclaredDistance:"declared"===m.distanceType};if(this.checkpointsHeaders.length){let e=0;for(const a of this.checkpointsHeaders){var c,d;let n="";const i=f.a.duration(o(null===(c=this.splitTime[t.id])||void 0===c||null===(d=c[e])||void 0===d?void 0:d.time));if(this.isSplitTime)n=this.$options.filters.asStoper(i);else{var u,p;const a=f.a.duration(o(null===(u=this.lapTime[t.id])||void 0===u||null===(p=u[e])||void 0===p?void 0:p.time));n=this.$options.filters.asStoper(a)}1!==a.number&&([n]=n.split(".")),t["checkpoint_"+a.id]=n,[s["h"],s["g"],s["i"]].includes(i.valueOf())&&(t.position="",t["checkpoint_"+a.id]=this.$options.filters.asStoper(i)),e++}}l.push(t)}return l}}),watch:{async isSplitTime(){this.isSplitTime||Object.values(this.lapTime).length||(this.ready=!1,this.lapTime=await this.READ_CLASSIFICATION_RESULTS_LAP(this.classificationId),this.ready=!0)}},async created(){const{open:t}=await this.READ_CLASSIFICATION_RESULTS_POSITIONS_OPEN(this.classificationId),e=await this.READ_CLASSIFICATION_RESULTS_SPLIT(this.classificationId);if(await this.BOOTSTRAP_MINISITE(this.id),await this.READ_CLASSIFICATION(this.classificationId),await this.READ_CLASSIFICATION_PLAYERS(this.classificationId),await this.READ_CLASSIFICATION_CHECKPOINTS(this.classificationId),this.competition.isRemote){const t=await this.READ_DECLARE_RESULT_CONFIG(this.id
1);this.remoteConfig=t}this.positions=t,this.splitTime=e,this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["xb"],g["Bb"],g["n"],g["yb"],g["Fb"],g["Db"],g["Gb"],g["Zb"]])),{},{declareResult(){const t=this.competition.status<3?"user-competitions-future":"user-competitions-past";this.$router.push({name:t,alias:!0})}})},ur=dr,pr=Object(U["a"])(ur,lr,cr,!1,null,null,null),mr=pr.exports,fr=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"bg--gray"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row result-classification__header"},[e("h3",[t._v(t._s(t.say.results))])])])]),t.ready?e("div",{staticClass:"container"},t._l(t.classifications,(function(a){return e("minisite-item-classification-result",{key:a.id,attrs:{id:a.id,"top-player-id":t.topPlayersIdsByClassification[a.id],"show-top-results":t.showTopResult}})})),1):t._e()])},hr=[],br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row bg--gray result__classification-item"},[e("div",{staticClass:"col-12 col-lg-4 result__classification-info"},[e("div",[e("h3",[t._v(t._s(t.classification.short))]),e("p",[t._v(t._s(t.classification.namePl))])]),e("div",{staticClass:"align-items-center"},[e("i",{staticClass:"fas fa-users f18"}),e("p",{staticClass:"mal8"},[t._v(" "+t._s(t.limits.playersUnavailable)+" ")])])]),e("hr",{staticClass:"col-12 d-sm mab8"}),t.topPlayer&&t.showTopResults?e("div",{staticClass:"col-12 col-lg-4 result__best-time"},[e("p",[t._v(t._s(t.say.best_time))]),e("div",[e("h3",[t._v(t._s(t._f("asStoper")(t.topPlayer.time)))]),e("p",{staticClass:"result__player-name mar8"},[t._v(" "+t._s(t.topPlayer.firstname)+" "+t._s(t.topPlayer.lastname)+" ")]),e("p",{staticClass:"result__player-country"},[t._v(" "+t._s(t.topPlayer.country)+" ")])])]):t._e(),t.topPlayer&&t.showTopResults?e("hr",{staticClass:"mat8 col-12 d-sm"}):t._e(),e("div",{staticClass:"col-12 col-lg-3 result__btn"},[e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.$router.push({name:"minisite-results",params:{id:t.competition.id,name:t.competition.name,classificationId:t.classification.id},alias:!0})}}},[t._v(" "+t._s(t.say.see_results)+" ")])],1)])},_r=[],vr={props:{id:{type:Number,required:!0},topPlayerId:{type:Number,default:null},showTopResults:{type:Boolean,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","classifications","players","competitions","limitsBy","minisiteId"])),{},{classification(){return this.classifications[this.id]},competition(){return this.competitions[this.minisiteId]},limits(){return this.limitsBy(this.classification)[0]},topPlayer(){return this.players[this.topPlayerId]}})},gr=vr,yr=Object(U["a"])(gr,br,_r,!1,null,null,null),Cr=yr.exports,wr={components:{MinisiteItemClassificationResult:Cr},props:{id:{type:Number,required:!0}},metaInfo(){var t,e;return{title:(null===(t=this.say)||void 0===t?void 0:t.results)+" - "+(null===(e=this.competition)||void 0===e?void 0:e.name)||""}},data(){return{topPlayersIdsByClassification:{},ready:!1,showTopResult:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","players","classificationsBy","minisiteId"])),{},{competition(){return this.competitions[this.minisiteId]},classifications(){return this.classificationsBy(this.competition)}}),async created(){const[t]=await Promise.all([this.READ_COMPETITION_CLASSIFICATIONS_TOP_RESULTS(this.id),this.BOOTSTRAP_MINISITE(this.id),this.READ_COMPETITION_CLASSIFICATIONS(this.id),this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.id)]);if(this.topPlayersIdsByClassification={},this.competition.isRemote){const t=await this.READ_DECLARE_RESULT_CONFIG(this.id);this.showTopResult=t.isTime}for(const e of t){const t=this.players[e];t&&(this.topPlayersIdsByClassification[t.classification]=e)}this.ready=!0},methods:Object(v["a"])({},Object(R["b"])([g["Pb"],g["n"],g["Lb"],g["Ob"],g["Zb"]]))},kr=wr,xr=Object(U["a"])(kr,fr,hr,!1,null,null,null),Or=xr.exports,Ar=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container map-container",class:{"map-container--zen-mode":t.isZenMode}},[e("div",{staticClass:"row",class:{h100:t.isZenMode},staticStyle:{"flex-wrap":"nowrap"}},[e("div",{class:t.isZenMode?"col-lg-3 map-container__sidebar--zen-mode":"col-lg-3"},[e("div",{staticClass:"map-container__sidebar"},[e("div",[e("h2",[t._v("Trasa i punkty na trasie")]),e("p",{staticClass:"mat16"},[t._v(" Klasyfikacja ")]),e("base-input-select",{staticClass:"mat8 map-container__sidebar-select",attrs:{options:t.classifications,"label-select":"namePl",label:"Klasyfikacja",error:t.errors.classification}
1,on:{"update:error":function(e){return t.$set(t.errors,"classification",e)}},model:{value:t.selectedClassification,callback:function(e){t.selectedClassification=e},expression:"selectedClassification"}}),e("p",{staticClass:"mat16"},[t._v(" Dodaj trasę w pliku .gpx ")]),e("base-input-file",{key:t.inputFileKey,staticClass:"mat8",class:{"map-container__sidebar-file":!t.isZenMode},attrs:{hint:"Wybierz plik",disabled:t.disabledInput},on:{input:function(e){return t.createGpx()},click:function(e){t.disabledInput&&(t.errors.classification="Wybierz klasyfikacje")}},model:{value:t.trackFileList,callback:function(e){t.trackFileList=e},expression:"trackFileList"}}),e("base-button",{staticClass:"mat16",attrs:{btn2:"",icon:"fas fa-plus"},on:{click:function(e){return t.addPoint()}}},[t._v(" Dodaj punkt ")])],1),t._v(" Tracking obłsugiwany przez: "),e("img",{staticClass:"img-fluid mal24",staticStyle:{"max-width":"200px"},attrs:{src:a("e81e")},on:{click:function(e){return t.$router.push({path:"http://tracking.activeprogress.eu",tab:!0})}}}),e("base-button",{staticClass:"mat8",class:{"status-btn--positive":t.shortName},attrs:{btn2:"",icon:"fas fa-mobile-alt"},on:{click:function(e){t.showPopupForActivationGPS=!t.showPopupForActivationGPS}}},[t._v(" Mobile tracking: "+t._s(t.shortName?"aktywny":"Aktywuj")+" ")]),t.showPopupForActivationGPS?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t.shortName?e("span",[t._v(" Prefix dla Twoich urządzeń to: "),e("span",{staticClass:"mal8"},[e("b",[t._v(t._s(t.shortName)+"-")])])]):e("span",[t._v(" Aktywuj tracking dla urządzeń z aplikacją w telefonie. ")])]},proxy:!0},{key:"subtitle",fn:function(){return[t.shortName?e("span",[e("b",[t._v("Aktualny koszt:")]),t._v(" "+t._s(t.actualPrice)+" PLN "),e("br")]):t._e()]},proxy:!0},{key:"content",fn:function(){return[e("div",{class:{mat16:t.shortName}},[t.shortName?e("span",[e("b",[t._v("Utworzono:")]),t._v(" "+t._s(t.devicesAvailable+" urządzeń.")+" "),e("br")]):e("span",[e("b",[t._v("Aktywujesz możliwość korzystania z telefonów jako urządzeń GPS.")])]),t.devicesAvailable>0?e("span",{staticClass:"buttonsRow"},[e("BaseButtonDownloadGPS",{staticClass:"mar15",attrs:{btn4:"",url:`/gps/competition/${t.competition.id}/list`,fileName:`${t.competition.name}-v${t.competition.id}-GPS_List.csv`}},[t._v(" Lista urządzeń ")]),e("base-button",{staticClass:"mal15",attrs:{icon:t.isCreating?"fas fa-spinner fa-spin":t.pplAssigned?"fas fa-check-circle":null,btn4:""},on:{click:function(e){return t.assignExisting()}}},[t._v(" "+t._s(t.isCreating?"Przypisuje...":t.pplAssigned?"Przypisano: "+t.pplAssigned:"Przypisz istniejące")+" ")])],1):t._e(),t.shortName?t._e():e("div",{staticClass:"mat16"},[e("base-input-text",{staticClass:"mat8 bgc",attrs:{withoutErrorMessage:"",hint:"Wybierz prefix, dla Twoich urządzeń.",error:t.errors.prefix},on:{"update:error":function(e){return t.$set(t.errors,"prefix",e)}},model:{value:t.competitionPrefix,callback:function(e){t.competitionPrefix=e},expression:"competitionPrefix"}}),e("b",[t._v("Uwaga:")]),t._v(" "),e("span",{class:{"c-negative":t.errors.prefix}},[t._v(t._s(t.errors.prefix?t.errors.prefix:"Wybór prefixu jest obowiązkowy")+".")])],1),e("div",{staticClass:"mat16"},[t.shortName?t._e():e("span",[e("b",[t._v("Aktywacja urządzeń")]),t._v(" spowoduje, że urządzenia mobilne (telefon, tablet) będą mogły być używane jako urządzenia GPS do trackingu zawodników na tej imprezie. "),e("br")]),e("span",[e("b",[t._v("Wymagania:")]),t._v(" urządzenie musi mieć zainstalowaną aplikację "),e("b",[t._v("ActiveProgress")]),t._v(" lub "),e("b",[e("a",{attrs:{href:"https://www.traccar.org/client/",target:"_blank"}},[t._v("Traccar-Client")])]),t._v(". ")]),e("div",{staticClass:"mat16"},[e("a",{attrs:{href:"http://dostartu.pl/files/web/konfiguracja_traccar.pdf",target:"_blank"}},[e("b",[t._v("Instrukcja")]),t._v(" poprawnego uruchomienia aplikacji "),e("b",[t._v("Traccar-Client")]),t._v(". ")])])])])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){t.showPopupForActivationGPS=!1,t.errors.prefix=""}}},[t._v(" "+t._s(t.shortName?"zamknij":"anuluj")+" ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.shortName?(t.showPopupForAddDevices=!0,t.showPopupForActivationGPS=!1):t.mGPSactivate()}}}
1,[t._v(" "+t._s(t.shortName?"dodaj wiecej":"aktywuj")+" ")])]},proxy:!0}],null,!1,2020641502)}):t._e(),t.showPopupForAddDevices?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Dodaj wiecej urządzeń pomiarowych. ")]},proxy:!0},{key:"content",fn:function(){return[e("div",[e("b",[t._v("Wybierz")]),t._v(" sposób dodania urządzeń. "),e("base-input-radio",{attrs:{options:[{value:"cls",title:"classifications"},{value:"numbers",title:"Zakres numerów"}]},model:{value:t.addBy,callback:function(e){t.addBy=e},expression:"addBy"}}),"cls"===t.addBy?e("div",{staticClass:"mat16"},[e("b",[t._v("Zaznacz")]),t._v(" klasyfikacje dla których chcesz dodać urządzenia. "),t._l(t.classifications,(function(a,n){return e("BaseInputCheckbox",{key:n,staticClass:"mat8",attrs:{"checkbox-value":t.classifications[n].checked,name:`cls_ids[${n}]`},model:{value:t.classifications[n].checked,callback:function(e){t.$set(t.classifications[n],"checked",e)},expression:"classifications[index].checked"}},[t._v(t._s(a.namePl))])})),e("b",[t._v("Uwaga:")]),t._v(" Utworzone zostaną urządzenia jedynie dla zawodników, z przypisanymi numerami startowymi. ")],2):t._e(),"numbers"===t.addBy?e("div",{staticClass:"mat16"},[e("b",[t._v("Wybierz")]),t._v(" zakres numerów startowych, dla których chcesz dodać urządzenia. "),e("base-input-text",{staticClass:"mat8 bgc",attrs:{type:"text",label:"Od numeru",hint:"Początkowy",error:t.errors.startNumber},on:{"update:error":function(e){return t.$set(t.errors,"startNumber",e)},input:function(e){t.startNumber=t.startNumber.toString().replace(/\D/g,"").slice(0,4)}},model:{value:t.startNumber,callback:function(e){t.startNumber=e},expression:"startNumber"}}),e("base-input-text",{staticClass:"mat8 bgc",attrs:{type:"text",hint:"Końcowy",label:"Do numeru",error:t.errors.endNumber},on:{"update:error":function(e){return t.$set(t.errors,"endNumber",e)},input:function(e){t.endNumber=t.endNumber.toString().replace(/\D/g,"").slice(0,4)}},model:{value:t.endNumber,callback:function(e){t.endNumber=e},expression:"endNumber"}})],1):t._e(),e("div",{staticClass:"mat16"},["string"===typeof t.additionalPrice?e("span",{staticClass:"c-negative"},[e("b",[t._v(" Przekroczony limit, jednocześnie można dodać max. 300 urządzeń. ")])]):e("span",[e("span",[e("b",[t._v("Koszt aktywacji")]),t._v(" "+t._s(t.newTrackers)+" dodatkowych urządzeń:"),e("b",[t._v(" "+t._s(t.additionalPrice)+" PLN")]),t._v(" "),e("br")]),e("span",{staticClass:"c-negative"},[e("b",[t._v("Koszt łączny")]),t._v(" po aktywacji urządzeń:"),e("b",[t._v(" "+t._s(t.summaryPrice)+" PLN")]),e("br")])])])],1)]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){t.showPopupForAddDevices=!1,t.errors.prefix=""}}},[t._v(" "+t._s(t.shortName?"zamknij":"anuluj")+" ")]),e("base-button",{staticClass:"mal15",attrs:{icon:t.isCreating?"fas fa-spinner fa-spin":null,disabled:t.isCreating||!!t.errors.limitDevices,btn1:""},on:{click:function(e){t.isCreating=!0,t.mGPSactivate()}}},[t._v(" "+t._s("+"+t.newTrackers)+" Aktywuj ")])]},proxy:!0}],null,!1,1959451979)}):t._e(),e("div",{staticClass:"row"},[e("base-button",{staticClass:"mat16",attrs:{btn2:""},on:{click:function(e){return t.$router.push({path:`http://tracking.activeprogress.eu/${t.competition.name}-v${t.competition.id}`,tab:!0})}}},[t._v(" Twój tracking GPS ")]),e("base-button",{staticClass:"mat16 size48",attrs:{btn2:"",icon:"fas fa-user-cog"},on:{click:function(e){return t.$router.push({path:`http://tracking.activeprogress.eu/${t.competition.name}-v${t.competition.id}?key=${t.competition.apiKey}`,tab:!0})}}})],1)],1)]),e("div",{class:t.isZenMode?"col-lg-9 map-container__map--zen-mode":"col-lg-9"},[e("map-competition",{attrs:{competition:t.competition,classifications:t.classifications,"selected-classification":t.selectedClassification},on:{"update:selectedClassification":function(e){t.selectedClassification=e},"update:selected-classification":function(e){t.selectedClassification=e},"delete-point":t.onDeletePointClick,ready:function(e){t.map=e}}})],1),t.showPopupForRemove?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Usuń punkt ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz usunąć wybrany punkt?")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mat16"},[t._v(" Zostanie on usunięty z "),e("b",[t._v("wszystkich klasyfikacji")]),t._v(" . Ab
1y nie był wyświetlany w tej klasyfikacji, nie wybieraj żadnej kategorii w punkcie (nie wybrane Start, Meta, Pomiar, Punkt żywieniowy) ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){t.showPopupForRemove=!t.showPopupForRemove,t.pointToDelete=null}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.showPopupForRemove=!t.showPopupForRemove,t.deletePoint()}}},[t._v(" Usuń punkt ")])]},proxy:!0}],null,!1,2438055189)}):t._e()],1)]):t._e()},Sr=[],zr=(a("e9c4"),a("4618")),jr={components:{MapCompetition:Mo,BaseButtonDownloadGPS:zr["default"]},props:{id:{type:Number,required:!0}},data(){return{ready:!1,selectedClassification:null,map:void 0,showPopupForRemove:!1,showPopupForAddDevices:!1,pointToDelete:null,confirmDeletePoint:!1,trackFileList:[],errors:{},inputFileKey:0,showPopupForActivationGPS:!1,devicesAvailable:0,competitionPrefix:"",temporaryShortName:null,startNumber:1,endNumber:1,addBy:"cls",summaryPrice:0,additionalPrice:0,newTrackers:0,isCreating:!1,pplAssigned:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","classificationsBy","isZenMode"])),{},{competition(){return this.competitions[this.id]},actualPrice(){return this.summaryPrice-this.additionalPrice},classifications(){return this.classificationsBy(this.competition)},selectedClassifications(){return this.classifications.filter(t=>t.checked).map(t=>t.id)},disabledInput(){return!this.selectedClassification},shortName(){var t;return(null===(t=this.competition)||void 0===t?void 0:t.shortName)||this.temporaryShortName}}),async created(){await Promise.all([this.READ_PANEL_COMPETITION(this.id),this.READ_COMPETITION_CLASSIFICATIONS(this.id)]),this.ready=!0},watch:{showPopupForActivationGPS(t){!0===t&&(this.checkActivationPrice(),this.checkAvailableDevices())},startNumber(t){t&&t>this.endNumber&&(this.endNumber=t)},addBy(){"cls"===this.addBy&&this.checkActivationPrice(this.selectedClassifications),"numbers"===this.addBy&&this.checkActivationPrice(null,this.startNumber,this.endNumber)},endNumber(t,e){t!=e&&(t&&t<this.startNumber&&(this.errors.endNumber="Numer końcowy musi być większy lub równy początkowemu",this.endNumber=this.startNumber),t!==e&&Object(Fe["debounce"])(()=>{this.checkActivationPrice(null,this.startNumber,this.endNumber)},500)())},selectedClassifications(t,e){JSON.stringify(t)!==JSON.stringify(e)&&Object(Fe["debounce"])(()=>{this.checkActivationPrice(this.selectedClassifications,null,null)},500)()}},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["sc"],g["Lb"],g["E"],g["P"],g["db"],g["jb"],g["x"]])),{},{async addPoint(){const t=this.map.getBounds().getCenter(),e=await this.CREATE_LOCATION({lat:t.lat,lng:t.lng});await this.CREATE_TRACKPOINT({location:e,type:s["s"].checkpoint,classifications:this.classifications.map(t=>t.id)})},onDeletePointClick(t){this.showPopupForRemove=!0,this.pointToDelete=t},async deletePoint(){const t=[],e=Object.values(this.pointToDelete.trackpoints);for(const a of e)t.push(this.DELETE_TRACKPOINT(a));await Promise.all(t),await this.DELETE_LOCATION(this.pointToDelete.location),this.pointToDelete=null},async assignExisting(){this.isCreating=!0;try{const t=await Pt["a"].post(`gps/competition/${this.competition.id}/assign-existing`);this.pplAssigned=t.assigned}catch(t){console.error("Error assigning existing devices:",t)}this.isCreating=!1},async createGpx(){await this.CREATE_CLASSIFICATION_GPX_FILE({id:this.selectedClassification.id,gpxFile:this.trackFileList[0]}),this.trackFileList=[],this.inputFileKey+=1},async checkAvailableDevices(){try{const t=await Pt["a"].get(`gps/competition/${this.competition.id}/count`);this.devicesAvailable=t.available?t.available:0}catch(t){console.error("Error checking available devices:",t)}},async createmGPSDevices(t,e,a,n){if(n&&0===n.length&&(n=null),t&&t.length>=2){try{const i=await Pt["a"].post(`gps/competition/${this.competition.id}/bulk`,{shortName:t,startNumber:e,endNumber:a,classificationIds:n});i.success&&(this.temporaryShortName=this.competitionPrefix.toUpperCase(),this.showPopupForActivationGPS=!1)}catch(i){console.error("Error creating mGPS devices:",i)}this.isCreating=!1}},async checkActivationPrice(t,e,a){t&&0===t.length&&(t=null);const n=await Pt["a"].post(`gps/competition/${this.competition.id}/bulk/cost`,{startNumber:e||null,endNumber:a||null,classificationIds:t||null});this.summaryPrice=n.summaryPrice||0,this.additionalPrice=n.price||0,this.newTrackers=n.newTrackers||0,n.newTrackers>300?this.errors.limitDevices="Osiągnięto limit urządzeń, nie można dodać więcej niż 300 naraz.":this.errors.limitDevices=null},async mGPSactivate(){let t;return this.shortName?("cls"===this.addBy?await this.createmGPSDevices(this.shortName,null,null,this.selectedClassifications):await this.createmGPSDevices(this.shortName,this.startNumber,this.endNumber,null),this.showPopupForActivationGPS=!this.showPopupForActivationGPS,void(this.showPopupForAddDevices=!this.showPopupForAddDevices)):this.competitionPrefix.length<2?(this.errors.prefix="Prefix musi składać się z min. 2 wielkich liter",void(this.competitionPrefix="")):(t=await Pt["a"].get(`/competition/shortname/${this.competition.id}/check?shortName=${this.competitionPrefix.toUpperCase()}`),t.available||(this.errors.prefix="Ten prefix jest już zajęty, wybierz inny"),void(t.available&&(this.competitionPrefix=this.competitionPrefix.toUpperCase(),await this.createmGPSDevices(this.competitionPrefix))))},trackClickHandler(t){const e=this.classifications.filter(e=>e.id===t.classification),[a]=e;this.selectedClassification=a}})},Ir=jr,Pr=(a("4ef3"),Object(U["a"])(Ir,Ar,Sr,!1,null,"4139be88",null)),Er=Pr.exports,Tr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"w100"},[e("div",{staticClass:"mal30 mab40"},[e("PanelCompetitionSettingStoperMain",{attrs:{id:t.id}})],1)])},Nr=[],Rr=function(){var t=this,e=t._self._c;return e("div",[t.ready?e("div",[t.files.length>0?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"update-results",staticStyle:{width:"auto"}},[e("div",{staticClass:"update-results-content"},[e("svg",{attrs:{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 20C0 31.0457 8.9543 40 20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20ZM25 28H22V17C22 16.4477 21.5523 16 21 16H17C16.4477 16 16 16.4477 16 17C16 17.5523 16.4477 18 17 18H20V28H17C16.4477 28 16 28.4477 16 29C16 29.5523 16.4477 30 17 30H25C25.5523 30 26 29.5523 26 29C26 28.4477 25.5523 28 25 28ZM20 38C29.9411 38 38 29.9411 38 20C38 10.0589 29.9411 2 20 2C10.0589 2 2 10.0589 2 20C2 29.9411 10.0589 38 20 38ZM22 11C22 10.4477 21.5523 10 21 10H19C18.4477 10 18 10.4477 18 11V13C18 13.5523 18.4477 14 19 14H21C21.5523 14 22 13.5523 22 13V11Z",fill:"#455A64"}})]),t._m(0)])])])]):t._e(),t._l(t.checkpointGroupsMinusMeta,(function(a){return e("panel-competition-setting-stoper-item-checkpoint-group",{key:a.name,attrs:{"competition-id":a.competition,"checkpoint-name":a.name,files:t.files}})})),e("div",{staticClass:"row mat32 mab40"},[e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"border-box--gray patb20 palr32 mar15"},[e("base-button",{attrs:{btn9:"",disabled:!t.canAddStart},on:{click:function(e){return t.ADD_CHECKPOINT_GROUP(!0)}}},[t._v(" Dodaj start pomiaru ")])],1)]),e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"border-box--gray mar15 mal15 patb20 palr32"},[e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.ADD_CHECKPOINT_GROUP(!1)}}},[t._v(" Dodaj międzyczas ")])],1)]),e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"border-box--gray mal15 patb20 palr32"},[e("base-button",{attrs:{btn9:"",disabled:!t.canAddMeta},on:{click:function(e){return t.ADD_CHECKPOINT_GROUP_META()}}},[t._v(" Dodaj punkt mety ")])],1)])]),t._l(t.checkpointGroupsMeta,(function(a){return e("panel-competition-setting-stoper-item-checkpoint-group",{key:a.id,attrs:{"competition-id":a.competition,"checkpoint-name":a.name,files:t.files}})})),e("div",{staticClass:"row",staticStyle:{"margin-top":"48px"}},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticStyle:{color:"#B0BEC5","border-color":"#B0BEC5"},attrs:{btn4:""},on:{click:function(e){t.showPopupForDefault=!t.showPopupForDefault}}},[t._v("Przywróć do domyślnych ustawień")])],1)]),t.showPopupForDefault?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Przywróć do domyślnych ustawień ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz przywrócić ustawienia domyślne?")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mat16"},[t._v(" Ustawienia pomiaru czasu zostaną "),e("b",[t._v("usunięte")]),t._v(". ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){t.showPopupForDefault=!t.showPopupForDefault}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.showPopupForDefault=!t.showPopupForDefault,t.defaultChrono()}}},[t._v(" Przywróć ")])]},proxy:!0}],null,!1,655074694)}):t._e()],2):e("div",{staticClass:"loader"},[t._m(1)])])},Lr=[function(){var t=this,e=t._self._c;return e("div",[e("b",[t._v("Nie zamykaj tej strony w trakcie pomiaru czasu")]),e("p",[t._v("Zadaniem tej strony jest ciągłe wysyłanie wyników z aparatury pomiarowej do platformy dostartu."),e("br"),t._v("Jeśli zamnkiesz tę stronę, przesył wyników zostanie przerwany.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],Mr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"checkpoint"},[e("div",{staticClass:"row"},[t.editing||t.edited?e("div",{staticClass:"checkpoint__edit-title col-lg-4"},[e("base-input-text",{attrs:{label:t.isStart?"Start pomiaru":t.isMeta?"Meta":"Międzyczas",error:t.error},on:{"update:error":function(e){t.error=e}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1):e("div",{staticClass:"checkpoint__title"},[e("p",[t._v(t._s(t.isStart?"Start pomiaru":t.isMeta?"Meta":"Międzyczas"))]),e("b",{staticClass:"f16"},[t._v(t._s(t.checkpointGroup.name))])]),e("div",{staticClass:"d-flex"},[e("base-button",{staticClass:"edit-btn",class:{mar16:t.isMidpoint},attrs:{btn9:"",icon:"fas fa-pencil-alt"},on:{click:function(e){t.editing=!t.editing}}},[t._v(" Edytuj ")]),t.isMidpoint?e("div",{staticClass:"buttons-group"},[e("base-button",{staticClass:"radius0",attrs:{btn9:"",icon:"fas fa-caret-up",disabled:0===t.checkpointGroups[t.position-1].number},on:{click:function(e){return t.moveCheckpointGroup(-1)}}}),e("base-button",{staticClass:"radius0 border-left",attrs:{btn9:"",icon:"fas fa-caret-down",disabled:1===t.checkpointGroups[t.position+1].number},on:{click:function(e){return t.moveCheckpointGroup(1)}}}
1)],1):t._e()],1)]),e("div",{staticClass:"row checkpoint__content border-top--gray"},[e("div",{staticClass:"col-lg-9"},[e("div",{staticClass:"row mar30"},[e("div",{staticClass:"col-lg-12"},[e("div",{staticClass:"mat8 row flex-nowrap"},[e("div",{class:[t.device&&"GEP"===t.device.type?"col-lg-6":"col-lg-8"]},[e("p",{staticClass:"mab8"},[t._v("Urządzenie pomiarowe")]),e("div",{staticClass:"h100 mar16"},[e("v-select",{staticClass:"bg--white checkpoint__input-select",attrs:{label:"name",options:t.devices,clearable:!1},model:{value:t.device,callback:function(e){t.device=e},expression:"device"}})],1)]),t.device&&"GEP"===t.device.type?e("div",[e("div",{staticClass:"col-lg-2 mar16"},[t._m(0),e("base-input-text",{attrs:{error:t.error},on:{"update:error":function(e){t.error=e}},model:{value:t.gapTime,callback:function(e){t.gapTime=e},expression:"gapTime"}})],1)]):t._e(),e("div",{staticClass:"col-lg-4"},[e("p",{staticStyle:{height:"29px"}}),e("base-button",{attrs:{btn9:"",icon:"far fa-plus"},on:{click:function(e){return t.addDeviceModal()}}},[t._v(" Dodaj nowe urządzenie ")]),e("div",{staticClass:"positive"})],1)])]),e("div",{staticClass:"col-lg-12 mat16"},[e("div",{staticClass:"row mat16"},[e("div",{staticClass:"col-lg-8"},[e("p",[t._v(" "+t._s(t.isStart?"Start pomiaru dla klasyfikacji":t.isMeta?"Meta":"Międzyczas dla klasyfikacji")+" ")])]),t.isStart?e("div",{staticClass:"col-lg-4"},[e("p",{staticClass:"mal16"},[t._v("Czas startu")])]):t._e()]),t._l(t.classifications,(function(a){return e("panel-competition-setting-stoper-item-checkpoint",{key:a.id,attrs:{"checkpoint-name":t.checkpointGroup.name,"classification-id":a.id}})}))],2),t.link?e("div",{staticClass:"col-12 mat16"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12"},[t._v("Link do pomiaru")]),e("div",{staticClass:"col-lg-12 mat8 border-box--gray checkpoint__link align-items-center justify-content-space-between"},[e("p",[t._v(t._s(t.link))]),e("base-button",{staticClass:"col-lg-3",attrs:{btn9:"",icon:"far fa-link"},on:{click:function(e){return t.copyLink(t.link)}}},[t._v(" Kopiuj link ")])],1)])]):t._e(),t.files&&t.files.length>0&&t.device&&"SYS"!==t.device.type&&"STP"!==t.device.type?e("div",{staticClass:"col-12 mat16"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[t._v("Plik z wynikami")]),e("div",{staticClass:"mat8",class:[t.file?"col-8":"col-12"]},[e("v-select",{staticClass:"bg--white checkpoint__input-select",class:[t.file?"mar16":""],staticStyle:{height:"40px"},attrs:{label:"name",placeholder:"Wybierz plik",options:t.files,clearable:!1},model:{value:t.file,callback:function(e){t.file=e},expression:"file"}})],1),t.file?e("div",{staticClass:"mat8 col-4"},[e("base-button",{attrs:{btn9:"",icon:"fas fa-window-close"},on:{click:t.REMOVE_FTP_MEASURES_IMPORTER}},[t._v(" Odłącz urządzenie ")])],1):t._e()])]):t._e()])]),e("div",{staticClass:"col-lg-3 d-flex columnWrap"},[e("div",{staticClass:"infoWrap"},[t.isMeta||t.isStart?t._e():e("base-button",{attrs:{btn9:"",icon:"fas fa-trash-alt"},on:{click:function(e){return t.REMOVE_CHECKPOINT_GROUP(t.checkpointGroup)}}},[t._v(" "+t._s(t.isStart?"Usuń punkt startu":"Usuń międzyczas")+" ")]),t.files&&t.files.length>0&&t.device&&"SYS"!==t.device.type&&"STP"!==t.device.type?e("p",[t._v("Wybierz plik z wynikami z urządzenia pomiarowego ")]):t._e()],1)])]),e("modal",{ref:"modaladdDevice",scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" Dodaj urządzenie pomiarowe ")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"deviceswrap"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12"},[e("p",{staticClass:"form-input__label"},[t._v("Wybierz urządzenie")]),e("v-select",{staticClass:"bg--white checkpoint__input-select",staticStyle:{height:"48px"},attrs:{label:"name",placeholder:"Wybierz urządzenie",options:t.newDevices,clearable:!1},model:{value:t.newDevice.name,callback:function(e){t.$set(t.newDevice,"name",e)},expression:"newDevice.name"}})],1),e("div",{staticClass:"mt-16 col-lg-12"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa")]),e("base-input-text",{attrs:{label:"Nazwa"},model:{value:t.newDevice.title,callback:function(e){t.$set(t.newDevice,"title",e)},expression:"newDevice.title"}})],1)])])]},proxy:!0},{key:"footer",fn:function(){return[e("button",{staticClass:"btn",on:{click:function(e){return t.$refs.modaladdDevice.closeModal()}}},[t._v(" Zamknij ")]),e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.addDevice()}}},[t._v("Dodaj")])]},proxy:!0}])})],1)},Dr=[function(){var t=this,e=t._self._c;return e("p",{staticClass:"mab8"},[t._v("Odczyt co "),e("span",{staticStyle:{float:"right"}},[t._v("sek")])])}],$r=a("4a7a"),Ur=a.n($r),Br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row chrono-classification mat8",class:{"chrono-classification--disabled":!t.checkpoint}},[e("div",{staticClass:"col-lg-8 align-items-center",class:{disabled:!t.checkpoint}},[t._v(" "+t._s(t.classification.namePl)+" ")]),e("div",{staticClass:"col-lg-4 d-flex align-items-center justify-content-end"},[t.checkpoint&&0===t.checkpoint.number?e("div",{staticClass:"event-wrap"},[e("base-input-mask",{staticClass:"chrono-classification__input",attrs:{mask:"00.
100.0000 00:00:00",placeholder:"DD.MM.RRRR GG:MM:SS"},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}}),t.loading?e("img",{staticClass:"event-wrap-img",attrs:{src:a("ad40")}}):t._e(),t.saved?e("img",{staticClass:"event-wrap-img",attrs:{src:a("8a7d")}}):t._e()],1):t._e(),e("div",{staticClass:"chrono-classification__checkbox",class:{"chrono-classification__checkbox--disabled":t.checkpoint&&(t.isStart||t.isMeta)},on:{click:function(e){t.checkpoint?!t.isStart&&!t.isMeta&&t.DISABLE_CHECKPOINT(t.checkpoint):t.ENABLE_CHECKPOINT({classification:t.classification,checkpointGroup:t.checkpointGroup})}}},[e("i",{staticClass:"fas",class:[t.checkpoint?"fa-check-square":"fa-square"]})])])])},Fr=[],qr={props:{checkpointName:{type:String,required:!0},classificationId:{type:Number,required:!0}},data(){return{loading:!1,saved:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["classifications","checkpointGroups","checkpointsBy"])),{},{classification(){return this.classifications[this.classificationId]},checkpointGroup(){const t=t=>t.name===this.checkpointName;return this.checkpointGroups.find(t)},checkpoint(){const t=t=>t.classification===this.classificationId;return this.checkpointsBy(this.checkpointGroup).find(t)},isStart(){return 0===this.checkpointGroup.number},isMeta(){return 1===this.checkpointGroup.number},startTime:{get(){return this.classification.startTime?this.classification.startTime.format("DD.MM.YYYY HH:mm:ss"):""},set(t){const e=f()(t,"DD.MM.YYYY HH:mm:ss",!0);e.isValid()&&!e.isSame(this.classification.startTime)&&(this.loading=!0,this.UPDATE_CLASSIFICATION(Object(v["a"])(Object(v["a"])({},this.classification),{},{startTime:e})).then(()=>{this.loading=!1,this.saved=!0,setTimeout(()=>{this.saved=!1},2e3)}))}}}),methods:Object(v["a"])({},Object(R["b"])([g["kd"],g["ob"],g["mb"]]))},Hr=qr,Gr=(a("3ede"),Object(U["a"])(Hr,Br,Fr,!1,null,"24909834",null)),Wr=Gr.exports,Vr={components:{Modal:$t["a"],VSelect:Ur.a,PanelCompetitionSettingStoperItemCheckpoint:Wr},props:{competitionId:{type:Number,required:!0},checkpointName:{type:String,required:!0},files:{type:Array,default:()=>[],required:!1}},data(){return{editing:!1,name:this.checkpointName,newDevice:{name:null,title:""},file:null,interval:null,newDevices:[{id:1,name:"Stoper",value:"STP"},{id:2,name:"Gepard",value:"GEP"},{id:3,name:"Chronotrack",value:"CHR"},{id:4,name:"Race result",value:"RAR"}],error:"",gapTime:40}},beforeDestroy(){clearInterval(this.interval)},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","organizers","operators","checkpointGroups","classificationsBy","devicesBy","gatesBy","checkpointsBy"])),{},{checkpointGroup(){return this.checkpointGroups.find(t=>t.competition===this.competitionId&&t.name===this.checkpointName)},competition(){return this.competitions[this.competitionId]},classifications(){return this.classificationsBy(this.competition)},organizer(){return this.organizers[this.competition.organizer]},operator(){return this.operators[this.organizer.operator]},devices(){return this.devicesBy(this.operator)},isStart(){return 0===this.checkpointGroup.number},isMeta(){return 1===this.checkpointGroup.number},isMidpoint(){return!this.isStart&&!this.isMeta},position(){return this.checkpointGroups.map(t=>t.name).indexOf(this.checkpointGroup.name)},edited(){return this.name!==this.checkpointGroup.name},gate(){return this.gatesBy(this.checkpointsBy(this.checkpointGroup))[0]},link(){const t=window.location.origin;return this.gate?`${t}/pomiar-${this.gate.secureId}`:""},device:{get(){var t;const e=null===(t=this.gate)||void 0===t?void 0:t.device;return this.$store.getters.devices[e]},set(t){this.SELECT_CHECKPOINT_GROUP_DEVICE({checkpointGroup:this.checkpointGroup,device:t})}}}),watch:{async editing(){if(!this.editing&&this.edited)try{await this.UPDATE_CHECKPOINT_GROUP(Object(v["a"])(Object(v["a"])({},this.checkpointGroup),{},{name:this.name,gates:this.gate?[this.gate.id]:[]}))}catch(t){this.error="edit",this.editing=!0}},checkpointName(){this.name=this.checkpointName},file(t){clearInterval(this.interval),null!==t&&(this.FTP_MEASURES_IMPORTER(t),this.interval=setInterval(()=>{this.FTP_MEASURES_IMPORTER(t)},3e4))}},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Uc"],g["d"],g["ub"],g["jd"],g["Oc"]])),{},{moveCheckpointGroup(t){this.MOVE_CHECKPOINT_GROUP({checkpointGroup:this.checkpointGroup,position:this.position+t,oldPosition:this.position})},addDeviceModal(){this.$refs.modaladdDevice.openModal()},addDevice(){""===this.newDevice.title?alert("Wypełnij nazwę"):null===this.newDevice.name?alert("Wybierz urządzenie"):(this.ADD_OPE
1RATOR_DEVICE({name:this.newDevice.title,type:this.newDevice.name.value}),this.newDevice.title="",this.newDevice.name=null,this.$refs.modaladdDevice.closeModal())},copyLink(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)},FTP_MEASURES_IMPORTER(t){let e={name:t};"GEP"===this.device.type&&(e={name:t,gapTime:this.gapTime}),Pt["a"].post("/ftp-measures-importer/"+this.gate.secureId,e)},REMOVE_FTP_MEASURES_IMPORTER(){this.file=null}})},Kr=Vr,Zr=(a("225f"),Object(U["a"])(Kr,Mr,Dr,!1,null,"e3497af4",null)),Yr=Zr.exports,Qr={name:"PanelCompetitionSettingMain",components:{PanelCompetitionSettingStoperItemCheckpointGroup:Yr},props:{id:{type:Number,required:!0}},data(){return{ready:!1,files:[],showPopupForDefault:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["checkpointGroups","stoperClassifications","checkpointGroupsStart","checkpointGroupsMeta"])),{},{checkpointGroupsMinusMeta(){return this.checkpointGroups.filter(t=>1!==t.number)},canAddStart(){return this.stoperClassifications.length>this.checkpointGroupsStart.length},canAddMeta(){return this.stoperClassifications.length>this.checkpointGroupsMeta.length}}),async created(){await this.BOOTSTRAP_STOPER_SETTING(this.id);const t=await this.READ_CHRONOMETRY_FTP_FILES(this.id);this.files=t,this.ready=!0},async destroyed(){await this.TEARDOWN_STOPER_SETTING()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["a"],g["r"],g["gd"],g["b"],g["wb"],g["ad"]])),{},{defaultChrono(){this.ready=!1,this.SET_COMPETITION_CHRONO_DEFAULT(this.$props.id).then(()=>{window.location.reload()})}})},Xr=Qr,Jr=(a("3ef2"),Object(U["a"])(Xr,Rr,Lr,!1,null,"b0d399b4",null)),tl=Jr.exp
1orts,el={components:{PanelCompetitionSettingStoperMain:tl},props:{id:{type:Number,required:!0}},data(){return{ready:!1}}},al=el,nl=(a("3868"),Object(U["a"])(al,Tr,Nr,!1,null,"5e09a26b",null)),il=nl.exports,sl=function(){var t=this,e=t._self._c;return t.ready&&t.stoperGate?e("div",{staticClass:"container"},[e("div",{staticClass:"h100",class:{height:!t.stoperGate}},[e("stoper")],1)]):t._e()},ol=[],rl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"h100"},[e("stoper-controls",{attrs:{"is-panel-gate":t.isPanelGate}}),e("stoper-numbers"),t.stoperStarted&&(t.stoperMeasures.length||t.stoperOfflineMeasures.length)?e("div",{staticClass:"row justify-content-end"},[e("span",{staticClass:"stoper-export",class:{"stoper-export--gate":"panel-gate"===t.$route.name},on:{click:function(e){return t.exportMeasures()}}},[t._v("Export pomiarów")])]):t._e(),t.competition&&!t.stoperMeasures.length&&!t.stoperOfflineMeasures.length&&t.isDesktop?e("stoper-prices",{attrs:{competition:t.competition}}):e("stoper-list",{attrs:{"is-large-screen":t.isLargeScreen}}),e("stoper-keyboard",{attrs:{"is-panel-gate":t.isPanelGate,"is-large-screen":t.isLargeScreen}})],1)},ll=[],cl=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"row",class:[t.isZenMode?"mat40-desktop":"mat56-desktop"]},[t.isPanelGate?t._e():e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"controls"},[e("base-input-select",{staticClass:"gate-select",attrs:{"label-select":"name",clearable:!1,options:t.stopers,value:t.stoperGate},on:{input:function(e){return t.SELECT_STOPER_GATE(e)}}}),e("div",{staticClass:"row controls__buttons"},[e("base-button",{attrs:{btn9:"",icon:t.isZenMode?"fas fa-compress-alt":"fas fa-expand-alt"},on:{click:function(e){t.SET_ZEN_MODE(!t.isZenMode),t.events.$emit("resize-stoper")}}}),e("base-button",{staticClass:"setting-btn",attrs:{btn9:"",icon:"fas fa-cog"},on:{click:function(e){return t.$router.push({name:"panel-competition-setting-stoper",params:t.competitions[t.stopers[0].competition],alias:!0})}}},[t._v(" Konfiguracja ")])],1)],1)]),t.stoperStopped?e("div",{staticClass:"col-12 d-flex",class:{"col-lg-9":!t.isPanelGate,"col-lg-12":t.isPanelGate}},[e("span",{staticClass:"stoper-end"},[t._v("Zawody zakończone")])]):e("div",{staticClass:"col-12",class:{"col-lg-9":!t.isPanelGate,"col-lg-12":t.isPanelGate}},[e("div",{staticClass:"row",class:{marl15:t.isPanelGate}},[e("div",{staticClass:"col-lg-6 col-12 time--mobile relative"},[e("div",{class:{"justify-content-center":t.isPanelGate}},[t.stoperStarted?e("div",{staticClass:"mat15 d-flex"},[e("div",{staticClass:"time",class:{"time--without-margin":t.isPanelGate}},[t._v(" "+t._s(t._f("asTimer")(t.stoperDuration))+". "),e("div",{staticClass:"time__milliseconds"},[e("div",{staticClass:"time__milliseconds-box time__milliseconds-box--first"},t._l(10,(function(a){return e("span",{key:a,staticClass:"time__milliseconds-value"},[t._v(t._s(a-1))])})),0),e("div",{staticClass:"time__milliseconds-box time__milliseconds-box--second"},t._l(10,(function(a){return e("span",{key:a,staticClass:"time__milliseconds-value"},[t._v(t._s(a-1))])})),0),e("div",{staticClass:"time__milliseconds-box time__milliseconds-box--third"},t._l(10,(function(a){return e("span",{key:a,staticClass:"time__milliseconds-value"},[t._v(t._s(a-1))])})),0)])]),t.isPanelGate?t._e():e("span",{staticClass:"reset-button",on:{click:function(e){t.showPopup=!t.showPopup}}},[t._v(" Resetuj ")])]):e("p",{staticClass:"time disabled",class:{"time--without-margin":t.isPanelGate,"time--hide":!t.isPanelGate&&!t.isMobileView,mat15:t.isPanelGate}},[t._v(" 00:00:00.0 ")])])]),e("div",{staticClass:"none-mobile",class:{"col-lg-12":!t.stoperStarted&&!t.isPanelGate,"col-lg-6":t.stoperStarted||t.isPanelGate}},[t.stoperStarted||t.isPanelGate?[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-9"},[e("base-input-multiple",{attrs:{value:t.numbers,input:t.number},on:{change:function(e){t.numbers=e},input:function(e){t.number=e},enter:function(e){return t.ADD_STOPER_MEASURE_NUMBERS()}}})],1),e("div",{staticClass:"col-lg-3"},[e("base-button",{staticClass:"stop-btn",attrs:{btn1:"",disabled:!t.stoperStarted},on:{click:function(e){return t.ADD_STOPER_MEASURE_NUMBERS()}}},[t._v(" Stop "),e("img",{staticClass:"mal12",attrs:{src:a("1986")}}
1)])],1)]),t._m(0)]:e("div",{staticClass:"none-mobile bg-slate justify-content-center"},[e("base-button",{staticClass:"col-lg-6",attrs:{btn1:""},on:{click:t.startStoper}},[t._v(" start ")])],1)],2)])]),t.showPopup?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Resetowanie stopera ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz zresetować stoper?")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mat16"},[t._v(" Tej czynności nie będzie można cofnąć. ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){t.showPopup=!t.showPopup}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.RESET_STOPER(),t.showPopup=!t.showPopup}}},[t._v(" Resetuj ")])]},proxy:!0}],null,!1,3123005440)}):t._e()],1):t._e()},dl=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mat16"},[e("p",{staticClass:"hint"},[t._v(" Spacja dodaje numer do kolejki, Enter zatrzymuje czas. ")])])}],ul={props:{isPanelGate:{type:Boolean,default:!1}},data(){return{ready:!1,showPopup:!1,events:_["a"],isMobileView:!1,STATUSES:s["q"]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["isZenMode","stoperGate","stoperGates","stoperDuration","stoperStarted","stoperNumbers","stoperNumber","devices","stoperOrganizer","stoperStopped","competitions"])),{},{competition(){return this.competitions[this.$route.params.id]},numbers:{get(){return this.stoperNumbers},set(t){this.SET_STOPER_NUMBERS(t)}},number:{get(){return this.stoperNumber},set(t){this.SET_STOPER_NUMBER(t)}},stopers(){return this.stoperGates.filter(t=>this.devices[t.device].type===s["f"].stoper)}}),async created(){this.isPanelGate||(await this.READ_COMPETITION_ORGANIZER(this.$route.params.id),await this.READ_OPERATOR_DEVICES(this.stoperOrganizer.operator)),window.innerWidth<992&&(this.isMobileView=!0),this.ready=!0},mounted(){document.addEventListener("visibilitychange",this.handleVisibilityChange)},beforeDestroy(){document.removeEventListener("visibilitychange",this.handleVisibilityChange)},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["dd"],g["Vc"],g["g"],g["Ub"],g["mc"],g["Rc"],g["ld"]])),Object(R["d"])([ce["J"],ce["E"],ce["D"],ce["F"],ce["f"]])),{},{handleVisibilityChange(){document.hidden?this.CLEAR_STOPER_TICKER():this.stoperGate&&this.SET_STOPER_TICKER()},startStoper(){4!==this.competition.status&&this.updateCompetitionStatus(s["q"].live),this.START_STOPER()},async updateCompetitionStatus(t){await this.UPDATE_COMPETITION(Object(v["a"])(Object(v["a"])({},this.competition),{},{status:t}))}})},pl=ul,ml=(a("0ee6"),Object(U["a"])(pl,cl,dl,!1,null,"057e933c",null)),fl=ml.exports,hl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"none-mobile pab1"},[e("p",{staticClass:"mat32 pointer mab40 mal15",on:{click:function(e){t.isHide=!t.isHide}}},[t._v(" Pozostałe numery ")]),e("transition",{attrs:{name:"toggle"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isHide,expression:"isHide"}],staticClass:"container-number-groups transition"},[e("div",{staticClass:"w100 mab40 dflex flex-wrap overflow-auto"},t._l(t.sortedStoperPlayers,(function(a,n){return e("base-button",{key:a.id,staticClass:"number-other",class:{"awarded-btn":n%10===0},attrs:{btn9:"",disabled:t.stoperMeasured(a.playerNumber)},on:{click:function(e){return t.ADD_STOPER_MEASURE(a.playerNumber)}}},[t._v(" "+t._s(a.playerNumber)+" ")])})),1)])])],1)},bl=[],_l={data(){return{isHide:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["stoperPlayers","stoperMeasured"])),{},{sortedStoperPlayers(){return qe.a.sortBy(this.stoperPlayers,"playerNumber")}}),methods:Object(v["a"])({},Object(R["b"])([g["f"]]))},vl=_l,gl=(a("79e2"),Object(U["a"])(vl,hl,bl,!1,null,"5e29b2ae",null)),yl=gl.exports,Cl=function(){var t=this,e=t._self._c;return e("div",{ref:"containerStoperList",staticClass:"container-list",class:t.isLargeScreen?"container-list--large":"container-list--small"},[e("base-input-multiple",{staticClass:"none-desktop container-list__input",attrs:{value:t.numbers,input
1:t.number,"read-only":t.isMobileView},on:{change:function(e){t.numbers=e},input:function(e){t.number=e}}}),e("base-table",{ref:"table",staticClass:"list",attrs:{headers:t.headers,items:t.items},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"list__row-header"},t._l(t.headers,(function(n,i){return e("th",{key:i,class:t.classesHeader(i),on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(n,i){return e("tr",{key:i,staticClass:"list__row-body",class:{disabled:n.isInvalidated}},t._l(t.headers,(function(s,o){return e("td",{key:o,class:t.classesCell(o)},["number"===s.value?e("span",{staticClass:"list__data-number--border",on:{click:function(e){return t.setMeasureToEdit(n)}}}):t._e(),"number"!==s.value||"Brak zawodnika"!==n.name&&!t.isDuplicate(n.number,a)?t._e():e("span",{staticClass:"c-negative list__data-number--warning"},[t._v("!")]),"position"===s.value&&i>0?e("i",{staticClass:"list__btn-position fas fa-plus",on:{click:function(e){return t.swapStoperMeasure(i,i-1)}}}):t._e(),"number"===s.value?[t.editingMeasure&&(t.editingMeasure.id&&t.editingMeasure.id==n.id||t.editingMeasure.deviceTime.isSame(n.deviceTime))?[t._v(" "+t._s(t.measureNumber)+" ")]:t._e(),e("input",{directives:[{name:"show",rawName:"v-show",value:!t.editingMeasure||t.editingMeasure.id!==n.id||!t.editingMeasure.deviceTime.isSame(n.deviceTime),expression:"\n                                !editingMeasure ||\n                                    editingMeasure.id !== item.id ||\n                                    !editingMeasure.deviceTime.isSame(\n                                        item.deviceTime\n                                    )\n                            "},{name:"model",rawName:"v-model",value:n[s.value],expression:"item[header.value]"}],ref:n.id?n.id:n.deviceTime.valueOf(),refInFor:!0,staticClass:"list__data-input",class:[{cred:"?"===n[s.value]}],attrs:{type:"text",readonly:t.isMobileView},domProps:{value:n[s.value]},on:{change:function(e){return t.changeNumberMeasure(n)},input:function(e){e.target.composing||t.$set(n,s.value,e.target.value)}}})]:"Brak zawodnika"===n[s.value]?[e("span",{staticClass:"c-negative"},[t._v(t._s(n[s.value]))])]:[t._v(" "+t._s(n[s.value])+" ")],"time"===s.value?e("i",{staticClass:"list__btn-edit--mobile",class:[n.isInvalidated?"fas fa-redo":"fas fa-plus rotate45"],on:{click:function(e){return t.toggleInvalidatedStoperMeasure(i)}}}):t._e(),"clubname"===s.value?e("i",{staticClass:"list__btn-edit--desktop",class:[n.isInvalidated?"fas fa-redo":"fas fa-plus rotate45"],on:{click:function(e){return t.toggleInvalidatedStoperMeasure(i)}}}):t._e()],2)})),0)}))}},{key:"no-results",fn:function(){return[e("div",{staticClass:"d-sm"},[e("div",{staticClass:"stoper__hint"},[e("h1",{staticClass:"stoper__hint-number"},[t._v(" 1. ")]),e("p",[t._v("Wpisz numer startowy uczestnika i naciśnij stop.")])]),e("div",{staticClass:"stoper__hint"},[e("h1",{staticClass:"stoper__hint-number"},[t._v(" 2. ")]),e("p",[t._v(" Możesz dodawać numery do kolejki, używając strzałki. ")])]),e("div",{staticClass:"stoper__hint"},[e("h1",{staticClass:"stoper__hint-number"},[t._v(" 3. ")]),e("p",[t._v(" Jeśli w kolejce znajdują się numery, przyciskaj stop aby zapisać im czasy. ")])])]),e("p",{staticClass:"d-lg"},[t._v(" Brak pomiarów ")])]},proxy:!0}])})],1)},wl=[],kl=a("5e23"),xl=a("47b6"),Ol={props:{isLargeScreen:{type:Boolean,default:!1}},data(){return{headers:[{text:"",value:"position"},{text:"Nr",value:"number"},{text:"PK",value:"time"},{text:"Imię i nazwisko",value:"name"},{text:"Płeć",value:"gender"},{text:"Klasyfikacja",value:"classification"},{text:"Miasto",value:"city"},{text:"Klub",value:"clubname"}],isMobileView:!1,shouldScrollToBottom:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["stoperPlayers","stoperMeasures","measures","stoperDurationMeasure","stoperNumbers","stoperNumber","classificationsBy","editingMeasure","measureNumber","stoperOfflineMeasures"])),{},{numbers:{get(){return this.stoperNumbers},set(t){this.SET_STOPER_NUMBERS(t)}},number:{get(){return this.stoperNumber},set(t){this.SET_STOPER_NUMBER(t)}},items(){const t={};for(const o of this.stoperPlayers)t[o.playerNumber]=o;const e=this.stoperMeasures.concat(this.stoperOfflineMeasures);let a=0;const n=Object.values(e).sort((t,e)=>t.deviceTime.diff(e.deviceTime)),i=[];for(const o of n){var s;a+=1;const e=t[o.tag],n=e?this.stoperDurationMeasure(o,e):null;i.push({id:o.id,position:a,number:o.tag,time:n&&n.isValid()?f.a.utc(n.as("ms")).format("HH:mm:ss.SS"):"",name:e?`${e.firstname} ${e.lastname}`:"Brak zawodnika",gender:null===e||void 0===e?void 0:e.gender,classification:null===(s=this.classificationsBy(e)[0])||void 0===s?void 0:s.namePl,city:null===e||void 0===e?void 0:e.city,clubname:null===e||void 0===e?void 0:e.clubname,isInvalidated:o.invalidated,deviceTime:o.deviceTime})}return i}}
1),created(){"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",({data:t})=>{if("measures"===t.name){const e=Object(kl["a"])(t.data,[xl["a"].measure]);for(const t of Object.values(e.entities.measures)){const e=this.stoperOfflineMeasures.findIndex(e=>t.deviceTime.isSame(e.deviceTime));if(e>=0){const a=this.stoperOfflineMeasures[e];a.tag!==t.tag&&(t.tag=a.tag),t.invalidated=a.invalidated,this.CLEAR_OFFLINE_MEASURE(e)}}this.SET_ENTITIES(e.entities)}})},watch:{"items.length"(t,e){t>e&&(this.shouldScrollToBottom=!0)}},mounted(){document.body.clientWidth<992&&(this.isMobileView=!0),this.setHeightOfStoperList(),_["a"].$on("resize-stoper",()=>{setTimeout(()=>this.setHeightOfStoperList(),200)}),window.addEventListener("beforeunload",this.handleBeforeUnload)},beforeDestroy(){window.removeEventListener("beforeunload",this.handleBeforeUnload)},beforeUpdate(){this.setHeightOfStoperList()},updated(){this.shouldScrollToBottom&&(this.shouldScrollToBottom=!1,this.scrollToBottomList())},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["ed"],g["od"]])),Object(R["d"])([ce["D"],ce["E"],ce["l"],ce["p"],ce["d"],ce["m"]])),{},{isDuplicate(t,e){return e.filter(e=>e.number===t).length>=2},classesHeader(t){return{"list__head none-mobile":!0,"list__data-w9":0===t,"list__data-w9 ":1===t," list__data-w10":2===t,"list__data-w20":3===t,"list__data-w5":4===t,"list__data-w11":5===t,"list__data-w10":6===t,"list__data-w26":7===t}},classesCell(t){return{list__data:!0,"none-mobile":t>2,"list__data-position list__data-w9":0===t,"list__data-w9 list__data-number":1===t,"list__data-time list__data-w10":2===t,"list__data-w20":3===t,"list__data-w5":4===t,"list__data-w11":5===t,"list__data-w10":6===t,"list__data-w26 position-relative":7===t}},async toggleInvalidatedStoperMeasure(t){let e;e=this.items[t].id?this.measures[this.items[t].id]:this.stoperOfflineMeasures.find(e=>e.deviceTime.isSame(this.items[t].deviceTime)),e.invalidated=!e.invalidated,await this.UPDATE_MEASURE(e)},async swapStoperMeasure(t,e){const a=this.items[t].id?this.measures[this.items[t].id]:this.stoperOfflineMeasures.find(e=>e.deviceTime.isSame(this.items[t].deviceTime)),n=this.items[e].id?this.measures[this.items[e].id]:this.stoperOfflineMeasures.find(t=>t.deviceTime.isSame(this.items[e].deviceTime));await this.SWAP_STOPER_MEASURES([a,n])},async changeNumberMeasure(t){let e;e=t.id?this.measures[t.id]:qe.a.find(this.stoperOfflineMeasures,e=>e.deviceTime.isSame(t.deviceTime)),e.tag=t.number,await this.UPDATE_MEASURE(e),document.getElementById("multipleInput").focus()},setHeightOfStoperList(){if(this.isMobileView)return;const t=window.innerHeight,e=document.getElementById("layoutBack").offsetHeight,a=t-e+"px";this.$refs.containerStoperList.style.height=a},setMeasureToEdit(t){if(this.isMobileView){let e;e=t.id?this.measures[t.id]:qe.a.find(this.stoperOfflineMeasures,e=>e.deviceTime.isSame(t.deviceTime)),this.SET_EDITING_MEASURE(e),this.SET_IS_EDITING_MEASURE_NUMBER(!0)}else t.id?this.$refs[t.id][0].focus():this.$refs[t.deviceTime.valueOf()][0].focus()},scrollToBottomList(){this.$refs.table.$el.scrollTo({top:this.$refs.table.$el.scrollHeight,behavior:"smooth"})},handleBeforeUnload(t){const e=this.items.some(t=>"Brak zawodnika"===t.name);e&&(t.preventDefault(),t.returnValue="")}})},Al=Ol,Sl=(a("a0bd"),Object(U["a"])(Al,Cl,wl,!1,null,"6b242345",null)),zl=Sl.exports,jl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"stoper-prices"},[e("div",{staticClass:"stoper-price__left-background",style:{width:t.widthOfAdditionalBackground+"px"}}),e("div",{staticClass:"stoper-price__right-background",style:{width:t.widthOfAdditionalBackground+"px"}}),e("div",{ref:"prices",staticClass:"container"},[e("div",{staticClass:"row align-items-end"},[e("div",{staticClass:"col-lg-3"},[e("div",{staticClass:"mar30"},[e("h2",[t._v("Koszt pomiaru czasu stoperem")]),e("p",{staticClass:"stoper-prices__hint"},[t._v(" Jeśli do Twoich zawodów zapisało się ponad 50 uczestników, otrzymasz od nas fakturę VAT na kwotę uzależnioną do liczby uczesników w zawodach. ")]),t._m(0),t.competitionPlayerCount?e("div",{staticClass:"stoper-prices__players row"},[e("h1",{staticClass:"stoper-prices__players-value"},[t._v(" "+t._s(t.playersCount)+" ")]),t._m(1)]):t._e()])]),e("div",{staticClass:"col-lg-9"},[e("div",{staticClass:"row h100"},[e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"stoper-prices__box",class:{"stoper-prices__box--active":t.playersCount<=50}},[t._m(2),e("h2",{staticClass:"stoper-prices__box-price"},[t._v(" 0 zł ")])])]),e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"stoper-prices__box",class:{"stoper-prices__box--active":t.playersCount>50&&t.playersCount<=100}},[t._m(3),e("h2",{staticClass:"stoper-prices__box-price"},[t._v(" 250 zł ")]),e("p",{staticClass:"text-center mat4"},[t._v(" za zawody ")])])]),e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"stoper-prices__box",class:{"stoper-prices__box--active":t.playersCount>100}},[t._m(4),e("h2",{staticClass:"stoper-prices__box-price"},[t._v(" 2,50 zł ")]),e("p",{staticClass:"text-center mat4"},[t._v(" za uczestnika ")])])])])])])])])},Il=[function(){var t=this,e=t._self._c;return e("p",{staticClass:"stoper-prices__hint"},[t._v(" W zawodach do 50 uczestników pomiar stoperem jest "),e("span",{staticClass:"positive"},[t._v("DARMOWY")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"stoper-prices__players-hint"},[e("p",[t._v(" Aktualna liczba zarejestrowanych uczestników ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"stoper-prices__box-hint"},[e("p",[t._v("Zawody sportowe")]),e("h3",{staticClass:"f36"},[t._v(" do 50 ")]),e("p",[t._v("uczestników")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"stoper-prices__box-hint"},[e("p",[t._v("Zawody sportowe")]),e("h3",{staticClass:"f36"},[t._v(" do 100 ")]),e("p",[t._v("uczestników")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"stoper-prices__box-hint"},[e("p",[t._v("Zawody sportowe")]),e("h3",{staticClass:"f36"},[t._v(" ponad 100 ")]),e("p",[t._v("uczestników")])])}],Pl={props:{competition:{type:Object,required:!0}}
1,data(){return{widthOfAdditionalBackground:0,peopleCount:99}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitionPlayerCounts","competitionsSettings"])),{},{competitionSetting(){return this.competitionsSettings[this.competition.competitionSetting]},isRegisterPlayerLimit(){return"register"===this.competitionSetting.playersKindLimit},competitionPlayerCount(){return this.competitionPlayerCounts[this.competition.id]},playersCount(){var t,e;return this.isRegisterPlayerLimit?null===(e=this.competitionPlayerCount)||void 0===e?void 0:e.playersCount:null===(t=this.competitionPlayerCount)||void 0===t?void 0:t.playersPayCount}}),async created(){await this.READ_COMPETITION_COUNT(this.competition.id)},mounted(){this.$nextTick(()=>this.measureWidthOfAdditionalBackground()),window.addEventListener("resize",()=>this.measureWidthOfAdditionalBackground())},beforeDestroy(){window.removeEventListener("resize",()=>this.measureWidthOfAdditionalBackground())},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Qb"]])),{},{measureWidthOfAdditionalBackground(){var t;const e=null===(t=this.$refs.prices)||void 0===t?void 0:t.clientWidth,a=document.body.clientWidth,n=Number.parseFloat((a-e)/2);this.widthOfAdditionalBackground=n}})},El=Pl,Tl=(a("29dc"),Object(U["a"])(El,jl,Il,!1,null,"730c5d74",null)),Nl=Tl.exports,Rl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"keyboard"},[t.isEditingMeasureNumber?[e("div",{staticClass:"row",class:{palr8:"panel-gate"===t.$route.name}},[e("div",{staticClass:"col-6"},[e("base-button",{staticClass:"mar4 cancel-btn",attrs:{btn9:""},on:{click:function(e){return t.cancelEditNumber()}}},[t._v(" Anuluj ")])],1),e("div",{staticClass:"col-6"},[e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.updateMeasureNumber()}}},[t._v(" Zapisz ")])],1)])]:[t.stoperStarted||t.isPanelGate?e("base-button",{staticClass:"keyboard__primary-btn",class:t.isLargeScreen?"keyboard__primary-btn--large":"keyboard__primary-btn--small",attrs:{btn1:"",disabled:!t.stoperStarted||t.stoperStopped},on:{click:function(e){return t.ADD_STOPER_MEASURE_NUMBERS(t.stoperNumber)}}},[t._v(" Stop ")]):e("base-button",{staticClass:"keyboard__primary-btn",class:t.isLargeScreen?"keyboard__primary-btn--large":"keyboard__primary-btn--small",attrs:{btn1:""},on:{click:function(e){return t.START_STOPER()}}},[t._v(" Start ")])],e("div",{staticClass:"keyboard__keys",class:t.isLargeScreen?"mat16":"mat12"},[e("div",{staticClass:"row",class:{palr8:"panel-gate"===t.$route.name}},[t._l(9,(function(a){return e("div",{key:a,staticClass:"col-4"},[e("base-button",{staticClass:"keyboard__keys-item",class:[{"mar4 mab4":![3,6,9].includes(a)},t.isLargeScreen?"keyboard__keys-item--large":"keyboard__keys-item--small"],attrs:{btn9:""},on:{click:function(e){t.isEditingMeasureNumber?t.digitMeasureInput(a):t.digit(a)}}},[t._v(" "+t._s(a)+" ")])],1)})),e("div",{staticClass:"col-4"},[e("div",{staticClass:"keyboard__keys-action mar4",class:t.isLargeScreen?"keyboard__keys-item--large":"keyboard__keys-item--small",on:{click:function(e){return t.space()}}},[e("i",{staticClass:"fas fa-arrow-right"})])]),e("div",{staticClass:"col-4"},[e("base-button",{staticClass:"mar4 keyboard__keys-item",class:t.isLargeScreen?"keyboard__keys-item--large":"keyboard__keys-item--small",attrs:{btn9:""},on:{click:function(e){t.isEditingMeasureNumber?t.digitMeasureInput(0):t.digit(0)}}},[t._v(" 0 ")])],1),e("div",{staticClass:"col-4"},[e("div",{staticClass:"keyboard__keys-action",class:t.isLargeScreen?"keyboard__keys-item--large":"keyboard__keys-item--small",on:{click:function(e){t.isEditingMeasureNumber?t.backspaceMeasureInput():t.backspace()}}},[e("i",{staticClass:"fas fa-backspace"})])])],2)])],2)},Ll=[],Ml={props:{isLargeScreen:{type:Boolean,default:!1},isPanelGate:{type:Boolean,default:!1}},computed:Object(v["a"])({},Object(R["c"])(["isZenMode","stoperStarted","stoperNumber","stoperNumbers","measureNumber","isEditingMeasureNumber","editingMeasure","stoperStopped"])),methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["dd"],g["g"],g["od"]])),Object(R["d"])([ce["D"],ce["E"],ce["u"],ce["p"],ce["l"]])),{},{space(){this.SET_STOPER_NUMBERS(this.stoperNumbers.concat(this.stoperNumber)),this.SET_STOPER_NUMBER("")},backspace(){this.stoperNumber?this.SET_STOPER_NUMBER(this.stoperNumber.slice(0,-1)):this.SET_STOPER_NUMBERS(this.stoperNumbers.slice(0,-1))},digit(t){this.SET_STOPER_NUMBER(this.stoperNumber.concat(t))},digitMeasureInput(t){this.SET_MEASURE_NUMBER(this.measureNumber.concat(t))},backspaceMeasureInput(){this.measureNumber.length&&this.SET_MEASURE_NUMBER(this.measureNumber.split("").slice(0,-1).join(""))},updateMeasureNumber(){const t=this.editingMeasure;t.tag=this.measureNumber,this.SET_MEASURE_NUMBER(""),this.UPDATE_MEASURE(t),this.SET_IS_EDITING_MEASURE_NUMBER(!1),this.SET_EDITING_MEASURE(null)},cancelEditNumber(){this.SET_EDITING_MEASURE(null),this.SET_MEASURE_NUMBER(""),this.SET_IS_EDITING_MEASURE_NUMBER(!1)}})},Dl=Ml,$l=(a("6abe"),Object(U["a"])(Dl,Rl,Ll,!1,null,"3e542563",null)),Ul=$l.exports,Bl=a("9d17"),Fl={components:{StoperControls:fl,StoperNumbers:yl,StoperList:zl,StoperKeyboard:Ul,StoperPrices:Nl},props:{isPanelGate:{type:Boolean,default:!1}},data(){return{isLargeScreen:!1,isDesktop:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","stoperGates","stoperOfflineMeasures","stoperMeasures","stoperDurationMeasure","stoperPlayers","stoperGate","stoperStarted"])),{},{competition(){return this.competitions[this.stoperGates[0].competition]}}),created(){this.measureScreenHeight(),window.innerWidth<992&&(this.isDesktop=!1)},methods:{measureScreenHeight(){this.isLargeScreen=window.screen.height>=730},createData(t){const e=[];let a=1,n=1;e[0]=["Pozycja","Numer zawodnika","Czas","Czy pomiar usuniety"];for(const o of t){var i,s;e[a]=[],a+=1;let t=0;const r=this.stoperPlayers.find(t=>t.playerNumber===Number.parseInt(o.tag,10));let l,c;r&&(l=this.stoperDurationMeasure(o,r),c=this.$options.filters.asStoper(l));const d={position:n,number:null!==(i=null===r||void 0===r?void 0:r.playerNumber)&&void 0!==i?i:"brak",time:null!==(s=c)&&void 0!==s?s:"brak",isRemoved:o.invalidated?"Tak":"Nie"};n+=1;for(const n of Object.values(d))e[a-1][t]=n,t+=1}return e},exportMeasures(){const t=this.stoperMeasures.concat(this.stoperOfflineMeasures),e=Object.values(t).sort((t,e)=>t.deviceTime.diff(e.deviceTime)),a=this.createData(e),n=Object(Bl["a"])(a);Object(Bl["c"])(`urzadzenie-${this.stoperGate.device}-bramka-${this.stoperGate.id}`,n)}}},ql=Fl,Hl=(a("3980"),Object(U["a"])(ql,rl,ll,!1,null,"1857a058",null)),Gl=Hl.exp
1orts,Wl={components:{Stoper:Gl},props:{id:{type:Number,required:!0}},data(){return{ready:!1}},computed:Object(v["a"])({},Object(R["c"])(["stoperGate","stoperGates","devices"])),async created(){await this.BOOTSTRAP_STOPER({id:this.id,isSettingPage:!1});const t=qe.a.find(this.stoperGates,t=>this.devices[t.device].type===s["f"].stoper);await this.SELECT_STOPER_GATE(t),this.ready=!0},async destroyed(){await this.TEARDOWN_STOPER()},methods:Object(v["a"])({},Object(R["b"])([g["q"],g["Vc"],g["fd"]]))},Vl=Wl,Kl=(a("2949"),Object(U["a"])(Vl,sl,ol,!1,null,"a42d2432",null)),Zl=Kl.exports,Yl=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-lg-12 dashboard"},[e("div",{staticClass:"dashboard-wrapper"},[!1===t.competitionSetting.canQR?e("div",{staticClass:"insurance"},[t._m(0),t._m(1),e("base-button",{attrs:{btn1:""},on:{click:function(e){return t.save("on")}}},[t._v("Włącz Kody QR")])],1):t.competitionSetting.canQR?e("div",{staticClass:"insurance"},[t._m(2),e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.save("off")}}},[t._v("Wyłącz Kody QR")])],1):t._e()])]),t.competitionSetting.canQR?e("div",{staticClass:"col-12 mt-4"},[e("div",{staticClass:"add-point-wrapper"},[e("h3",[t._v("Dodaj nowy czytnik QR")]),e("div",{staticClass:"row align-items-center mat24"},[e("div",{staticClass:"col-lg-6 col-12"},[e("div",{staticClass:"input-field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newPointIdentifier,expression:"newPointIdentifier"}],staticClass:"input-field__input",attrs:{type:"text",placeholder:"Nazwa punktu (np. brama-wschodnia)"},domProps:{value:t.newPointIdentifier},on:{input:function(e){e.target.composing||(t.newPointIdentifier=e.target.value)}}})])]),e("div",{staticClass:"col-lg-3 col-12 mt-2 mt-lg-0"},[e("base-button",{attrs:{btn1:"",disabled:!t.newPointIdentifier},on:{click:t.createPickUpPoint}},[t._v(" Generuj nowy czytnik ")])],1)])])]):t._e(),t.competitionSetting.canQR&&t.pickUpPoints.length>0?e("div",{staticClass:"col-12 mt-4"},t._l(t.pickUpPoints,(function(a){return e("div",{key:a.id,staticClass:"point-card mat24"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-8 col-12 d-flex flex-column"},[e("div",{staticClass:"point-header"},[e("h3",[t._v("Punkt: "+t._s("1"===a.identifier?"Główny":a.identifier))]),e("small",{staticClass:"text-muted small"},[t._v("Utworzono: "+t._s(a.createdAt))])]),e("div",{staticClass:"mat16"},[t._v("Link do czytnika:")]),e("div",{staticClass:"mat8 border-box--gray checkpoint__link align-items-center justify-content-space-between mt-2"},[e("p",{staticClass:"mb-0"},[t._v(t._s(t.getLink(a)))]),e("base-button",{staticClass:"mt-4 mt-lg-0 ml-lg-3 flex-shrink-0",attrs:{btn9:"",icon:"far fa-link"},on:{click:function(e){t.copyLink(t.getLink(a))}}},[t._v(" Kopiuj ")])],1)]),e("div",{staticClass:"col-lg-4 col-12 mt-4 mt-lg-0 text-center"},[e("div",{staticClass:"qr-wrapper"},[e("p",{staticClass:"mb-2"},[t._v("Kod QR do skanera")]),t.qrImages[a.identifier]?e("div",{staticClass:"qr-image-box"},[e("img",{attrs:{src:t.qrImages[a.identifier],alt:"QR Code"}})]):e("div",{staticClass:"qr-loading"},[e("i",{staticClass:"fas fa-spinner fa-spin"}),t._v(" Generowanie... ")]),e("div",{staticClass:"player-count mat8"},[e("span",{staticClass:"count-badge"},[t._v(" Zeskanowano osób: "),e("strong",[t._v(t._s(a.playerCount))])])])])])])])})),0):t._e()])]):t._e()},Ql=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-status"},[e("img",{attrs:{src:a("933e"),alt:""}}),e("h2",[t._v("Kody QR nieaktywne")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-content"},[e("p",[e("b",[t._v("Uczestnicy będą automatycznie dostawać kody QR w mailu z rejestracją.")])]),e("p",[t._v("Dzięki temu odbierze pakiet startowy w prostszy sposób.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-status active mb-4"},[e("img",{attrs:{src:a("201b7"),alt:""}}),e("h2",{staticClass:"text-green"},[t._v("Kody QR aktywne")])])}],Xl=a("bc3a"),Jl=a.n(Xl),tc={name:"PanelCompetitionSettingScannerQR",props:{id:{type:Number,required:!0},competition:{type:Object,required:!0}},data(){return{ready:!0,pickUpPoints:[],qrImages:{},newPointIdentifier:""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitionsSettings","token"])),{},{competitionSetting(){return this.competitionsSettings[this.id]}}),created(){this.competitionSetting.canQR&&this.initData()},methods:{async initData(){await this.getPickUpPoints()},async save(t){try{this.ready=!1,await Jl.a.put(`panel/competitions/${this.id}
1/settings`,{canQR:"on"===t}),this.competitionSetting&&(this.competitionSetting.canQR="on"===t),"on"===t?await this.initData():(this.pickUpPoints=[],this.qrImages={})}catch(e){console.error("Error saving scanner QR setting",e)}finally{this.ready=!0}},async getPickUpPoints(){try{var t;const e=await Jl.a.get(`qr/competition/${this.id}/pickup-points`);this.pickUpPoints=e,null===(t=this.pickUpPoints)||void 0===t||t.forEach(t=>{this.generateQRCode(t.identifier)})}catch(e){console.error("Error fetching pickup points",e)}},async createPickUpPoint(){if(this.newPointIdentifier)try{await Jl.a.get(`qr/generate/competition/${this.id}/${this.newPointIdentifier}`),this.newPointIdentifier="",await this.getPickUpPoints()}catch(t){console.error("Error creating pickup point",t),alert("Wystąpił błąd podczas tworzenia punktu.")}},async generateQRCode(t){if(!this.qrImages[t])try{let e="qr/generate/competition/"+this.id;t&&"1"!==t&&(e+="/"+t);const a=await Jl.a.get(e,{responseType:"blob",headers:{"X-Access-Token":this.token}});let n=a&&a.data instanceof Blob?a.data:a;n instanceof Blob||(n=new Blob([n]));const i=n.type||"";if(i.startsWith("image/")){const e=URL.createObjectURL(n);this.qrImages=Object(v["a"])(Object(v["a"])({},this.qrImages),{},{[t]:e})}}catch(e){console.error("Error generating QR for "+t,e)}},getLink(t){const e=window.location.origin,a=`${e}/qrreader-${this.competition.apiKey}`;return"1"===t.identifier?a:`${a}?pickuppoint=${t.identifier}`},copyLink(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}}},ec=tc,ac=(a("bbb7"),Object(U["a"])(ec,Yl,Ql,!1,null,"12292708",null)),nc=ac.exports,ic=function(){var t,e,n,i=this,s=i._self._c;return s("div",[s("div",{staticClass:"TopBar"},[s("router-link",{attrs:{to:i.navigateToList}},[s("img",{attrs:{src:a("b743"),alt:"Logo dostartu"}})]),s("router-link",{attrs:{to:i.navigateToList}},[s("img",{attrs:{src:a("7936"),alt:"Logo dostartu"}})])],1),s("ScannerQR",{ref:"scanner",attrs:{headerOffset:48},on:{decoded:i.onDecoded,error:i.onScanError}}),s("div",{staticClass:"search-wrapper",on:{click:i.openSearchView}},[i._m(0)]),i.showSearchView?s("div",{staticClass:"search-view"},[s("div",{staticClass:"search-view-topbar"},[s("router-link",{attrs:{to:i.navigateToList}},[s("img",{attrs:{src:a("b743"),alt:"Logo dostartu"}})])],1),s("div",{staticClass:"search-input-container"},[s("div",{staticClass:"search-input-wrapper"},[s("i",{staticClass:"fas fa-search"}),s("input",{directives:[{name:"model",rawName:"v-model",value:i.searchQuery,expression:"searchQuery"}],ref:"searchInput",staticClass:"search-input",attrs:{type:"text",placeholder:"Wyszukaj uczestnika lub nr startowy..."},domProps:{value:i.searchQuery},on:{input:function(t){t.target.composing||(i.searchQuery=t.target.value)}}})])]),s("div",{staticClass:"participants-list-container"},[s("div",{staticClass:"participants-list"},i._l(i.filteredParticipants,(function(t){return s("div",{key:t.id||t.playerNumber+"-"+t.firstname+"-"+t.lastname,staticClass:"participant-item",on:{click:function(e){return i.selectParticipant(t)}}},[s("div",{staticClass:"participant-info"},[s("div",{staticClass:"participant-name"},[i._v(i._s(t.firstname)+" "+i._s(t.lastname))]),s("div",{staticClass:"participant-number"},[i._v(i._s(t.playerNumber))]),s("i",{staticClass:"fas fa-caret-right"})])])})),0)]),s("div",{staticClass:"search-view-close",on:{click:i.closeSearchView}},[s("i",{staticClass:"fas fa-times"})])]):i._e(),s("div",{staticClass:"info-box",class:{"info-box--shown":i.showInfoBox}},[i.infoLoading?s("div",{staticClass:"info-box-header"},[i._m(1)]):"noCamera"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--warning"},[s("div",[s("ExclamationMark",{attrs:{fill:"#455A64"}}),s("b",[i._v("Brak dostępnej kamery")])],1),s("div",[s("base-button",{attrs:{btn2:""},on:{click:i.tryAgain}},[i._v(" spróbuj ponownie ")])],1)]):"permission"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--warning"},[s("div",[s("ExclamationMark",{attrs:{fill:"#455A64"}}),s("b",[i._v("Odmowa dostępu do kamery")])],1),s("div",[s("base-button",{attrs:{btn2:""},on:{click:i.tryAgain}},[i._v(" spróbuj ponownie ")])],1)]):"insecure"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--warning"},[s("div",[s("ExclamationMark",{attrs:{fill:"#455A64"}}),s("b",[i._v("Wymagany HTTPS lub uruchom na localhost")])],1)]):["success"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--success"},[s("div",[s("CheckmarkCircle"),s("b",[i._v("Wszystko w porządku, możesz wydać numer")])],1)]):i._e(),"alreadyIssued"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--error"},[s("div",[s("ExclamationTriangle"),s("b",[i._v("Numer startowy został 
1już wydany")])],1),s("div",{staticStyle:{width:"100%"}},[s("base-button",{staticStyle:{width:"100%",color:"white"},attrs:{btn4:""},on:{click:i.revert}},[i._v("Cofnij wydanie numeru")])],1)]):i._e(),"noPlayerNumber"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--error"},[s("div",[s("ExclamationTriangle"),s("b",[i._v("Brak Numeru startowego")])],1)]):i._e(),"reverted"===i.infoStatus?s("div",{staticClass:"info-box-header"},[s("div",[s("CheckmarkCircle",{attrs:{fill:"#455A64"}}),s("b",[i._v("Wydanie numeru zostało cofnięnie.")])],1)]):i._e(),"noFee"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--error"},[s("div",[s("ExclamationTriangle"),s("b",[i._v("Brak opłaty startowej")])],1)]):i._e(),"warning"===i.infoStatus||"error"===i.infoStatus?s("div",{staticClass:"info-box-header info-box-header--warning"},[s("div",[s("ExclamationMark",{attrs:{fill:"#455A64"}}),s("b",[i._v("Niepoprawny kod QR")])],1)]):i._e(),s("div",{ref:"infoContent",staticClass:"info-box-content",class:{"has-scroll":i.contentScrollable},on:{scroll:i.onContentScroll}},["noPlayerNumber"===i.infoStatus?s("ValidationObserver",{ref:"playerNumberFormOb
1server",attrs:{tag:"div"},scopedSlots:i._u([{key:"default",fn:function({handleSubmit:t}){return[s("form",{staticClass:"row add-person",on:{submit:function(e){return e.preventDefault(),t(i.add)}}},[s("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerNumber",rules:"required"},scopedSlots:i._u([{key:"default",fn:function({errors:t}){return[s("base-input-text",{staticClass:"form-input",attrs:{type:"number",label:"Numer startowy",error:t[0]},on:{"update:error":function(e){return i.$set(t,0,e)}},model:{value:i.playerNumber,callback:function(t){i.playerNumber=t},expression:"playerNumber"}})]}}],null,!0)})],1)]}}],null,!1,3493682996)}):s("div",[s("div",[s("div",{staticClass:"label"},[i._v("Numer startowy")]),s("div",{staticClass:"text text-lg"},[i._v(i._s(i.info.startNumber||"-"))])])]),s("div",[s("div",[s("div",{staticClass:"label"},[i._v("Uczestnik")]),s("div",{staticClass:"text text-lg"},[i._v(i._s(i.info.participantName||"-"))])]),s("div",{staticClass:"flex-end"},[s("div",{staticClass:"label"},[i._v("Wiek")]),s("div",{staticClass:"text text-lg"},[i._v(i._s(i.info.age||"-"))])])]),s("div",[s("div",[s("div",{staticClass:"label"},[i._v("Klasyfikacja")]),s("div",{staticClass:"text"},[i._v(i._s((null===(t=i.classification)||void 0===t?void 0:t.namePl)||i.info.classification||"-"))])])]),s("div",[s("div",[s("div",{staticClass:"label"},[i._v("Nr chipa")]),s("div",{staticClass:"text"},[i._v(i._s(i.info.chipNumber||"-"))])]),s("div",{staticClass:"flex-end"},[s("div",{staticClass:"label"},[i._v("Nr GPS")]),s("div",{staticClass:"text"},[i._v(i._s(i.info.gpsNumber||"-"))])])]),null!==(e=i.info)&&void 0!==e&&e.shopSales&&i.info.shopSales.length>0?[s("hr"),s("div",[s("div",[s("div",{staticClass:"label"},[i._v("Pakiet startowy")]),s("div",{staticClass:"shop-item-wrap"},i._l(i.info.shopSales,(function(t){return s("div",{staticClass:"shop-item"},[s("div",[s("div",{staticClass:"label"},[i._v("x"+i._s(t.items))]),s("div",{staticClass:"text"},[i._v(i._s(t.shopProduct))])]),s("div",[s("div",{staticClass:"label",staticStyle:{"text-align":"right"}},[i._v(i._s(t.model))]),s("div",{staticClass:"text",staticStyle:{"text-align":"right"}},[t.pay?i._e():s("small",{staticStyle:{color:"var(--color-pinky-red, red)"}},[i._v("niezapłacone")]),i._v(" "+i._s(t.amount))])])])})),0)])])]:i._e(),null!==(n=i.info)&&void 0!==n&&n.notes?[s("hr"),s("div",[s("div",[s("div",{staticClass:"label"},[i._v("Notatka")]),s("div",{staticClass:"text"},[i._v(i._s(i.info.notes||"-"))])])])]:i._e()],2),s("div",{staticClass:"info-box-footer",style:{"--shadow-opacity":i.contentScrollable?i.shadowOpacity:0,"--shadow-height":i.contentScrollable?i.shadowHeight+"px":"0px"}},["noPlayerNumber"===i.infoStatus?s("base-button",{staticStyle:{width:"100%"},attrs:{btn1:""},on:{click:i.setPlayerNumber}},[i._v("Ustaw numer i wydaj pakiet")]):i._e(),s("base-button",{attrs:{btn4:""},on:{click:i.closeInfoBox}},[i._v(" zamknij ")])],1)]],2)],1)},sc=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-trigger"},[e("i",{staticClass:"fas fa-search"}),e("span",[t._v("Wyszukaj uczestnika lub nr startowy....")])])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"flex","align-items":"center",gap:"12px"}},[e("span",{staticClass:"spinner spinner--small"}),e("b",[t._v("Synchronizacja danych…")])])}],oc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"qr-wrapper",style:t.containerStyle},[e("div",{staticClass:"qr-region",style:t.containerStyle,attrs:{id:t.regionId}}),t.loadingStart?e("div",{staticClass:"qr-overlay"},[e("div",{staticClass:"spinner"}),e("div",{staticClass:"spinner-label"},[t._v("Uruchamianie kamery…")])]):t._e()])},rc=[],lc=a("784e"),cc={name:"QrScanner",props:{headerOffset:{type:Number,default:64}},data(){return{html5Qr:null,regionId:"qr-reader-"+Math.random().toString(36).slice(2),scanning:!1,paused:!1,loadingStart:!1,viewportHeight:"undefined"!==typeof window?window.innerHeight:0}},computed:{containerStyle(){const t=Math.max(0,this.viewportHeight-this.headerOffset);return{width:"100%",height:t+"px",position:"relative",overflow:"hidden",background:"#000"}}}
1,mounted(){this.html5Qr=new lc["a"](this.regionId,{verbose:!0}),window.addEventListener("resize",this.onResize),window.addEventListener("orientationchange",this.onResize)},beforeDestroy(){window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onResize),this.stop()},methods:{async start(){this.loadingStart=!0,this.$emit("scanner-starting");try{if(!window.isSecureContext)return console.error("[QR] insecure context: require HTTPS or localhost"),this.$emit("error",new Error("Skaner wymaga HTTPS lub localhost.")),this.$emit("scanner-error",new Error("insecure")),void(this.loadingStart=!1);const t=await lc["a"].getCameras();if(console.log("[QR] cameras",t),!t||0===t.length){const t=new Error("Brak kamery. Uruchom na urządzeniu mobilnym lub użyj uploadu zdjęcia.");return this.$emit("error",t),this.$emit("scanner-error",t),void(this.loadingStart=!1)}await this.html5Qr.start({facingMode:"environment"},{fps:10,qrbox:(t,e)=>{const a=Math.floor(.9*Math.min(t,e));return{width:a,height:a}},aspectRatio:window.innerWidth/(window.innerHeight-this.headerOffset)},t=>{this.$emit("decoded",t),this.pause()},t=>{}),this.scanning=!0,this.paused=!1,this.loadingStart=!1,this.$emit("scanner-started")}catch(t){console.error("[QR] start error",t),this.$emit("error",t),this.$emit("scanner-error",t),this.scanning=!1,this.loadingStart=!1}},async stop(){this.html5Qr&&this.scanning&&(await this.html5Qr.stop(),await this.html5Qr.clear(),this.scanning=!1,this.paused=!1,this.loadingStart=!1)},pause(){if(this.html5Qr&&this.scanning&&!this.paused){try{this.html5Qr.pause(!0)}catch(t){}this.paused=!0}},resume(){if(this.html5Qr&&this.scanning&&this.paused){try{this.html5Qr.resume()}catch(t){}this.paused=!1}},onResize(){this.viewportHeight=window.innerHeight||this.viewportHeight,this.scanning&&this.stop().then(()=>this.start())}}},dc=cc,uc=(a("e815"),Object(U["a"])(dc,oc,rc,!1,null,"17737496",null)),pc=uc.exports,mc=function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:this.$props.width,height:this.$props.height,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M20.8334 3.33325C30.4984 3.33325 38.3334 11.1683 38.3334 20.8333C38.3334 30.4982 30.4984 38.3333 20.8334 38.3333C11.1684 38.3333 3.33337 30.4982 3.33337 20.8333C3.33337 11.1683 11.1684 3.33325 20.8334 3.33325ZM20.8334 5.00024C12.0889 5.00024 5.00037 12.0887 5.00037 20.8333C5.00037 29.5778 12.0889 36.6663 20.8334 36.6663C29.5779 36.6663 36.6664 29.5778 36.6664 20.8333C36.6664 12.0887 29.5779 5.00024 20.8334 5.00024ZM21.6664 26.6663H20.0004V25.0002H21.6664V26.6663ZM20.8334 13.3333C21.2935 13.3333 21.6662 13.7062 21.6664 14.1663V20.8333C21.6664 21.2935 21.2936 21.6663 20.8334 21.6663C20.3731 21.6663 20.0004 21.2935 20.0004 20.8333V14.1663C20.0005 13.7062 20.3732 13.3333 20.8334 13.3333Z",fill:this.$props.fill}})])},fc=[],hc={name:"ExclamationMark",props:{width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},fill:{type:String,default:"white"}}},bc=hc,_c=Object(U["a"])(bc,mc,fc,!1,null,null,null),vc=_c.exports,gc=function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:this.$props.width,height:this.$props.height,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M20.0002 3.33325C29.2048 3.33343 36.6663 10.7956 36.6663 20.0002C36.6661 29.2047 29.2047 36.6661 20.0002 36.6663C10.7956 36.6663 3.33343 29.2048 3.33325 20.0002C3.33325 10.7955 10.7955 3.33325 20.0002 3.33325ZM20.0002 5.00024C11.716 5.00024 5.00024 11.716 5.00024 20.0002C5.00042 28.2844 11.7161 35.0002 20.0002 35.0002C28.2843 35.0001 35.0001 28.2843 35.0002 20.0002C35.0002 11.7161 28.2844 5.00042 20.0002 5.00024ZM25.2444 15.2444C25.5698 14.9189 26.0967 14.9189 26.4221 15.2444C26.7476 15.5698 26.7476 16.0967 26.4221 16.4221L18.0891 24.7561C17.7637 25.0814 17.2358 25.0815 16.9104 24.7561L13.5774 21.4221C13.2522 21.0967 13.2522 20.5698 13.5774 20.2444C13.9028 19.9189 14.4307 19.9189 14.7561 20.2444L17.5002 22.9885L25.2444 15.2444Z",fill:this.$props.fill}})])},yc=[],Cc={name:"CheckmarkCircle",props:{width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},fill:{type:String,default:"white"}}},wc=Cc,kc=Object(U["a"])(wc,gc,yc,!1,null,null,null),xc=kc.exports,Oc=function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:this.$props.width,height:this.$props.height,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M20.0966 5.44336C20.4096 4.85212 21.2572 4.85212 21.5702 5.44336L36.5702 33.7764C36.8639 34.3312 36.4616 34.9997 35.8339 35H5.83386C5.20588 35 4.80273 34.3314 5.09656 33.7764L20.0966 5.44336ZM7.21765 33.333H34.4491L20.8339 7.61426L7.21765 33.333ZM21.6669 26.667V28.333H19.9999V26.667H21.6669ZM20.8339 15C21.2938 15.0003 21.6667 15.3731 21.6669 15.833V22.5C21.6669 22.9601 21.2939 23.3327 20.8339 23.333C20.3736 23.333 19.9999 22.9602 19.9999 22.5V15.833C20.0001 15.3729 20.3737 15 20.8339 15Z",fill:this.$props.fill}})])},Ac=[],Sc={name:"ExclamationTriangle",props:{width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},fill:{type:String,default:"white"}}},zc=Sc,jc=Object(U["a"])(zc,Oc,Ac,!1,null,null,null),Ic=jc.exports,Pc=a("7bb1"),Ec=a("4c93");Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"}));var Tc={components:{ScannerQR:pc,ExclamationMark:vc,CheckmarkCircle:xc,ExclamationTriangle:Ic,ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},props:{secureId:{type:String,required:!0}},beforeUnmount(){this.scrollEndTimer&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=null)},data(){return{lastError:null,lastDecoded:null,showInfoBox:!1,infoStatus:null,infoLoading:!1,info:{startNumber:null,participantName:null,age:null,classification:null,chipNumber:null,gpsNumber:null}
1,classification:null,playerNumber:null,contentScrollable:!1,contentAtBottom:!0,shadowOpacity:0,shadowHeight:24,scrollEndTimer:null,pickUpPoint:"1",showSearchView:!1,searchQuery:"",participants:[]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user"])),{},{isMobile(){return["sm","md"].includes(this.$mq)},isSecure(){return"undefined"!==typeof window&&window.isSecureContext},lastErrorMessage(){var t;return this.lastError?(null===(t=this.lastError)||void 0===t?void 0:t.message)||String(this.lastError):""},navigateToList(){return this.user&&this.user.roles.includes("ROLE_ADMIN")?{name:"panel-admin",alias:!0}:this.user&&this.user.roles.includes("ROLE_OPERATOR")?{name:"panel-operator",alias:!0}:{name:"panel-organizer",alias:!0}},filteredParticipants(){if(!this.searchQuery)return this.participants;const t=this.searchQuery.toLowerCase();return this.participants.filter(e=>e.firstname.toLowerCase().includes(t)||e.lastname.toLowerCase().includes(t)||e.playerNumber.toString().includes(t))}}),async created(){if(this.$route&&this.$route.query&&this.$route.query.pickuppoint)this.pickUpPoint=this.$route.query.pickuppoint;else{const t=new URLSearchParams(window.location.search),e=t.get("pickuppoint");e&&(this.pickUpPoint=e)}},mounted(){this.isSecure&&this.openScanner(),this.readPlayerList(),this.$nextTick(this.updateScrollIndicators)},methods:{onDecoded(t){this.lastDecoded=t,this.lastError=null,this.processCode(t)},onScanError(t){this.lastError=t;const e=this.classifyScanError(t);"noCamera"===e?(this.infoStatus="noCamera",this.showInfoBox=!0):"permission"===e?(this.infoStatus="permission",this.showInfoBox=!0):"insecure"===e&&(this.infoStatus="insecure",this.showInfoBox=!0)},openScanner(){this.$refs.scanner.start()},closeScanner(){this.$refs.scanner.stop()},tryAgain(){this.showInfoBox=!1;const t=this.$refs.scanner;if(t)if("function"!==typeof t.restart)if("function"!==typeof t.getState)"function"===typeof t.start&&t.start();else{const e=t.getState();e&&e.scanning&&e.paused&&"function"===typeof t.resume?t.resume():"function"===typeof t.start&&t.start()}else t.restart()},test(){this.processCode("https://api.sandbox.dostartu.pl/qr/competition/10962/player/752ef1903e020724eb65cd66e14e17ba")},updateScrollIndicators(){const t=this.$refs.infoContent;if(!t)return;this.contentScrollable=t.scrollHeight>t.clientHeight+1;const e=Math.max(0,t.scrollHeight-(t.scrollTop+t.clientHeight));this.contentAtBottom=e<=1;const a=100,n=Math.max(0,Math.min(1,e/a)),i=8,s=24;this.shadowOpacity=n,this.shadowHeight=Math.round(i+(s-i)*n)},onContentScroll(){this.updateScrollIndicators(),this.scrollEndTimer&&clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(()=>{this.updateScrollIndicators()},80)},classifyScanError(t){const e=t&&(t.message||t.name||String(t))||"";return/secure context|HTTPS|localhost|Skaner wymaga/i.test(e)?"insecure":t&&("NotFoundError"===t.name||/Requested device not found/i.test(e)||/Brak kamery/i.test(e)||"OverconstrainedError"===t.name)?"noCamera":t&&("NotAllowedError"===t.name||/Permission|denied/i.test(e))||t&&"NotReadableError"===t.name?"permission":"other"},async processCode(t){if(!t||this.infoLoading)return;const e=t+"?token="+this.secureId;this.infoLoading=!0,this.infoStatus="loading",this.showInfoBox=!0;try{const t=await Jl.a.get(e);this.info={startNumber:t.playerNumber||null,participantName:t.firstname+" "+t.lastname||null,age:t.playerAge||null,classification:t.classification||null,chipNumber:t.playerChip||null,gpsNumber:t.playerGpsNumber||null,notes:t.notes||null,shopSales:t.shopSales||[],apiUrl:e},null===t.payedTime?this.infoStatus="noFee":0===t.playerNumber||null===t.playerNumber?this.infoStatus="noPlayerNumber":!0===t.reverted?this.infoStatus="reverted":t.confirmedQrAt?this.infoStatus="alreadyIssued":this.infoStatus="success",this.showInfoBox=!0}catch(a){this.infoStatus="warning",this.showInfoBox=!0}finally{this.infoLoading=!1,this.info.classification&&this.readClassification(this.info.classification),"success"===this.infoStatus&&this.changeStatus(this.info.apiUrl,{status:0,playerNumber:this.info.startNumber}),this.$nextTick(this.updateScrollIndicators)}}
1,async setPlayerNumber(){this.$refs.playerNumberFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.playerNumberFormObserver.fields))if(this.$refs.playerNumberFormObserver.fields[e].invalid){const t=this.$refs.playerNumberFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.playerNumberFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.changeStatus(this.info.apiUrl,{status:0,playerNumber:this.playerNumber},!1,!1)})},async changeStatus(t,e,a=!1,n=!1){if(t&&e&&!this.infoLoading){this.infoLoading=!0,this.infoStatus="loading",e.pickupPoint=this.pickUpPoint;try{await Jl.a.post(t,e),this.infoStatus=!0===a?"reverted":"success",!0===n&&this.closeInfoBox()}catch(i){this.infoStatus="error"}finally{await this.readPlayerList(),this.infoLoading=!1}}},async revert(){this.changeStatus(this.info.apiUrl,{status:1},!0)},async readPlayerList(){try{await Pt["a"].get(`/panel/competitions/${this.secureId}/players/lite`).then(t=>{this.participants=t})}catch(t){return}},async readClassification(t){try{await Pt["a"].get("/classifications/"+t).then(t=>{this.classification=t.classification})}catch(e){return}},closeInfoBox(){this.showInfoBox=!1,this.playerNumber=null,this.classification=null,this.info={startNumber:null,participantName:null,age:null,classification:null,chipNumber:null,gpsNumber:null,apiUrl:null},this.$refs.scanner&&"function"===typeof this.$refs.scanner.resume&&this.$refs.scanner.resume()},openSearchView(){this.showSearchView=!0,this.$nextTick(()=>{this.$refs.searchInput&&this.$refs.searchInput.focus()})},closeSearchView(){this.showSearchView=!1,this.searchQuery=""},selectParticipant(t){this.processCode(t.qrLink)}}},Nc=Tc,Rc=(a("eb2f"),Object(U["a"])(Nc,ic,sc,!1,null,"74f2f513",null)),Lc=Rc.exports,Mc=function(){var t=this,e=t._self._c;return t.ready?e("div",[t.device.type===t.deviceTypes.stoper?e("stoper",{attrs:{"is-panel-gate":""}}):e("input",{attrs:{type:"file"},on:{change:function(e){t.file=e.target.files[0]}}})],1):t._e()},Dc=[],$c={components:{Stoper:Gl},props:{secureId:{type:String,required:!0}},data(){return{id:null,ready:!1,importer:null,file:null,interval:32e3,deviceTypes:s["f"]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["gates","devices"])),{},{gate(){return this.gates[this.id]},device(){return this.devices[this.gate.device]}}),watch:{file(){this.importMeasures()}},async created(){try{this.id=await this.READ_GATE(this.secureId),await this.READ_DEVICE(this.gate.device),this.device.type===s["f"].stoper&&(await this.BOOTSTRAP_STOPER({id:this.gate.competition,isSettingPage:!1}),await this.SELECT_STOPER_GATE(this.gate)),this.importer=setInterval(this.importMeasures,this.interval),this.ready=!0}catch(t){console.log(t)}},destroyed(){clearInterval(this.importer)},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["cc"],g["qb"],g["ac"],g["q"],g["Vc"]])),{},{async importMeasures(){if(this.file){const t=await Object(Bl["e"])(this.file);await this.IMPORT_MEASURES({gate:this.gate,file:t})}}})},Uc=$c,Bc=Object(U["a"])(Uc,Mc,Dc,!1,null,null,null),Fc=Bc.exports,qc=function(){var t=this,e=t._self._c;return e("div",[t.empty?e("div",[e("div",{staticClass:"info-box--grey pa16 matb15"},[e("h3",[t._v(t._s(t.say.you_have_no_future_competitions))]),e("base-button",{staticClass:"btn-proposed",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"user-competitions-proposed",alias:!0})}}},[t._v(" "+t._s(t.say.see_proposed_competitions)+" ")])],1)]):t._e(),t._l(t.competitionsIds,(function(t){return e("base-item-competition",{key:t,attrs:{id:t}})})),t.empty?t._e():e("base-button",{staticClass:"btn-findmore",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"main-list",alias:!0})}}},[t._v(" "+t._s(t.say.register_to_more_competitions)+" ")])],2)},Hc=[],Gc={data(){return{competitionsIds:[-1]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{empty(){return 0===this.competitionsIds.length}}),async created(){const{competitions:t}=await this.READ_USER_COMPETITIONS({type:"future"});this.competitionsIds=t},methods:Object(v["a"])({},Object(R["b"])([g["Fc"]]))},Wc=Gc,Vc=(a("af26"),Object(U["a"])(Wc,qc,Hc,!1,null,"4c4c67fc",null)),Kc=Vc.exports,Zc=function(){var t=this,e=t._self._c;return e("div",[t.empty?e("div",[e("div",{staticClass:"info-box--grey pa16 matb15"},[e("h3",[t._v(t._s(t.say.empty_past))]),e("p",[t._v(t._s(t.say.you_have_no_past_competitions))]),e("base-button",{staticClass:"btn-proposed",attrs:{btn4:""}
1,on:{click:function(e){return t.$router.push({name:"user-competitions-proposed",alias:!0})}}},[t._v(" "+t._s(t.say.see_proposed_competitions)+" ")])],1)]):t._e(),t._l(t.competitionsIds,(function(t){return e("base-item-competition",{key:t,attrs:{id:t}})})),t.hasMore?e("base-button",{staticClass:"btn-findmore",attrs:{btn4:""},on:{click:t.readMoreCompetitions}},[t._v(" "+t._s(t.say.see_more)+" ")]):t._e()],2)},Yc=[],Qc={data(){return{competitionsIds:[-1],hasMore:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{empty(){return 0===this.competitionsIds.length}}),created(){this.readMoreCompetitions()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Fc"],g["Wb"]])),{},{async readMoreCompetitions(){const{competitions:t}=await this.READ_USER_COMPETITIONS({type:"past",offset:this.competitionsIds.length,limit:10});this.competitionsIds=t,this.hasMore=t.length>0}})},Xc=Qc,Jc=(a("d707"),Object(U["a"])(Xc,Zc,Yc,!1,null,"094eef3f",null)),td=Jc.exports,ed=function(){var t=this,e=t._self._c;return e("div",[t.empty?e("div",[e("div",{staticClass:"info-box--grey pa16 matb15"},[e("h3",[t._v(t._s(t.say.empty_proposals))]),e("base-button",{staticClass:"btn-fill",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"user-edit-profile",alias:!0})}}},[t._v(" "+t._s(t.say.fill_city)+" ")])],1)]):t._e(),t._l(t.competitionsIds,(function(t){return e("base-item-competition",{key:t,attrs:{id:t}})})),t.empty?t._e():e("base-button",{staticClass:"btn-findmore",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"main-list",alias:!0})}}},[t._v(" "+t._s(t.say.find_other_competition)+" ")])],2)},ad=[],nd={data(){return{competitionsIds:[-1]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{empty(){return 0===this.competitionsIds.length}}),async created(){const{competitions:t}=await this.READ_USER_COMPETITIONS({type:"proposed"});this.competitionsIds=t},methods:Object(v["a"])({},Object(R["b"])([g["Fc"]]))},id=nd,sd=(a("8ae3"),Object(U["a"])(id,ed,ad,!1,null,"1ff14f2c",null)),od=sd.exports,rd=function(){var t=this,e=t._self._c;return e("div",[e("user-form-insurance",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.insurance,callback:function(e){t.insurance=e},expression:"insurance"}}),e("base-form-validation",{attrs:{validation:t.errors}}),e("user-form-actions",{on:{save:function(e){return t.save()}}})],1)},ld=[],cd=function(){var t=this,e=t._self._c;return e("base-form-section",[e("strong",{staticClass:"form__title"},[t._v(t._s(t.say.accomodation_address))]),e("base-form-input",[e("base-input-text",{attrs:{label:t.say.street,error:t.errors.street},on:{"update:error":function(e){return t.$set(t.errors,"street",e)}},model:{value:t.form.street,callback:function(e){t.$set(t.form,"street",e)},expression:"form.street"}})],1),e("base-form-input",{attrs:{half:""},scopedSlots:t._u([{key:"right",fn:function(){return[e("base-input-text",{attrs:{label:t.say.flat_number,error:t.errors.flatNumber},on:{"update:error":function(e){return t.$set(t.errors,"flatNumber",e)}},model:{value:t.form.flatNumber,callback:function(e){t.$set(t.form,"flatNumber",e)},expression:"form.flatNumber"}})]},proxy:!0}])},[e("base-input-text",{attrs:{label:t.say.house_number,error:t.errors.houseNumber},on:{"update:error":function(e){return t.$set(t.errors,"houseNumber",e)}},model:{value:t.form.houseNumber,callback:function(e){t.$set(t.form,"houseNumber",e)},expression:"form.houseNumber"}})],1),e("base-form-input",[e("base-input-autocomplete",{staticClass:"user-form__autocomplete",attrs:{label:t.say.city,error:t.cityError,"clear-search-on-select":!0,action:"AUTOCOMPLETE_LOCATION"},on:{"update:error":function(e){t.cityError=e},select:function(e){return t.selectCity(e)}},model:{value:t.searchValueCity,callback:function(e){t.searchValueCity=e},expression:"searchValueCity"}})],1),e("base-form-input",[e("base-input-text",{attrs:{label:t.say.zip_code,error:t.errors.zipcode},on:{"update:error":function(e){return t.$set(t.errors,"zipcode",e)}},model:{value:t.form.zipcode,callback:function(e){t.$set(t.form,"zipcode",e)},expression:"form.zipcode"}}
1)],1),e("base-form-input",[e("base-input-select",{attrs:{options:t.countries,clearable:!1,label:t.say.country,reduce:t=>t.id,error:t.errors.country,placeholder:t.say.country},on:{"update:error":function(e){return t.$set(t.errors,"country",e)}},model:{value:t.form.country,callback:function(e){t.$set(t.form,"country",e)},expression:"form.country"}})],1)],1)},dd=[],ud={props:{value:{type:Object,required:!0},validation:{type:Object,default:()=>{}}},data(){return{form:{},errors:{}}},watch:{value:{deep:!0,immediate:!0,handler(){Object(Ni["b"])(this.form,this.value)||(this.form=Object(v["a"])({},this.value))}},validation:{deep:!0,immediate:!0,handler(){Object(Ni["b"])(this.errors,this.validation)||(this.errors=Object(v["a"])({},this.validation))}},form:{deep:!0,handler(){Object(Ni["b"])(this.form,this.value)||this.$emit("input",Object(v["a"])({},this.form));for(const t of Object(Ni["a"])(this.form,this.value))this.$delete(this.errors,t)}},errors:{deep:!0,handler(){Object(Ni["b"])(this.errors,this.validation)||this.$emit("update:validation",Object(v["a"])({},this.errors))}}}},pd={mixins:[ud],data(){return{countries:p,searchValueCity:ud.city}},watch:{"form.city":{immediate:!0,handler(){this.searchValueCity=this.form.city}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{cityError:{get(){return this.errors.city||this.errors.cityLat||this.errors.cityLng},set(){this.errors.city="",this.errors.cityLat="",this.errors.cityLng=""}},city:{get(){return this.form.city},set(t){t.name?(this.$set(this.form,"cityLng",t.cityLng),this.$set(this.form,"cityLat",t.cityLat),this.$set(this.form,"city",t.city)):(this.$set(this.form,"cityLat",null),this.$set(this.form,"cityLng",null),this.$set(this.form,"city",t))}}}),methods:{selectCity(t){t&&(this.$set(this.form,"cityLng",t.cityLng),this.$set(this.form,"cityLat",t.cityLat),this.$set(this.form,"city",t.city),setTimeout(()=>{this.searchValueCity=t.text},40))}}},md=pd,fd=(a("c718"),Object(U["a"])(md,cd,dd,!1,null,"6adb545b",null)),hd=fd.exports,bd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row patb48 user-edit__box-buttons"},[t.$router.matched("user-edit",t.$route)?e("div",{staticClass:"col-lg-3 col-md-4 col-12"},[e("base-button",{staticClass:"user-edit__button user-edit__button-delete",attrs:{btn6:""},on:{click:function(e){return t.erase()}}},[t._v(" "+t._s(t.say.delete_your_account)+" ")])],1):e("div",{staticClass:"col-lg-3 col-md-4 col-12"},[e("base-button",{staticClass:"user-edit__button user-edit__button-cancel",attrs:{btn3:""},on:{click:function(e){return t.cancel()}}},[t._v(" "+t._s(t.say.cancel)+" ")])],1),e("div",{staticClass:"col-lg-3 col-md-4 col-12"},[e("base-button",{staticClass:"user-edit__button-save",attrs:{btn1:""},on:{click:function(e){return t.save()}}},[t._v(" "+t._s(t.say.save)+" ")])],1)])},_d=[],vd={computed:Object(v["a"])({},Object(R["c"])(["say"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["kb"]])),{},{async erase(){await this.DELETE_USER(),this.$router.push({name:"main-landing",alias:!0})},cancel(){this.$router.go(-1)},save(){this.$emit("save")}})},gd=vd,yd=(a("82f1"),Object(U["a"])(gd,bd,_d,!1,null,"e74ee746",null)),Cd=yd.exports,wd={components:{UserFormInsurance:hd,UserFormActions:Cd},data(){return{insurance:{},errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["user"])),created(){this.insurance=Object(Ni["c"])(this.user,["id","pesel","street","houseNumber","flatNumber","city","zipcode","country"])},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["vd"]])),Object(R["d"])([ce["x"]])),{},{async save(){this.errors={};try{await this.UPDATE_USER(this.insurance),this.SET_NOTIFICATION("alerts_positive_5")}catch(t){this.errors=t}}})},kd=wd,xd=Object(U["a"])(kd,rd,ld,!1,null,null,null),Od=xd.exports,Ad=function(){var t=this,e=t._self._c;return e("div",[e("user-form-profile",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.profile,callback:function(e){t.profile=e},expression:"profile"}}),e("base-form-validation",{attrs:{validation:t.errors}}),e("user-form-actions",{on:{save:function(e){return t.save()}}}
1)],1)},Sd=[],zd=function(){var t=this,e=t._self._c;return e("base-form-section",[e("base-form-input",{scopedSlots:t._u([{key:"hint",fn:function(){return[t._v(" "+t._s(t.$router.matched("user-edit-profile",t.$route)?t.say.fill_user_data_to_register_faster:t.say.fill_family_member_data)+" ")]},proxy:!0}])},[e("base-input-text",{attrs:{error:t.errors.firstname,label:t.say.firstname},on:{"update:error":function(e){return t.$set(t.errors,"firstname",e)}},model:{value:t.form.firstname,callback:function(e){t.$set(t.form,"firstname",e)},expression:"form.firstname"}})],1),e("base-form-input",[e("base-input-text",{attrs:{error:t.errors.lastname,label:t.say.lastname},on:{"update:error":function(e){return t.$set(t.errors,"lastname",e)}},model:{value:t.form.lastname,callback:function(e){t.$set(t.form,"lastname",e)},expression:"form.lastname"}})],1),e("base-form-input",[e("base-input-radio",{attrs:{options:[{value:"M",title:"man"},{value:"K",title:"woman"}],error:t.errors.gender},on:{"update:error":function(e){return t.$set(t.errors,"gender",e)}},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})],1),e("base-form-input",[e("base-input-date",{attrs:{border:"",error:t.errors.birthTime,label:t.say.birthtime,initialView:"year",openDate:new Date("1983-01-01")},on:{"update:error":function(e){return t.$set(t.errors,"birthTime",e)}},model:{value:t.form.birthTime,callback:function(e){t.$set(t.form,"birthTime",e)},expression:"form.birthTime"}})],1),e("base-form-input",{attrs:{half:""},scopedSlots:t._u([{key:"right",fn:function(){return[e("base-input-text",{attrs:{label:t.say.phone,error:t.errors.phone},on:{"update:error":function(e){return t.$set(t.errors,"phone",e)}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})]},proxy:!0}])},[e("base-input-select",{attrs:{reduce:t=>t.id,clearable:!1,options:t.prefixes,label:t.say.prefix},model:{value:t.form.phonePrefix,callback:function(e){t.$set(t.form,"phonePrefix",e)},expression:"form.phonePrefix"}})],1),e("base-form-input",[e("base-input-text",{attrs:{label:t.say.club,error:t.errors.clubname},on:{"update:error":function(e){return t.$set(t.errors,"clubname",e)}},model:{value:t.form.clubname,callback:function(e){t.$set(t.form,"clubname",e)},expression:"form.clubname"}})],1),e("base-form-input",[e("base-input-autocomplete",{staticClass:"user-form__autocomplete",attrs:{label:t.say.city,error:t.cityError,action:"AUTOCOMPLETE_LOCATION"},on:{"update:error":function(e){t.cityError=e},input:t.cityWithoutSelect,select:t.selectCity,"search-blur":t.onSearchBlur},model:{value:t.searchValueCity,callback:function(e){t.searchValueCity=e},expression:"searchValueCity"}})],1),e("transition",{attrs:{name:"fade-map"}},[t.isCoordsCompetition?e("base-form-input",[e("div",{staticClass:"form-map"},[e("base-map",{staticClass:"form-map__map",attrs:{lat:t.form.cityLat,lng:t.form.cityLng,zoom:10,fullscreenable:!1}},[e("l-marker",{attrs:{"lat-lng":[t.form.cityLat,t.form.cityLng],draggable:!0},on:{"update:lat-lng":t.updateCoords}},[e("l-icon",{attrs:{"icon-anchor":[12,32]}},[e("div",{staticClass:"form-map__marker"},[e("img",{attrs:{src:a("0e98")}})])])],1)],1)],1)]):t._e()],1),e("base-form-input",[e("base-input-select",{attrs:{options:t.countries,clearable:!1,label:t.say.nationality,reduce:t=>t.id,error:t.errors.nationality},on:{"update:error":function(e){return t.$set(t.errors,"nationality",e)}},model:{value:t.form.nationality,callback:function(e){t.$set(t.form,"nationality",e)},expression:"form.nationality"}})],1)],1)},jd=[],Id=a("ce6c"),Pd={mixins:[ud],components:{LMarker:Si["a"],LIcon:Ms["a"]},data(){return{countries:p,prefixes:Id,searchValueCity:ud.city}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{birthDate:{get(){const t=f()(this.form.birthTime);return t.isValid()?t.toDate():null},set(t){this.form.birthTime=new Date(t)}},isCoordsCompetition(){return this.form.cityLat&&this.form.cityLng},cityError:{get(){return this.errors.city||this.errors.cityLat||this.errors.cityLng},set(){this.errors.city="",this.errors.cityLat="",this.errors.cityLng=""}}}),watch:{"form.city":{immediate:!0,handler(){this.$nextTick(()=>{this.searchValueCity=this.form.city})}}},methods:{updateCoords(t){this.$set(this.form,"cityLng",t.lng),this.$set(this.form,"cityLat",t.lat)},cityWithoutSelect:Object(Fe["debounce"])((function(t){this.selectCity(t)}),500),onSearchBlur(){setTimeout(()=>{this.searchValueCity=this.form.city},250)},selectCity(t){"string"===typeof t&&""!==t?(this.$set(this.form,"cityLng",19.423828125000004),this.$set(this.form,"cityLat",52.142479791733464),this.$set(this.form,"city",t)):t?(this.$set(this.form,"cityLng",t.cityLng),this.$set(this.form,"cityLat",t.cityLat),this.$set(this.form,"city",t.city),setTimeout(()=>{this.searchValueCity=t.text},40)):(this.$set(this.form,"cityLng",0),this.$set(this.form,"cityLat",0),this.$set(this.form,"city",null),setTimeout(()=>{this.searchValueCity=null},40))}}},Ed=Pd,Td=(a("1eeb"),Object(U["a"])(Ed,zd,jd,!1,null,"17c474de",null)),Nd=Td.exports,Rd={components:{UserFormProfile:Nd,UserFormActions:Cd},data(){return{profile:{},errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["user"])),created(){this.profile=Object(Ni["c"])(this.user,["id","firstname","lastname","gender","birthTime","phonePrefix","phone","clubname","city","nationality"]),null===this.profile.phonePrefix&&(this.profile.phonePrefix="48")},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["vd"]])),Object(R["d"])([ce["x"]])),{},{async save(){this.errors={};try{await this.UPDATE_USER(this.profile),this.SET_NOTIFICATION("alerts_positive_5")}catch(t){this.errors=t}}})},Ld=Rd,Md=Object(U["a"])(Ld,Ad,Sd,!1,null,null,null),Dd=Md.exports,$d=function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"mab24"},[t._v(t._s(t.say.more))]),e("h4",{staticClass:"mab12"},[t._v(t._s(t.say.access_account_settings))]),e("div",{staticClass:"bsh mab24"},[e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"edit-credentials",alias:!0})}}},[e("span",[t._v(t._s(t.say.change_password))]),e("img",{attrs:{src:a("5046"),alt:""}})])],1),e("h4",{staticClass:"mab12"},[t._v(t._s(t.say.participant_profile_settings))]),e("div",{staticClass:"bsh mab24"},[e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"user-edit-profile",alias:!0})}}},[e("span",[t._v(t._s(t.say.edit_personal_data))]),e("img",{attrs:{src:a("5046"),alt:""}})]),e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.$router.push({name:"user-edit-insurance",alias:!0})}}},[e("span",[t._v(t._s(t.say.edit_insurance_data))]),e("img",{attrs:{src:a("5046"),alt:""}})])],1),e("h4",{staticClass:"mab12"},[t._v(t._s(t.say.enable_notifications_for))]),e("div",{staticClass:"bsh mab24"},[e("base-button",{staticClass:"minisite__button minisite__button__nptb",attrs:{btn6:""}},[e("span",[t._v(t._s(t.say.notifications_for_proposed_competition))]),e("base-input-switch",{attrs:{checked:t.notifications.proposedCompetition},nativeOn:{change:function(e){return t.updateNotifications()}},model:{value:t.notifications.proposedCompetition,callback:function(e){t.$set(t.notifications,"proposedCompetition",e)},expression:"notifications.proposedCompetition"}})],1),e("base-button",{staticClass:"minisite__button minisite__button__nptb",attrs:{btn6:""}},[e("span",[t._v(t._s(t.say.notifications_for_upcoming_races))]),e("base-input-switch",{attrs:{checked:t.notifications.incomingCompetition},nativeOn:{change:function(e){return t.updateNotifications()}},model:{value:t.notifications.incomingCompetition,callback:function(e){t.$set(t.notifications,"incomingCompetition",e)},expression:"notifications.incomingCompetition"}})],1),e("base-button",{staticClass:"minisite__button minisite__button__nptb",attrs:{btn6:""}},[e("span",[t._v(t._s(t.say.notifications_for_my_results))]),e("base-input-switch",{attrs:{checked:t.notifications.myResults},nativeOn:{change:function(e){return t.updateNotifications()}},model:{value:t.notifications.myResults,callback:function(e){t.$set(t.notifications,"myResults",e)},expression:"notifications.myResults"}})],1)],1),e("h4",{staticClass:"mab12"},[t._v(t._s(t.say.extra_inputs))]),e("div",{staticClass:"bsh mab32"},[e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.navigate(t.BASE_URL+"polityka_prywatnosci.pdf")}}},[e("span",[t._v(t._s(t.say.privacy_policy))]),e("img",{attrs:{src:a("5046"),alt:""}})]),e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.navigate(t.BASE_URL+"Regulamin serwisu.pdf")}}},[e("span",[t._v(t._s(t.say.dostartu_regulations))]),e("img",{attrs:{src:a("5046"),alt:""}})])],1),e("div",{staticClass:"bsh mab32"},[e("base-button",{staticClass:"minisite__button",attrs:{btn6:""},on:{click:function(e){return t.logoutUser()}}},[e("span",[t._v(t._s(t.say.logout))]),e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 3.5C10 3.77614 10.2239 4 10.5 4H18.5C19.3284 4 20 4.67157 20 5.5V18.5C20 19.3284 19.3284 20 18.5 20H10.5C10.2239 20 10 20.2239 10 20.5C10 20.7761 10.2239 21 10.5 21H18.5C19.8807 21 21 19.8807 21 18.5V5.5C21 4.11929 19.8807 3 18.5 3H10.5C10.2239 3 10 3.22386 10 3.5ZM7.85355 15.1464L4.70711 12H15.5C15.7761 12 16 11.7761 16 11.5C16 11.2239 15.7761 11 15.5 11H4.70711L7.85355 7.85355C8.04882 7.65829 8.04882 7.34171 7.85355 7.14645C7.65829 6.95118 7.34171 6.95118 7.14645 7.14645L3.14645 11.1464C2.95118 11.3417 2.95118 11.6583 3.14645 11.8536L7.14645 15.8536C7.34171 16.0488 7.65829 16.0488 7.85355 15.8536C8.04882 15.6583 8.04882 15.3417 7.85355 15.1464Z",fill:"#FF1744"}}
1)])])],1),e("div",{staticClass:"deleteAccount",on:{click:function(e){return t.erase()}}},[t._v(" "+t._s(t.say.delete_your_account)+" ")])])},Ud=[],Bd={name:"UserMobileMore",data(){return{}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","notifications","createNotifications"])),{},{BASE_URL(){return s["d"]}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["tb"],g["kb"],g["T"],g["yd"],g["Lc"],,])),{},{async logoutUser(){await this.LOGOUT_USER(),this.$router.replace({name:"authentication-login",alias:!0})},async erase(){await this.DELETE_USER(),this.$router.push({name:"main-landing",alias:!0})},updateNotifications(){this.$messaging.getToken({vapidKey:"BMD60s7nRtWIi-qladjK7a1kHi1TCNSODn9XaU-nghZVvbs2mE78WHInwzIPMymEFKSdNMbfc-OQaYBcRcI02fM"}).then(t=>{t&&(this.notifications.deviceToken=t,this.createNotifications?this.CREATE_USER_NOTIFICATIONS(this.notifications):this.UPDATE_USER_NOTIFICATIONS(this.notifications))}).catch(t=>{console.log("An error occurred while retrieving token. ",t)})},navigate(t){var e=document.createElement("a");e.href=t,e.setAttribute("target","_blank"),e.click()}}),mounted(){this.READ_USER_NOTIFICATIONS()}},Fd=Bd,qd=(a("c09e"),Object(U["a"])(Fd,$d,Ud,!1,null,"070e4a49",null)),Hd=qd.exports,Gd=function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"mab24"},[t._v("Powiadomienia")]),e("p",{staticClass:"mab24"},[t._v("Możemy przypominać Ci o nadchodzących startach oraz informować o wynikach i nowych zawodach.")]),e("h4",{staticClass:"mab12"},[t._v(t._s(t.say.enable_notifications_for))]),e("div",{staticClass:"bsh mab24"},[e("base-button",{staticClass:"minisite__button minisite__button__nptb",attrs:{btn6:""}},[e("span",[t._v(t._s(t.say.notifications_for_proposed_competition))]),e("base-input-switch",{attrs:{checked:t.notifications.proposedCompetition},nativeOn:{change:function(e){return t.updateNotifications()}},model:{value:t.notifications.proposedCompetition,callback:function(e){t.$set(t.notifications,"proposedCompetition",e)},expression:"notifications.proposedCompetition"}})],1),e("base-button",{staticClass:"minisite__button minisite__button__nptb",attrs:{btn6:""}},[e("span",[t._v(t._s(t.say.notifications_for_upcoming_races))]),e("base-input-switch",{attrs:{checked:t.notifications.incomingCompetition},nativeOn:{change:function(e){return t.updateNotifications()}},model:{value:t.notifications.incomingCompetition,callback:function(e){t.$set(t.notifications,"incomingCompetition",e)},expression:"notifications.incomingCompetition"}})],1),e("base-button",{staticClass:"minisite__button minisite__button__nptb",attrs:{btn6:""}},[e("span",[t._v(t._s(t.say.notifications_for_my_results))]),e("base-input-switch",{attrs:{checked:t.notifications.myResults},nativeOn:{change:function(e){return t.updateNotifications()}},model:{value:t.notifications.myResults,callback:function(e){t.$set(t.notifications,"myResults",e)},expression:"notifications.myResults"}})],1)],1),e("p",{staticClass:"mab24"},[t._v("Do konfiguracji przychodzących powiadomień możesz zawsze wrócić w sekcji Więcej.")]),e("base-button",{staticClass:"btn-add",attrs:{btn1:""},on:{click:function(e){return t.updateNotifications()}}},[t._v(" Zapisz ")])],1)},Wd=[],Vd={name:"UserNotifications",computed:Object(v["a"])({},Object(R["c"])(["say","notifications","createNotifications"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["T"],g["yd"],g["Lc"]])),{},{updateNotifications(){this.$messaging.getToken({vapidKey:"BMD60s7nRtWIi-qladjK7a1kHi1TCNSODn9XaU-nghZVvbs2mE78WHInwzIPMymEFKSdNMbfc-OQaYBcRcI02fM"}).then(t=>{t&&(this.notifications.deviceToken=t,this.createNotifications?this.CREATE_USER_NOTIFICATIONS(this.notifications):this.UPDATE_USER_NOTIFICATIONS(this.notifications),this.$router.push("main"))}).catch(()=>{this.notifications.deviceToken=null,this.createNotifications?this.CREATE_USER_NOTIFICATIONS(this.notifications):this.UPDATE_USER_NOTIFICATIONS(this.notifications),this.$router.push("main")})}}),mounted(){this.READ_USER_NOTIFICATIONS()}},Kd=Vd,Zd=(a("74c2"),Object(U["a"])(Kd,Gd,Wd,!1,null,"7c4966d4",null)),Yd=Zd.exports,Qd=function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"mab24"},[t._v(t._s(t.say.messages))]),t._l(t.messages,(function(t,a){return e("Messages",{key:a,attrs:{data:t}})}))],2)},Xd=[],Jd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"message"},[e("div",{staticClass:"message-time"},[t.data.unreaded?e("span",{staticClass:"ellipse"}):t._e(),t._v(t._s(t.data.ago))]),e("div",{staticClass:"message-title"},[t._v(t._s(t.data.title))]),e("div",{staticClass:"message-content"},[t._v(" "+t._s(t.data.body)+" "),t.data.clickAction?e("a",{attrs:{href:t.data.clickAction}},[t._v(t._s(t.data.clickAction))]):t._e()]),t.data.image?e("div",{staticClass:"message-image"},[e("img",{attrs:{src:t.data.image,alt:""}})]):t._e()])},tu=[],eu={name:"Messages",props:{data:{type:Object,required:!0}},computed:{url(){return location.protocol+"//"+location.hostname}}},au=eu,nu=(a("24af"),Object(U["a"])(au,Jd,tu,!1,null,"6fe4695b",null)),iu=nu.exports,su={name:"UserMessages",components:{Messages:iu},computed:Object(v["a"])({},Object(R["c"])(["say","messages","isMessagesUnread"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Jc"],g["xd"],g["Kc"]])),{},{async readMessages(){await this.READ_USER_MESSAGES()},async updateMessages(){await this.UPDATE_USER_MESSAGES()}}
1),mounted(){this.READ_USER_MESSAGES_UNREAD(),this.readMessages(),this.isMessagesUnread&&setTimeout(()=>{Promise.all([this.updateMessages(),this.READ_USER_MESSAGES_UNREAD(),this.readMessages()])},15e3)}},ou=su,ru=Object(U["a"])(ou,Qd,Xd,!1,null,null,null),lu=ru.exports,cu=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"info-box--grey pa16 matb15"},[e("div",{staticClass:"row justify-content-space-between align-items-center"},[e("strong",{staticClass:"col-12 col-lg-9"},[t._v(t._s(t.say.add_members_to_your_family))]),e("div",{staticClass:"col-12 col-lg-3"},[e("base-button",{staticClass:"btn-add",attrs:{btn1:""},on:{click:function(e){return t.$router.push({name:"user-family-children-add",alias:!0})}}},[t._v(" "+t._s(t.say.add_member)+" ")])],1)])]),e("div",{staticClass:"pat5 pab40"},t._l(t.childrenAssociations,(function(t){return e("user-family-item-child",{key:t.id,attrs:{id:t.id}})})),1)])},du=[],uu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"family-child"},[e("div",{staticClass:"d-flex align-items-center"},[e("div",{staticClass:"family-child__img"},[e("strong",[t._v(t._s(t.child.firstname.charAt(0))+t._s(t.child.lastname.charAt(0)))])]),e("h3",{staticClass:"family-child__name"},[t._v(" "+t._s(t.child.firstname)+" "+t._s(t.child.lastname)+" ")])]),e("div",{staticClass:"row family-child__info"},[e("div",{staticClass:"col-12 col-sm-12 col-md-6 col-lg-4 family-child__info-section"},[e("p",[t._v(" "+t._s(t.say.birthtime)+" "),e("br"),e("big",[t._v(t._s(t._f("asDate")(t.child.birthTime)))])],1)]),e("div",{staticClass:"col-12 col-sm-12 col-md-6 col-lg-4 family-child__info-section"},[e("p",[t._v(" "+t._s(t.say.city)+" "),e("br"),e("big",[t._v(t._s(t.child.city)+", "+t._s(t.child.nationality))])],1)]),e("div",{staticClass:"col-12 col-sm-12 col-md-12 col-lg-4 family-child__info-section"},[e("div",{staticClass:"buttons-group"},[t.canEditChild(t.familyAssociation)?e("base-button",{staticClass:"btn-user btn-user--border-right",attrs:{icon:"fa fa-pencil-alt f14",btn5:""},on:{click:function(e){return t.$router.push({name:"user-family-children-edit",params:t.child,alias:!0})}}},[t._v(" "+t._s(t.say.edit_data)+" ")]):t._e(),e("base-button",{staticClass:"btn-user",attrs:{icon:"fa fa-trash-alt f14",btn5:""},on:{click:function(e){return t.DELETE_USER_CHILD(t.child.id)}}},[t._v(" "+t._s(t.say.delete_from_list)+" ")])],1)])])])},pu=[],mu={mixins:[bi["a"]],props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","familyAssociations","users"])),{},{familyAssociation(){return this.familyAssociations[this.id]},child(){return this.users[this.familyAssociation.childUser]}}),methods:Object(v["a"])({},Object(R["b"])([g["lb"]]))},fu=mu,hu=(a("efc5"),Object(U["a"])(fu,uu,pu,!1,null,"0ec39d11",null)),bu=hu.exports,_u={components:{UserFamilyItemChild:bu},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","user","childrenAssociationsBy"])),{},{childrenAssociations(){return this.childrenAssociationsBy(this.user)}}),async created(){await this.READ_USER_CHILDREN()},methods:Object(v["a"])({},Object(R["b"])([g["Ec"]]))},vu=_u,gu=(a("80ad"),Object(U["a"])(vu,cu,du,!1,null,"41942c67",null)),yu=gu.exports,Cu=function(){var t=this,e=t._self._c;return e("div",[e("user-form-child",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.newChild,callback:function(e){t.newChild=e},expression:"newChild"}}),e("user-form-actions",{on:{save:function(e){return t.save()},cancel:function(e){return t.$router.push({name:"user-family-children",alias:!0})}}})],1)},wu=[],ku=function(){var t=this,e=t._self._c;return e("base-form-section",[e("strong",{staticClass:"form__title"},[t._v(t._s(t.say.family_member_data))]),e("user-form-profile",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}}),e("user-form-insurance",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1)},xu=[],Ou={components:{UserFormProfile:Nd,UserFormInsurance:hd},mixins:[ud],computed:Object(v["a"])({},Object(R["c"])(["say"]))},Au=Ou,Su=(a("4dc1"),Object(U["a"])(Au,ku,xu,!1,null,"eea9fa3c",null)),zu=Su.exports,ju={components:{UserFormChild:zu,UserFormActions:Cd},data(){return{newChild:{},errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["say"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["S"]])),{},{async save(){this.errors={};try{await this.CREATE_USER_CHILD(this.newChild),this.$router.push({name:"user-family-children",alias:!0})}catch(t){this.errors=t}}})},Iu=ju,Pu=Object(U["a"])(Iu,Cu,wu,!1,null,null,null),Eu=Pu.exports,Tu=function(){var t=this,e=t._self._c;return t.ready?e("div",[e("user-form-child",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.editedChild,callback:function(e){t.editedChild=e},expression:"editedChild"}}),e("base-form-validation",{attrs:{validation:t.errors}}),e("user-form-actions",{on:{save:function(e){return t.save()}}}
1)],1):t._e()},Nu=[],Ru={components:{UserFormChild:zu,UserFormActions:Cd},props:{id:{type:Number,required:!0}},data(){return{ready:!1,editedChild:{},errors:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","users"])),{},{child(){return this.users[this.id]}}),async created(){await this.READ_USER_CHILD(this.id),this.editedChild=Object(Ni["c"])(this.child,["id","birthTime","city","cityLat","cityLng","clubname","country","firstname","flatNumber","houseNumber","gender","lastname","nationality","phone","phonePrefix","pesel","street","zipcode"]),this.ready=!0},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Dc"],g["wd"]])),Object(R["d"])([ce["x"]])),{},{async save(){this.errors={};try{await this.UPDATE_USER_CHILD(this.editedChild),this.SET_NOTIFICATION("alerts_positive_5"),this.$router.push({name:"user-family-children",alias:!0})}catch(t){this.errors=t}}})},Lu=Ru,Mu=Object(U["a"])(Lu,Tu,Nu,!1,null,null,null),Du=Mu.exports,$u=function(){var t=this,e=t._self._c;return t.ready?e("div",[t.empty?e("div",[e("div",{staticClass:"info-box--grey pa16 matb15"},[e("h3",[t._v(t._s(t.say.empty_parents))]),e("p",[t._v(t._s(t.say.empty_parents_hint))])])]):t._e(),t._l(t.parentsAssociations,(function(t){return e("user-family-item-parent",{key:t.id,attrs:{id:t.id}})}))],2):t._e()},Uu=[],Bu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"columnWrap"},[e("div",{staticClass:"d-flex align-items-center",class:{inactive:!t.familyAssociation.enabled}},[e("div",{staticClass:"family-child__img"},[e("strong",[t._v(t._s(t.parent.firstname.charAt(0))+t._s(t.parent.lastname.charAt(0)))])]),e("p",{staticClass:"ma0i"},[e("big",{staticClass:"mar15"},[t._v(" "+t._s(t.parent.firstname)+" "+t._s(t.parent.lastname)+" ")]),t._v(" "+t._s(t.parent.city)+" ")],1)]),t.familyAssociation.pending?e("div",{staticClass:"btnWrap"},[e("base-button",{staticStyle:{width:"100%"},attrs:{btn1:""},on:{click:function(e){return t.ENABLE_FAMILY(t.familyAssociation)}}},[t._v(t._s(t.say.accept_invitation))]),e("base-button",{staticStyle:{"box-shadow":"none","padding-left":"21px","padding-right":"21px"},attrs:{btn7:""},on:{click:function(e){return t.DISABLE_FAMILY(t.familyAssociation)}}},[t._v(t._s(t.say.reject_invitation))])],1):t.familyAssociation.enabled?e("div",{staticClass:"btnWrap"},[e("base-button",{staticStyle:{"box-shadow":"none","padding-left":"21px","padding-right":"21px"},attrs:{btn7:""},on:{click:function(e){return t.DISABLE_FAMILY(t.familyAssociation)}}},[t._v(t._s(t.say.disable_registration_by_parent))])],1):e("div",{staticClass:"btnWrap"},[e("base-button",{staticStyle:{width:"100%"},attrs:{btn1:""},on:{click:function(e){return t.ENABLE_FAMILY(t.familyAssociation)}}},[t._v(t._s(t.say.accept_invitation))])],1)])},Fu=[],qu={props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","familyAssociations","users"])),{},{familyAssociation(){return this.familyAssociations[this.id]},parent(){return this.users[this.familyAssociation.parentUser]}}),methods:Object(v["a"])({},Object(R["b"])([g["pb"],g["nb"]]))},Hu=qu,Gu=(a("e767"),Object(U["a"])(Hu,Bu,Fu,!1,null,"137ccaff",null)),Wu=Gu.exports,Vu={components:{UserFamilyItemParent:Wu},data(){return{ready:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","user","parentsAssociationsBy"])),{},{parentsAssociations(){return this.parentsAssociationsBy(this.user)},empty(){return 0===this.parentsAssociations.length}}),async created(){await this.READ_USER_PARENTS(),this.ready=!0},methods:Object(v["a"])({},Object(R["b"])([g["Mc"]]))},Ku=Vu,Zu=Object(U["a"])(Ku,$u,Uu,!1,null,null,null),Yu=Zu.exports,Qu=function(){var t=this,e=t._self._c;return e("div",[t.ready&&t.empty?e("div",{staticClass:"info-box--grey pa16 matb15"},[e("h3",[t._v(t._s(t.say.you_have_no_insurance_policies))]),e("base-button",{staticClass:"matb30 bg--white",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"user-competitions-proposed",alias:!0})}}},[t._v(" "+t._s(t.say.see_proposed_competitions)+" ")])],1):t._e(),t._l(t.competitionsIds,(function(t){return e("base-item-competition",{key:t,attrs:{id:t}})})),t.hasMore?e("base-button",{staticClass:"btn-findmore",attrs:{btn4:""},on:{click:t.readMoreCompetitions}},[t._v(" "+t._s(t.say.see_more)+" ")]):t._e()],2)},Xu=[],Ju={data(){return{ready:!1,competitionsIds:[],hasMore:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{empty(){return 0===this.competitionsIds.length}}),created(){this.readMoreCompetitions()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Fc"]])),{},{async readMoreCompetitions(){this.ready=!1;const{competitions:t}=await this.READ_USER_COMPETITIONS({type:"with-policy",offset:this.competitionsIds.length,limit:10});this.competitionsIds=this.competitionsIds.concat(t),this.hasMore=t.length>0,this.ready=!0}})},tp=Ju,ep=(a("8ac9"),Object(U["a"])(tp,Qu,Xu,!1,null,"580effc0",null)),ap=ep.exports,np=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"overflow-hidden mat48 pab16"},[e("main-header",{attrs:{"header-color":t.headerColor,"is-main-site":"","with-posters":t.canShowCarousel},scopedSlots:t._u([{key:"left",fn:function(){return[e("main-site",{attrs:{"is-tall":t.canShowCarousel,person:t.operator,layout:t.layout}})]},proxy:!0},{key:"right",fn:function(){return[e("main-header-search")]},proxy:!0}],null,!1,1464412897)}),t.canShowCarousel?e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-lg-9 main-site__box-carousel"},[e("main-carousel",{attrs:{"competition-filter":{operator:t.operator.id}},on:{ready:function(e){t.carouselCompetitionsIds=e,t.carouselReady=!0}}})],1)])]):t._e(),e("main-list")],1):t._e()},ip=[],sp=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row h100 header-box__person",class:{"header-box__person--tall":t.isTall}},[t.layout.logoLink?e("div",{staticClass:"col-12"},[e("img",{staticClass:"header-box__person-logo",attrs:{src:t.layout.logoLink}})]):t._e(),e("div",{staticClass:"col-12"},[e("div",{staticClass:"row header-box__person-info"},[e("div",{staticClass:"header-box__person-phone"},[e("p",[t._v(t._s(t.say.organizer_phone))]),e("strong",[t._v(t._s(t.person.phone))])]),e("div",{staticClass:"header-box__person-email",class:{"header-box__person-email--margin":!t.person.website}},[e("p",[t._v(t._s(t.say.organizer_email))]),e("strong",[t._v(t._s(t.person.email))])]),t.person.website?e("div",{staticClass:"header-box__person-site"},[e("base-button",{staticClass:"person-btn w100",attrs:{btn6:""},on:{click:function(e){return t.openWebsite()}}},[t._v(" "+t._s(t.websiteUrl)+" ")])],1):t._e()])])])},op=[],rp={props:{person:{type:Object,required:!0},layout:{type:Object,required:!0},isTall:{type:Boolean,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{websiteUrl(){return this.person.website.replace(/\/\/|.+\/\//,"")}}),methods:{openWebsite(){window.open("https://"+this.websiteUrl,"_blank")}}},lp=rp,cp=(a("9f02"),Object(U["a"])(lp,sp,op,!1,null,"37a45a07",null)),dp=cp.exports,up=(t,e,a)=>{setTimeout(()=>document.getElementById("listTop").scrollIntoView({top:0,behavior:"smooth"}),1100),a()},pp={data(){return{layoutId:void 0,ready:!1,carouselReady:!1,carouselCompetitionsIds:void 0}},computed:{canShowCarousel(){return!this.carouselReady||(!!(window.innerWidth<575&&this.carouselCompetitionsIds.length)||(window.innerWidth<992&&this.carouselCompetitionsIds.length>1||window.innerWidth>=992&&this.carouselCompetitionsIds.length>=3))},headerColor(){const t=this.layout.colourDefault,e=Object(u["a"])(t).join(",");return`linear-gradient(to top, ${t}, rgba(${e}, 0.5))`},layout(){return this.layoutId?this.layouts[this.layoutId]:{colourDefault:"#37474f"}}},beforeRouteUpdate(t,e,a){up(t,e,a)}},mp={components:{MainSite:dp,MainHeaderSearch:_a,MainHeader:$e,MainList:Je,MainCarousel:ua},mixins:[pp],props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["layouts","operators"])),{},{operator(){return this.operators[this.id]}}),async created(){const[t]=await Promise.all([this.READ_OPERATOR_LAYOUT(this.id
1),this.READ_OPERATOR(this.id)]);this.layoutId=t,this.ready=!0},methods:Object(v["a"])({},Object(R["b"])([g["kc"],g["nc"]]))},fp=mp,hp=(a("f6aa"),Object(U["a"])(fp,np,ip,!1,null,"0dfc00f6",null)),bp=hp.exports,_p=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"overflow-hidden mat48 pab16"},[e("main-header",{attrs:{"header-color":t.headerColor,"is-main-site":"","with-posters":t.canShowCarousel},scopedSlots:t._u([{key:"left",fn:function(){return[e("main-site",{attrs:{"is-tall":t.canShowCarousel,person:t.organizer,layout:t.layout}})]},proxy:!0},{key:"right",fn:function(){return[e("main-header-search",{attrs:{"is-main-site":""}})]},proxy:!0}],null,!1,3611439590)}),t.canShowCarousel?e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-lg-9 main-site__box-carousel"},[e("main-carousel",{attrs:{"competition-filter":{organizer:t.organizer.id}},on:{ready:function(e){t.carouselCompetitionsIds=e,t.carouselReady=!0}}})],1)])]):t._e(),e("main-list")],1):t._e()},vp=[],gp={components:{MainSite:dp,MainHeaderSearch:_a,MainHeader:$e,MainList:Je,MainCarousel:ua},mixins:[pp],props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["layouts","organizers"])),{},{organizer(){return this.organizers[this.id]}}),async created(){await Promise.all([this.READ_ORGANIZER(this.id),this.layoutId=await this.READ_ORGANIZER_LAYOUT(this.id)]),this.ready=!0},methods:Object(v["a"])({},Object(R["b"])([g["pc"],g["qc"]]))},yp=gp,Cp=(a("39516"),Object(U["a"])(yp,_p,vp,!1,null,"283727e3",null)),wp=Cp.exports,kp=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container"},[e("h1",{staticClass:"remote-competition__title"},[t._v(" "+t._s(t.say.add_files)+" ")]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4 col-lg-3"},[e("div",{staticClass:"row"},[e("h2",[t._v(t._s(t.player.firstname)+" "+t._s(t.player.lastname))])])]),e("div",{staticClass:"col-12 col-md-8 col-lg-9"},[e("div",{staticClass:"remote-competition__box bg--gray"},[e("div",{staticClass:"row remote-competition__box-file transfer-files"},[e("div",{staticClass:"col-12 col-lg-5 remote-competition__hint"},[e("p",{staticClass:"hide--mobile"},[t._v(" "+t._s(t.say.select_files_to_upload)+" ")])]),e("div",{staticClass:"col-12 col-lg-6"},[e("base-input-filearea",{attrs:{error:t.errors.files},on:{"update:error":function(e){return t.$set(t.errors,"files",e)}},model:{value:t.inputFiles,callback:function(e){t.inputFiles=e},expression:"inputFiles"}})],1),e("div",{staticClass:"col-12"},[e("p",{staticClass:"show--mobile mab15"},[t._v(" "+t._s(t.say.select_files_to_upload)+" ")])])])]),e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4 remote-competition__button"},[e("base-button",{attrs:{btn1:"",loading:t.isLoading},on:{click:t.addFiles}},[t._v(" "+t._s(t.say.add_files)+" ")])],1)])])])]):t._e()},xp=[],Op={props:{token:{type:String,default:""}},data(){return{playerId:null,ready:!1,inputFiles:[],errors:{},isLoading:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["players","say","classificationsBy","competitions"])),{},{player(){return this.players[this.playerId]},classification(){return this.classificationsBy(this.player)[0]},competition(){return this.competitions[this.classification.competition]}}),async created(){try{this.playerId=await this.READ_PLAYER(this.token),await this.READ_CLASSIFICATION(this.player.classification)}catch(t){return void this.$router.push({name:"main-landing",alias:!0})}await this.BOOTSTRAP_MINISITE(this.classification.competition),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["wc"],g["n"],g["xb"],g["c"]])),{},{async addFiles(){this.isLoading=!0;try{await this.ADD_FILES({token:this.token,files:this.inputFiles}),this.isLoading=!1,this.$router.push({name:"minisite-transfer-confirmation",params:this.competition,alias:!0})}catch(t){this.errors=t,this.isLoading=!1}},removeFile(t){const e=this.filesInQueue.findIndex(e=>e.name===t.name);this.filesInQueue.splice(e,1)}})},Ap=Op,Sp=(a("0f34"),Object(U["a"])(Ap,kp,xp,!1,null,"db06a1da",null)),zp=Sp.exports,jp=function(){var t=this,e=t._self._c;return e("div",{staticClass:"confirmation row"},[e("div",{staticClass:"col-12"},[e("h1",{staticClass:"confirmation__title"},[t._v(" Dziękujemy za wysłanie danych. ")]),e("div",{staticClass:"confirmation__hint"},[t._v(" Twoje pliki zostały wysłane. ")]),e("div",{staticClass:"row confirmation__close"},[e("div",{staticClass:"col-6"},[e("base-button",{staticClass:"confirmation__close-btn",attrs:{btn2:""},on:{click:function(e){return t.$router.push({name:"minisite-landing",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.close)+" ")])],1)])])])},Ip=[],Pp={props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","say"])),{},{competition(){return this.competitions[this.id]}}),beforeRouteEnter(t,e,a){"minisite-transfer-files"!==e.name?a(e):a()}},Ep=Pp,Tp=(a("56d3"),Object(U["a"])(Ep,jp,Ip,!1,null,"23a91bd6",null)),Np=Tp.exports,Rp=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container confirmation"},[e("div",{staticClass:"row confirmation__content"},[t._m(0),e("div",{staticClass:"col-12 col-lg-3"},[e("h2",{staticClass:"confirmation__content-title"},[t._v(" "+t._s(t.say.thanks_for_result)+" ")]),t.isTime?e("p",{staticClass:"confirmation__content-subtitle"},[t._v(" "+t._s(`${t.say.your_declared} ${t.say.time}`)+" ")]):e("p",{staticClass:"confirmation__content-subtitle"},[t._v(" "+t._s(`${t.say.your_declared} ${t.$options.filters.asLowerCase(t.say.distance)}`)+" ")]),e("h2",{staticClass:"confirmation__content-result"},[t._v(" "+t._s(t.isTime?t.time:t.player.declaredDistance+" km")+" ")]),e("base-button",{staticClass:"confirmation__content-button",attrs:{btn2:""},on:{click:function(e){return t.showResultList()}}},[t._v(" "+t._s(t.say.see_list_results)+" ")])],1)])])},Lp=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-lg-3"},[e("img",{staticClass:"confirmation__content-image",attrs:{src:a("463f"),alt:""}})])}],Mp={props:{playerId:{type:Number,required:!0},isTimeCompetition:{type:String,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions","minisiteId","players","say"])),{},{player(){return this.players[this.playerId]},time(){return this.$options.filters.asStoper(this.player.declaredTime)},competition(){return this.competitions[this.minisiteId]},isTime(){return Boolean(this.isTimeCompetition)}}),beforeRouteEnter(t,e,a){"minisite-declare-result"!==e.name?a(e):a()},methods:{showResultList(){this.$router.push({name:"minisite-results",params:Object(v["a"])({classificationId:this.player.classification},this.competition),alias:!0})}}},Dp=Mp,$p=(a("1cf1"),Object(U["a"])(Dp,Rp,Lp,!1,null,"374a515e",null)),Up=$p.exports,Bp=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 confirmation"},[e("h1",{staticClass:"c-positive"},[t._v(" "+t._s(t.say.thank_you)+" ")]),e("p",{staticClass:"mat8"},[t._v(" "+t._s(t.say.your_account_is_active)+" ")])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"row profile"},[t._m(0),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-6"},[e("div",{staticClass:"row profile__option"},[t._m(1),e("div",{staticClass:"profile__option-box"},[e("p",{staticClass:"profile__option-title"},[t._v(" "+t._s(t.say.take_part_in_competition)+" ")]),e("p",[t._v(" "+t._s(t.say.create_participant_profile_for)+": ")]),e("p",[t._v("• "+t._s(t.say.collect_results))]),e("p",[t._v("• "+t._s(t.say.save_more_efficiently))])]),e("div",{staticClass:"col-12 profile__option-btn"},[e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.chooseUser()}}},[t._v(" "+t._s(t.say.create_participant_profile)+" ")])],1)])]),e("div",{staticClass:"col-12 col-lg-6"},[e("div",{staticClass:"row profile__option"},[t._m(2),e("div",{staticClass:"profile__option-box"},[e("p",{staticClass:"profile__option-title"},[t._v(" "+t._s(t.say.organizes_competition)+" ")]),e("p",[t._v(" "+t._s(t.say.create_organizer_profile_for)+": ")]),e("p",[t._v(" • "+t._s(t.say.create_competition_page)+" ")]),e("p",[t._v(" • "+t._s(t.say.start_online_registration)+" ")]),e("p",[t._v(" • "+t._s(t.say.measure_results_stoper)+" ")])]),e("div",{staticClass:"col-12 profile__option-btn"},[e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.chooseOrganizer()}}},[t._v(" "+t._s(t.say.create_organizer_profile)+" ")])],1)])])])])])])])])},Fp=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-lg-3 profile__success"},[e("img",{staticClass:"profile__success-img",attrs:{src:a("463f"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("img",{staticClass:"profile__option-image",attrs:{src:a("9f54")}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("img",{staticClass:"profile__option-image",attrs:{src:a("1fca")}})])}],qp={computed:Object(v["a"])({},Object(R["c"])(["user","say"])),created(){this.user||this.$router.push({name:"authentication-login",alias:!0})},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["h"],g["e"]])),{},{async chooseUser(){await this.ADD_USER_ROLE(),this.$router.push({name:"user-compet
1itions-future",alias:!0})},async chooseOrganizer(){await this.ADD_ORGANIZER_ROLE(),this.$router.push({name:"panel-organizer",alias:!0})}})},Hp=qp,Gp=(a("1c2d"),Object(U["a"])(Hp,Bp,Fp,!1,null,"9c403ae4",null)),Wp=Gp.exports,Vp=function(){var t=this,e=t._self._c;return e("div",[e("panel-organizer-header",{attrs:{"organizer-id":t.organizerId},on:{"search-competitions":function(e){t.searchInput=e},"add-competition":t.onAddCompetition}}),t.ready?t.ready&&t.competitionsIds.length?e("panel-list",{attrs:{"is-competitions":"",items:t.items},on:{"row-click":t.onRowClick,"switch-show-competition":t.switchShowCompetitions,"delete-competition":function(e){t.showPopupWithDelete=!0,t.competitionIdToDelete=e}}}):!t.ready||t.competitionsIds.length||1!==t.page||t.isLoadingPrevCompetitions?t._e():e("organizer-account-hint",{attrs:{"organizer-id":t.organizerId}}):e("div",{staticClass:"container mat32"},[t._m(0)]),t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row organizer__pages"},[e("div",{staticClass:"organizer__pages-btn",class:{"organizer__pages-btn--disabled":!t.isPreviousPage},on:{click:function(e){t.isPreviousPage&&t.prevPage()}}},[t.isLoadingPrevCompetitions?e("div",{staticClass:"organizer__pages-loading"},[t._m(1)]):t._e(),t._v(" Poprzednie ")]),e("div",{staticClass:"organizer__pages-btn",class:{"organizer__pages-btn--disabled":!t.isNextPage},on:{click:function(e){t.isNextPage&&t.nextPage()}}},[t.isLoadingNextCompetitions?e("div",{staticClass:"organizer__pages-loading"},[t._m(2)]):t._e(),t._v(" Następne ")])])]):t._e(),t.showPopupWithDelete?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Usuń zawody ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz usunąć zawody?")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mat16"},[t._v(" Tej czynności nie będzie można cofnąć. ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){return t.onClosePopup()}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.deleteCompetition(t.competitionIdToDelete),t.showPopupWithDelete=!t.showPopupWithDelete}}},[t._v(" Usuń ")])]},proxy:!0}],null,!1,1924180952)}):t._e()],1)},Kp=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"organizer-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])}],Zp=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{ref:"list",staticClass:"row container-list"},[e("base-table",{staticClass:"list",attrs:{headers:t.headers,items:t.items},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"list__row"},t._l(t.headers,(function(n,i){return e("th",{key:i,staticClass:"list__row-header",on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a){return e("tr",{key:a.id,staticClass:"list__row list__row--pointer list__row--hover",class:{"list__row--disabled":t.isCompetitions&&!a.isShow},on:{click:function(e){return t.onRowClick(a)}}},t._l(t.headers,(function(n,i){return e("td",{key:i,staticClass:"list__row-data",class:{"list__row-data--sticky-right":"more"===n.value,"list__row-data--name":"name"===n.value,"list__row-data--location":"location"===n.value,"list__row-data--active":"more"===n.value&&a.id===t.menuCompetitionId,"list__row-data--loading":t.loading},on:{click:function(e){"more"===n.value?t.menuClickHandler(e,a.id):"status"===n.value&&t.statusClickHandler(e)}}},["more"===n.value?[e("div",{ref:a.id,refInFor:!0,staticClass:"more-btn"},[e("i",{staticClass:"fas fa-ellipsis-h"}),t.menuCompetitionId===a.id?e("div",{staticClass:"more-btn__content",class:{"more-btn__content--from-up":t.isMenuCompetitionIdInBottom}},[t.isCompetitions?[e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$router.push({name:"panel-competition-stoper",params:a,alias:!0})}}},[e("i",{staticClass:"fas fa-stopwatch mar8"}),t._v(" Otwórz stoper ")]),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.copyCompetition(a.id)}}},[e("i",{staticClass:"far fa-copy mar8"}),t._v(" Kopiuj zawody ")]),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("switch-show-competition",a.id)}}},[e("i",{staticClass:"far mar8",class:[a.isShow?"fa-eye-slash":"fa-eye"]}),t._v(" "+t._s(a.isShow?"Ukryj na liście zawodów":"Pokaż na liście zawodów")+" ")]),t.isAdmin?e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("switch-front-form-type",a)}}},[e("i",{staticClass:"mar8",class:["old"===a.frontFormType?"fas fa-registered":"far fa-registered"]}),t._v(" "+t._s("old"===a.frontFormType?"Ustaw: Nowy formularz rejestracji":"Ustaw: Stary formularz rejestracji")+" ")]):t._e(),t.isAdmin?e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("switch-global-shop-competition",a.id)}}},[e("i",{staticClass:"far mar8",class:[a.globalShop?"fa-cart-arrow-down":"fa-cart-plus"]}),t._v(" "+t._s(a.globalShop?"Zamknij sklep partnerski":"Otwórz sklep partnerski")+" ")]):t._e(),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("delete-competition",a.id)}}},[e("i",{staticClass:"far fa-trash mar8"}),t._v(" Usuń zawody ")]),t.isAdmin?[e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("promote-competition",a.id)}}},[e("i",{staticClass:"fas fa-dollar-sign mar8"}),t._v(" Promuj ")]),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("gamification-competition",a.id)}}},[e("i",{staticClass:"fas fa-trophy mar8"}),t._v(" "+t._s(a.isGamification?"Usuń grywalizacje":"Grywalizacja")+" ")])]:t._e()]:[e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("send-access",a.id)}}},[e("i",{staticClass:"far fa-envelope mar8"}),t._v(" "+t._s(t.isOrganizers?"Wyślij dostęp organizatorowi":"Wyślij dostęp operatorowi")+" ")]),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$emit("delete-person",a.id)}}},[e("i",{staticClass:"far fa-trash mar8"}),t._v(" "+t._s(t.isOrganizers?"Usuń organizatora":"Usuń operatora")+" ")])]],2):t._e()])]:"status"===n.value?[e("div",{staticStyle:{width:"200px"}},[e("select",{directives:[{name:"model",rawName:"v-model.number",value:t.selectedStatus[a.id],expression:"selectedStatus[item.id]",modifiers:{number:!0}}],on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(e){var a="_value"in e?e._value:e.value;return t._n(a)}));t.$set(t.selectedStatus,a.id,e.target.multiple?n:n[0])},function(e){return t.checkOrganizer(a)}]}},t._l(t.statuses,(function(a){return e("option",{key:a.code,domProps:{value:a.code}},[t._v(" "+t._s(a.label)+" ")])})),0)])]:[t._v(" "+t._s(a[n.value])+" ")]],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[a.length?e("div",[t._v(" Brak wyników wyszukiwania "),e("b",[t._v(t._s(a))])]):t.isCompetitions?e("div",[t._v("Brak zorganizowanych zawodów")]):t.isOrganizers?e("div",[t._v("Brak organizatorów")]):e("div",[t._v("Brak operatorów")])]}}])})],1),t.showOrganizerModal&&t.organizerId?e("check-organizer-setup",{attrs:{id:t.organizerId,"competition-id":t.organizerModalCompetitionId},on:{change:function(e){return t.setStatus(t.statusItem)},close:t.closeOrganizerModalEvent}}):t._e()],1)},Yp=[],Qp={components:{CheckOrganizerSetup:Ya},props:{isOrganizers:{type:Boolean,default:!1},isCompetitions:{type:Boolean,default:!1},isOperators:{type:Boolean,default:!1},isAdmin:{type:Boolean,default:!1},items:{type:Array,default:()=>[]}},data(){return{menuCompetitionId:null,isMenuCompetitionIdInBottom:!1,organizerHeaders:[{text:"Data dodania",value:"addedTime"},{text:"Nazwa organizatora",value:"name"},{text:"Telefon",value:"phone"},{text:"E-mail",value:"email"},{text:"",value:"more"}],competitionsHeaders:[{text:"Start",value:"startedTime"},{text:"Nazwa zawodów",value:"name"},{text:"Zarej.",value:"registered"},{text:"Opłac.",value:"paid"},{text:"Miejscowość",value:"location"},{text:"Status",value:"status"},{text:"Więcej",value:"more"}],statuses:[{label:"Informacja o zawodach",code:1},{label:"Rejestracja otwarta",code:2},{label:"Rejestracja zamknięta",code:3},{label:"Wyniki LIVE",code:4},{label:"Wyniki nieoficjalne",code:5},{label:"Wyniki oficjalne",code:6}],loading:!1,showOrganizerModal:!1,organizerModalCompetitionId:0,organizerId:null,statusItem:null,selectedStatus:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{headers(){if(this.isCompetitions)return this.competitionsHeaders;if(this.isOperators){const t=this.organizerHeaders.find(t=>"name"===t.value);return t.text="Nazwa operatora",this.organizerHeaders}return this.organizerHeaders}}),watch:{items:{immediate:!0,handler(t){const e={};for(const a of t)this.showOrganizerModal&&this.statusItem&&this.statusItem.id===a.id?e[a.id]=this.selectedStatus[a.id]:e[a.id]=Number(a.statusId);this.selectedStatus=e}},menuCompetitionId(t){const e=this.$refs.list.getBoundingClientRect().top,a=this.$refs.list.getBoundingClientRect().top;t&&(this.isMenuCompetitionIdInBottom=a-e>200)}},mounted(){document.addEventListener("click",this.closeMenu)},beforeDestroy(){document.removeEventListener("click",this.closeMenu)},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["u"],g["ld"]])),{},{menuClickHandler(t,e){t.stopPropagation(),this.menuCompetitionId===e?this.menuCompetitionId=null:this.menuCompetitionId=e},statusClickHandler(t){t.stopPropagation()},closeMenu(){this.menuCompetitionId=null},onRowClick(t){this.$emit("row-click",t)},async copyCompetition(t){const e=await this.COPY_COMPETITION(t);this.$router.push({name:"panel-competition-dashboard",params:this.competitions[e],alias:!0})},closeOrganizerModalEvent(){this.statusItem&&this.revertStatus(this.statusItem),this.showOrganizerModal=!1,this.statusItem=null,this.organizerModalCompetitionId=0,this.organizerId=null},revertStatus(t){const e=this.items.find(e=>e.id===t.id);e&&this.$set(this.selectedStatus,t.id,Number(e.statusId))},checkOrganizer(t){const e=this.selectedStatus[t.id];if(2===e){var a,n;const e=this.competitions[t.id],i=Number(null!==(a=t.organizerId)&&void 0!==a?a:null===e||void 0===e?void 0:e.organizer);if(!i)return void this.setStatus(t);this.organizerModalCompetitionId=null!==(n=null===e||void 0===e?void 0:e.id)&&void 0!==n?n:t.id,this.statusItem=t,this.organizerId=i,this.showOrganizerModal=!0}else this.setStatus(t)},async setStatus(t){this.loading=!0;const e=this.selectedStatus[t.id],a=this.competitions[t.id];try{await this.UPDATE_COMPETITION(Object(v["a"])(Object(v["a"])({},a),{},{status:e})),this.showOrganizerModal=!1,this.statusItem=null,this.organizerModalCompetitionId=0,this.organizerId=null}catch(n){this.revertStatus(t),alert("Status nie został zmieniony")}this.loading=!1}})},Xp=Qp,Jp=(a("add1"),Object(U["a"])(Xp,Zp,Yp,!1,null,"7d48d7e4",null)),tm=Jp.exports,em=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row organizer-hint"},[e("div",{staticClass:"col-12"},[e("h1",{staticClass:"organizer-hint__title"},[t._v(" Witaj w panelu organizatora zawodów! ")]),e("base-button",{staticClass:"organizer-hint__button",attrs:{btn1:""},on:{click:function(e){return t.createDefaultCompetition()}}},[t._v(" Utwórz przykładowe zawody ")]),e("p",{staticClass:"organizer-hint__or"},[t._v(" lub ")]),e("base-button",{staticClass:"organizer-hint__button organizer-hint__button--self",attrs:{btn4:""},on:{click:function(e){return t.$router.push({name:"panel-create-competition",params:{organizerId:t.organizerId},alias:!0})}}},[t._v(" Dodaj swoje zawody ")])],1)])])},am=[],nm={props:{organizerId:{type:Number,required:!0}},computed:Object(v["a"])({},Object(R["c"])(["competitions"])),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["z"]])),{},{async createDefaultCompetition(){const t=await this.CREATE_DEFAULT_COMPETITION(this.organizerId);this.$router.push({name:"panel-competition-dashboard",params:this.competitions[t],alias:!0})}})},im=nm,sm=(a("76e4"),Object(U["a"])(im,em,am,!1,null,"14ef5e3d",null)),om=sm.exports,rm=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row organizer-header"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-input-text",{staticClass:"organizer-header__search",attrs:{icon:"fas fa-search",label:"Szukaj..."}
1,model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),e("div",{staticClass:"col-12 col-lg-5 organizer-header__link"},[e("base-link-input",{staticClass:"organizer-header__link-box",attrs:{link:t.organizerLink,"button-name":"Kopiuj link",hint:"To jest publiczny adres strony z listą Twoich zawodów"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("base-button",{staticClass:"organizer-header__add-competition",attrs:{btn1:""},on:{click:function(e){return t.$emit("add-competition")}}},[t._v(" Zorganizuj nowe zawody ")])],1)])])},lm=[],cm={props:{organizerId:{type:Number,required:!0}},data(){return{search:""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["organizers"])),{},{organizerLink(){return this.organizers[this.organizerId]?`dostartu.pl/${this.organizers[this.organizerId].name}-or${this.organizerId}`:"Wczytywanie..."}}),watch:{search(){this.$emit("search-competitions",this.search)}}},dm=cm,um=(a("96be"),Object(U["a"])(dm,rm,lm,!1,null,"3bcd6921",null)),pm=um.exports,mm={components:{PanelList:tm,OrganizerAccountHint:om,PanelOrganizerHeader:pm},data(){return{searchInput:"",competitionsIds:[],ready:!1,page:1,isLoadingPrevCompetitions:!1,isLoadingNextCompetitions:!1,showPopupWithDelete:null,competitionIdToDelete:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","competitions","competitionPlayerCounts","organizers"])),{},{organizerId(){return this.$route.params.organizerId&&this.isModerator?this.$route.params.organizerId:this.user.organizer},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")},isPreviousPage(){return this.page>1},organizer(){return this.organizers[this.organizerId]},isNextPage(){return 30===this.competitionsIds.length&&!this.searchInput},items(){const t=[];for(const e of this.competitionsIds){const a=this.competitions[e],n={id:e,startedTime:this.$options.filters.asTime(a.startedTime),name:a.name,registered:this.competitionPlayerCounts[e].playersCount,paid:this.competitionPlayerCounts[e].playersPayCount,location:a.location,status:this.$options.filters.asStatus(a.status),statusId:a.status,isShow:a.showOnOrganizerPage,organizerId:a.organizer};t.push(n)}return t}}),watch:{async searchInput(){if(this.searchInput.length>=3){const{competitions:t}=await this.READ_COMPETITIONS({itemsPerPage:10,organizer:this.organizerId,page:1,panel:1,name:this.searchCompetitions});this.competitionsIds=t}else if(!this.searchInput){this.page=1;const{competitions:t}=await this.READ_COMPETITIONS({itemsPerPage:30,organizer:this.organizerId,page:this.page,panel:1});this.competitionsIds=t}}},async created(){const{competitionsIds:t}=await this.BOOTSTRAP_ORGANIZER(this.organizerId);this.competitionsIds=t,this.ready=!0},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["p"],g["Ib"],g["ld"],g["ab"]])),Object(R["d"])([ce["x"]])),{},{async nextPage(){this.page+=1,this.isLoadingNextCompetitions=!0;const{competitions:t}=await this.READ_COMPETITIONS({organizer:this.organizerId,panel:1,page:this.page,itemsPerPage:30});this.competitionsIds=t,this.isLoadingNextCompetitions=!1},async prevPage(){this.page-=1,this.isLoadingPrevCompetitions=!0;const{competitions:t}=await this.READ_COMPETITIONS({organizer:this.organizerId,panel:1,page:this.page,itemsPerPage:30});this.competitionsIds=t,this.isLoadingPrevCompetitions=!1},onRowClick(t){this.$router.push({name:"panel-competition-dashboard",params:{name:t.name,id:t.id},alias:!0})},async switchShowCompetitions(t){const e=Object(v["a"])(Object(v["a"])({},this.competitions[t]),{},{showOnOrganizerPage:!this.competitions[t].showOnOrganizerPage});await this.UPDATE_COMPETITION(e)},onAddCompetition(){this.$router.push({name:"panel-create-competition",alias:!0,params:{organizerId:this.organizerId}})},async deleteCompetition(t){try{const e=this.competitionsIds.findIndex(e=>e===t);this.competitionsIds.splice(e,1),await this.DELETE_COMPETITION(t),this.SET_NOTIFICATION("alerts_positive_56")}catch(e){this.SET_NOTIFICATION("alerts_negative_4"),this.competitionsIds.push(t)}},onClosePopup(){this.organizerIdToDelete=null,this.competitionIdToDelete=null,this.showPopupWithDelete=!1}})},fm=mm,hm=(a("52f0"),Object(U["a"])(fm,Vp,Kp,!1,null,"71318afe",null)),bm=hm.exports,_m=function(){var t=this,e=t._self._c;return e("div",[e("panel-operator-header",{attrs:{"operator-id":t.operatorId,"is-organizer-list":t.isOrganizerList},on:{"update:isOrganizerList":function(e){t.isOrganizerList=e},"update:is-organizer-list":function(e){t.isOrganizerList=e},"show-add-organizer":function(e){t.showAddOrganizer=!t.showAddOrganizer}
1,"search-competitions":function(e){t.searchCompetitions=e},"search-organizers":function(e){t.searchOrganizers=e}}}),e("transition",{attrs:{name:"operator-form"}},[t.showAddOrganizer?e("panel-add-person",{staticClass:"operator-header__add-box",on:{"add-person":t.onAddOrganizer,close:function(e){t.showAddOrganizer=!1}}}):t._e()],1),t.ready?e("panel-list",{attrs:{"is-organizers":t.isOrganizerList,"is-competitions":!t.isOrganizerList,items:t.items},on:{"row-click":t.onRowClick,"switch-show-competition":t.onSwitchCompetition,"send-access":t.sendAccessToOrganizer,"delete-competition":function(e){t.showPopupWithDelete=!0,t.competitionIdToDelete=e},"delete-person":function(e){t.showPopupWithDelete=!0,t.organizerIdToDelete=e}}}):e("div",{staticClass:"container mat32"},[t._m(0)]),!t.isOrganizerList&&t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row operator__pages"},[e("div",{staticClass:"operator__pages-btn",class:{"operator__pages-btn--disabled":!t.isPreviousPage},on:{click:function(e){t.isPreviousPage&&t.prevPage()}}},[t.isLoadingPrevCompetitions?e("div",{staticClass:"operator__pages-loading"},[t._m(1)]):t._e(),t._v(" Poprzednie ")]),e("div",{staticClass:"operator__pages-btn",class:{"operator__pages-btn--disabled":!t.isNextPage},on:{click:function(e){t.isNextPage&&t.nextPage()}}},[t.isLoadingNextCompetitions?e("div",{staticClass:"operator__pages-loading"},[t._m(2)]):t._e(),t._v(" Następne ")])])]):t._e(),t.showPopupWithDelete?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t.isOrganizerList?"Usuń organizatora":"Usuń zawody")+" ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz usunąć "+t._s(t.isOrganizerList?"organizatora":"zawody")+"?")])]},proxy:!0},{key:"content",fn:function(){return[t.isOrganizerList?e("div",{staticClass:"mat16 c-negative"},[t._v(" Zostaną usunięte wszystkie zawody organizatora ")]):t._e(),e("div",{staticClass:"mat8"},[t._v(" Tej czynności nie będzie można cofnąć. ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){return t.onClosePopup()}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.onDelete(),t.showPopupWithDelete=!t.showPopupWithDelete}}},[t._v(" Usuń ")])]},proxy:!0}],null,!1,2217794508)}):t._e()],1)},vm=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"operator-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])}],gm=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("ValidationObserver",{ref:"orderCollectionOfFeesFormObserver",attrs:{tag:"div"},scopedSlots:t._u([{key:"default",fn:function({handleSubmit:a}
1){return[e("form",{staticClass:"row add-person",class:{"is-waiting":t.isWaiting},on:{submit:function(e){return e.preventDefault(),a(t.add)}}},[e("div",{staticClass:"col-12"},[e("h1",{staticClass:"add-person__title"},[t._v(" "+t._s(t.isOperator?"Dodaj operatora":"Dodaj organizatora")+" ")])]),e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"add-person__box"},[e("p",{staticClass:"add-person__box-label"},[t._v(" E-mail ")]),e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"email",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{staticClass:"add-person__input",attrs:{error:t.apiErrors.email||a[0],label:"E-mail"},on:{"update:error":function(e){return t.$set(t.apiErrors.email||a,0,e)}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})]}}],null,!0)})],1)]),e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"add-person__box"},[e("p",{staticClass:"add-person__box-label"},[t._v(" Nazwa ")]),e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{staticClass:"add-person__input",attrs:{label:"Nazwa",error:t.apiErrors.name||a[0]},on:{"update:error":function(e){return t.$set(t.apiErrors.name||a,0,e)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})]}}],null,!0)})],1)]),e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"add-person__box"},[e("p",{staticClass:"add-person__box-label"},[t._v(" Telefon ")]),e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"phone",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{staticClass:"add-person__input",attrs:{label:"Telefon",error:t.apiErrors.phone||a[0]},on:{"update:error":function(e){return t.$set(t.apiErrors.phone||a,0,e)}},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})]}}],null,!0)})],1)]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"row add-person__buttons"},[e("div",{staticClass:"col-12 col-lg-2"},[e("base-button",{staticClass:"add-person__btn",attrs:{btn2:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" Anuluj ")])],1),e("div",{staticClass:"col-12 col-lg-2"},[e("base-button",{staticClass:"add-person__btn",attrs:{btn1:"",loading:t.isWaiting},on:{click:function(e){return a(t.add)}}},[t._v(" Dodaj ")])],1)])])])]}}])})],1)},ym=[];Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"}));var Cm={props:{isOperator:{type:Boolean,default:!1}},components:{ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},data(){return{email:"",phone:"",name:"",apiErrors:{},isWaiting:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user"])),{},{operatorId(){var t;return this.isOperator?null:null!==(t=this.$route.params.operatorId)&&void 0!==t?t:this.user.operator}}),methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["x"]])),Object(R["b"])([g["I"],g["H"]])),{},{async add(){this.isWaiting=!0;const t={email:this.email,phone:this.phone,name:this.name};let e;try{this.isOperator?(e=await this.CREATE_OPERATOR(t),this.SET_NOTIFICATION("alerts_positive_57")):(e=await this.CREATE_ORGANIZER(Object(v["a"])({operator:this.operatorId},t)),this.SET_NOTIFICATION("alerts_positive_43"))}catch(a){return void(this.apiErrors=a)}finally{this.isWaiting=!1}this.$emit("add-person",e)}})},wm=Cm,km=(a("7a0f"),Object(U["a"])(wm,gm,ym,!1,null,"507fd751",null)),xm=km.exports,Om=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container pab1"},[e("div",{staticClass:"row operator-header"},[e("div",{staticClass:"col-12 col-lg-5"},[e("base-button-group",{staticClass:"operator-header__views",attrs:{horizontal:""}},[e("base-button",{staticClass:"operator-header__views-btn",attrs:{pressed:t.isOrganizerList,btn11:""},on:{click:function(e){return t.$emit("update:isOrganizerList",!0)}}},[t._v(" Lista organizatorów ")]),e("base-button",{staticClass:"operator-header__views-btn",attrs:{btn11:"",pressed:!t.isOrganizerList},on:{click:function(e){return t.$emit("update:isOrganizerList",!1)}}},[t._v(" Lista zawodów ")])],1)],1),e("div",{staticClass:"col-12 col-lg-4 operator-header__inputs"},[t.isOrganizerList?e("base-input-text",{staticClass:"operator-header__search",attrs:{icon:"fas fa-search",label:"Szukaj..."},model:{value:t.searchOrganizers,callback:function(e){t.searchOrganizers=e},expression:"searchOrganizers"}}):e("base-link-input",{staticClass:"operator-header__link",attrs:{link:t.operatorLink,"button-name":"Kopiuj link",hint:"To jest publiczny adres strony z listą Twoich zawodów"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[t.isOrganizerList?e("base-button",{staticClass:"operator-header__add-organizer",attrs:{btn1:""},on:{click:function(e){return t.$emit("show-add-organizer")}}},[t._v(" Dodaj organizatora ")]):e("base-input-text",{staticClass:"operator-header__search operator-header__search--competitions",attrs:{icon:"fas fa-search",label:"Szukaj..."}
1,model:{value:t.searchCompetitions,callback:function(e){t.searchCompetitions=e},expression:"searchCompetitions"}})],1)])])},Am=[],Sm={props:{operatorId:{required:!0},isOrganizerList:{type:Boolean,required:!0}},data(){return{searchCompetitions:"",searchOrganizers:""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["operators"])),{},{operatorLink(){return this.operators[this.operatorId]?`dostartu.pl/${this.operators[this.operatorId].name}-op${this.operatorId}`:"Wczytywanie..."}}),watch:{searchCompetitions(){this.$emit("search-competitions",this.searchCompetitions)},searchOrganizers(){this.$emit("search-organizers",this.searchOrganizers)}}},zm=Sm,jm=(a("9a79"),Object(U["a"])(zm,Om,Am,!1,null,"8d349d00",null)),Im=jm.exports,Pm={components:{PanelAddPerson:xm,PanelList:tm,PanelOperatorHeader:Im},data(){return{searchOrganizers:"",searchCompetitions:"",isOrganizerList:!1,competitionsIds:[],organizersIds:[],initialOrganizersIds:[],ready:!1,page:1,isLoadingPrevCompetitions:!1,isLoadingNextCompetitions:!1,showAddOrganizer:!1,showPopupWithDelete:!1,competitionIdToDelete:null,organizerIdToDelete:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","organizers","operators","competitions","competitionPlayerCounts"])),{},{isPreviousPage(){return this.page>1},isNextPage(){return this.competitionsIds.length>0&&!this.searchCompetitions},competitionsFilter(){return this.$router.matched("organizer-competitions",this.$route)?{organizer:this.$route.params.organizerId,panel:1,page:this.page,itemsPerPage:30}:{operator:this.operatorId,panel:1,page:this.page,itemsPerPage:30}},isModerator(){return this.user.roles.includes("ROLE_ADMIN")},operatorId(){return this.isModerator&&this.$route.params.operatorId?this.$route.params.operatorId:this.user.operator},items(){const t=[];if(this.isOrganizerList)for(const e of this.organizersIds){const a=this.organizers[e],n={id:e,name:a.name,phone:a.phone,email:a.email,addedTime:a.addedTime.format("DD.MM.YYYY")};t.push(n)}else for(const e of this.competitionsIds){const a=this.competitions[e],n={id:e,startedTime:this.$options.filters.asTime(a.startedTime),name:a.name,registered:this.competitionPlayerCounts[e].playersCount,paid:this.competitionPlayerCounts[e].playersPayCount,location:a.location,status:this.$options.filters.asStatus(a.status),statusId:a.status,isShow:a.mainPromo,organizerId:a.organizer};t.push(n)}return t}}),watch:{async searchCompetitions(){if(this.searchCompetitions.length>=3){const{competitions:t}=await this.READ_COMPETITIONS(Object(v["a"])(Object(v["a"])({},this.competitionsFilter),{},{page:1,itemsPerPage:10,name:this.searchCompetitions}));this.competitionsIds=t}else if(!this.searchCompetitions){this.page=1;const{competitions:t}=await this.READ_COMPETITIONS(Object(v["a"])({},this.competitionsFilter));this.competitionsIds=t}},async searchOrganizers(){if(this.searchOrganizers.length){const t=this.searchOrganizers,e=[];for(const a of this.initialOrganizersIds){const n=this.organizers[a];this.matchSome([n.name,n.email],t)&&e.push(a)}this.organizersIds=e}else this.organizersIds=this.initialOrganizersIds}},async created(){"lista-zawodow"===this.$route.query.q&&(this.isOrganizerList=!1);const{competitionsIds:t,organizersIds:e}=await this.BOOTSTRAP_OPERATOR(this.operatorId);this.competitionsIds=t,this.organizersIds=e,this.initialOrganizersIds=e,this.ready=!0},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["x"]])),Object(R["b"])([g["o"],g["Ib"],g["p"],g["ld"],g["Yc"],g["ab"],g["fb"]])),{},{async nextPage(){this.page+=1,this.isLoadingNextCompetitions=!0,this.competitionsIds=await this.readCompetitions(),this.isLoadingNextCompetitions=!1},async prevPage(){this.page-=1,this.isLoadingPrevCompetitions=!0,this.competitionsIds=await this.readCompetitions(),this.isLoadingPrevCompetitions=!1},async readCompetitions(){const{competitions:t}=await this.READ_COMPETITIONS(Object(v["a"])({},this.competitionsFilter));return t},onAddOrganizer(t){this.organizersIds.push(t),this.showAddOrganizer=!1},matchSome(t,e){const a=new RegExp(e,"i");for(const n of t)if(n.match(a))return!0;return!1},onRowClick(t){this.isOrganizerList?this.$router.push({name:"panel-organizer",params:{organizerId:t.id},alias:!0}):this.$router.push({name:"panel-competition-dashboard",params:{name:t.name,id:t.
1id},alias:!0})},async onSwitchCompetition(t){const e=Object(v["a"])(Object(v["a"])({},this.competitions[t]),{},{mainPromo:!this.competitions[t].mainPromo});await this.UPDATE_COMPETITION(e)},async sendAccessToOrganizer(t){try{await this.SEND_ORGANIZER_ACCESS(t),this.SET_NOTIFICATION("alerts_positive_22")}catch(e){this.SET_NOTIFICATION("alerts_negative_4")}},onClosePopup(){this.organizerIdToDelete=null,this.competitionIdToDelete=null,this.showPopupWithDelete=!1},async onDelete(){this.isOrganizerList?(await this.deleteOrganizer(this.organizerIdToDelete),this.organizerIdToDelete=null):(await this.deleteCompetition(this.competitionIdToDelete),this.competitionIdToDelete=null)},async deleteCompetition(t){try{const e=this.competitionsIds.findIndex(e=>e===t);this.competitionsIds.splice(e,1),await this.DELETE_COMPETITION(t),this.SET_NOTIFICATION("alerts_positive_56")}catch(e){this.SET_NOTIFICATION("alerts_negative_4"),this.competitionsIds.push(t)}},async deleteOrganizer(t){try{const e=this.organizersIds.findIndex(e=>e===t),a=this.initialOrganizersIds.findIndex(e=>e===t);this.initialOrganizersIds.splice(a,1),this.organizersIds.splice(e,1),await this.DELETE_ORGANIZER(t),this.SET_NOTIFICATION("alerts_positive_44")}catch(e){this.SET_NOTIFICATION("alerts_negative_4"),this.organizersIds.push(t),this.initialOrganizersIds.push(t)}}})},Em=Pm,Tm=(a("44e9"),Object(U["a"])(Em,_m,vm,!1,null,"e68b2fbc",null)),Nm=Tm.exports,Rm=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"container pab1"},[e("div",{staticClass:"row admin-header"},[e("div",{staticClass:"col-12 col-lg-5"},[e("base-button-group",{staticClass:"admin-header__views",attrs:{horizontal:""}},[e("base-button",{staticClass:"admin-header__views-btn",attrs:{pressed:!t.isCompetitionList,btn11:""},on:{click:function(e){t.isCompetitionList=!1}}},[t._v(" Lista operatorów ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:t.isCompetitionList},on:{click:function(e){t.isCompetitionList=!0}}},[t._v(" Lista zawodów ")])],1)],1),e("div",{staticClass:"col-12 col-lg-4"},[t.isCompetitionList?t._e():e("base-input-text",{staticClass:"admin-header__search",attrs:{icon:"fas fa-search",label:"Szukaj..."},model:{value:t.searchOperators,callback:function(e){t.searchOperators=e},expression:"searchOperators"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[t.isCompetitionList?e("base-input-text",{staticClass:"admin-header__search admin-header__search--competitions",attrs:{icon:"fas fa-search",label:"Szukaj..."},model:{value:t.searchCompetitions,callback:function(e){t.searchCompetitions=e},expression:"searchCompetitions"}}):e("base-button",{staticClass:"admin-header__add-operator",attrs:{btn1:""},on:{click:function(e){t.showAddOperator=!t.showAddOperator}}},[t._v(" Dodaj operatora ")])],1)])]),e("transition",{attrs:{name:"admin-transition"}},[t.showPromotePanel?e("panel-promote-competition",{attrs:{competition:t.competitions[t.competitionIdToPromote]},on:{"close-promote":function(e){t.showPromotePanel=!1,t.competitionIdToPromote=null}}}):t._e(),t.showAddOperator?e("panel-add-person",{staticClass:"admin-header__add-box",attrs:{"is-operator":""},on:{"add-person":t.addOperator,close:function(e){t.showAddOperator=!1}}}):t._e()],1),t.ready?e("panel-list",{attrs:{"is-operators":!t.isCompetitionList,"is-competitions":t.isCompetitionList,"is-admin":"",items:t.items},on:{"search-competitions":function(e){t.searchInput=e},"row-click":t.onRowClick,"send-access":t.sendAccessToOperator,"delete-competition":function(e){t.showPopupWithDelete=!0,t.competitionIdToDelete=e},"delete-person":function(e){t.showPopupWithDelete=!0,t.operatorIdToDelete=e},"switch-show-competition":t.onSwitchCompetition,"switch-front-form-type":t.onSwitchFrontFormType,"switch-global-shop-competition":t.globalShopCompetition,"promote-competition":t.promoteCompetition,"gamification-competition":t.setGamification}}):e("div",{staticClass:"container mat32"},[t._m(0)]),t.isCompetitionList&&t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row admin__pages"},[e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isPreviousPage},on:{click:function(e){t.isPreviousPage&&t.prevPage()}}},[t.isLoadingPrevCompetitions?e("div",{staticClass:"admin__pages-loading"},[t._m(1)]):t._e(),t._v(" Poprzednie ")]),e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isNextPage},on:{click:function(e){t.isNextPage&&t.nextPage()}}},[t.isLoadingNextCompetitions?e("div",{staticClass:"admin__pages-loading"},[t._m(2)]):t._e(),t._v(" Następne ")])])]):t._e(),t.showPopupWithDelete?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t.isCompetitionList?"Usuń zawody":"Usuń operatora")+" ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz usunąć "+t._s(t.isCompetitionList?"zawody":"operatora")+"?")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mat16"},[t._v(" Tej czynności nie będzie można cofnąć. ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){return t.onClosePopup()}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.onDelete(),t.showPopupWithDelete=!t.showPopupWithDelete}}},[t._v(" Usuń ")])]},proxy:!0}],null,!1,2045243787)}):t._e()],1)},Lm=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])}],Mm=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row panel-promote"},[t._m(0),e("div",{staticClass:"col-4 col-lg-2"},[e("div",{staticClass:"panel-promote__box-img"},[t.isFetching?e("div",{staticClass:"panel-promote__lack-poster"},[t._m(1)]):t.isPoster?e("img",{staticClass:"panel-promote__poster",attrs:{src:t.layout.posterLink,alt:"promotion poster"}}):e("div",{staticClass:"panel-promote__lack-poster"},[t._v(" Brak plakatu ")])])]),e("div",{staticClass:"col-8 col-lg-4"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"panel-promote__box panel-promote__box--first"},[e("p",{staticClass:"panel-promote__box-label none-mobile"},[t._v(" Nazwa zawodów ")]),e("p",{staticClass:"panel-promote__box-value panel-promote__box-value--link",on:{click:function(e){return t.$router.push({path:`https://dostartu.pl/${t.competition.name}-v${t.competition.id}`,tab:!0})}}},[t._v(" "+t._s(t.competition.name)+" ")])])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"panel-promote__box panel-promote__box--start"},[e("p",{staticClass:"panel-promote__box-label"},[t._v(" Start zawodów ")]),e("p",{staticClass:"panel-promote__box-value"},[t._v(" "+t._s(t._f("asDate")(t.competition.startedTime))+" ")])])])])]),e("div",{staticClass:"col-12 col-lg-4 panel-promote__actions"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-6"},[e("div",{staticClass:"panel-promote__box"},[e("p",{staticClass:"panel-promote__box-label panel-promote__box-label--date"},[t._v(" W promowanych od ")]),e("base-input-date",{staticClass:"panel-promote__date",attrs:{label:"DD.MM.RRRR"},model:{value:t.dateStart,callback:function(e){t.dateStart=e},expression:"dateStart"}})],1)]),e("div",{staticClass:"col-12 col-lg-6"},[e("div",{staticClass:"panel-promote__box"},[e("p",{staticClass:"panel-promote__box-label panel-promote__box-label--date"},[t._v(" W promowanych do ")]),e("base-input-date",{staticClass:"panel-promote__date",attrs:{label:"DD.MM.RRRR"},model:{value:t.dateEnd,callback:function(e){t.dateEnd=e},expression:"dateEnd"}})],1)])]),e("div",{staticClass:"row panel-promote__buttons"},[e("div",{staticClass:"col-12 col-lg-6"},[e("base-button",{staticClass:"panel-promote__btn",attrs:{btn2:""},on:{click:function(e){return t.$emit("close-promote")}}},[t._v(" Anuluj ")])],1),e("div",{staticClass:"col-12 col-lg-6"},[e("base-button",{staticClass:"panel-promote__btn panel-promote__btn--promote",attrs:{disabled:!t.isPoster,btn1:""},on:{click:function(e){return t.promote()}}},[t._v(" Promuj ")])],1)])])])])},Dm=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-lg-2"},[e("h1",{staticClass:"panel-promote__title"},[t._v(" Promuj zawody na dostartu.pl ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])}],$m={props:{competition:{type:Object,required:!0}},data(){return{dateStart:null,dateEnd:null,isFetching:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["layouts"])),{},{isPoster(){return this.layout&&this.layout.posterLink},layout(){return this.layouts[this.competition.id]}}),watch:{competition:{immediate:!0,deep:!0,async handler(){this.isFetching=!0,await this.READ_COMPETITION_LAYOUT(this.competition.id),this.isFetching=!1}}},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["ld"],g["Sb"]])),{},{async promote(){await this.UPDATE_COMPETITION(Object(v["a"])(Object(v["a"])({},this.competition),{},{promotedSince:new Date(this.dateStart),promotedTo:new Date(this.dateEnd)})),this.$emit("close-promote")}})},Um=$m,Bm=(a("92fb"),Object(U["a"])(Um,Mm,Dm,!1,null,"849a75aa",null)),Fm=Bm.exports,qm={components:{PanelAddPerson:xm,PanelPromoteCompetition:Fm,PanelList:tm}
1,data(){return{operatorsIds:[],competitionsIds:[],initialOperatorsIds:[],searchOperators:"",searchCompetitions:"",isCompetitionList:!0,showAddOperator:!1,showPromotePanel:!1,ready:!1,showPopupWithDelete:!1,operatorIdToDelete:null,competitionIdToDelete:null,competitionIdToPromote:null,page:1,isLoadingNextCompetitions:!1,isLoadingPrevCompetitions:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["operators","competitions","competitionPlayerCounts"])),{},{items(){const t=[];if(this.isCompetitionList)for(const e of this.competitionsIds){const a=this.competitions[e],n={id:e,startedTime:this.$options.filters.asTime(a.startedTime),name:a.name,registered:this.competitionPlayerCounts[e].playersCount,paid:this.competitionPlayerCounts[e].playersPayCount,location:a.location,status:this.$options.filters.asStatus(a.status),statusId:a.status,isShow:a.mainPromo,globalShop:a.globalShop,isGamification:a.gamification,frontFormType:a.frontFormType,organizerId:a.organizer};t.push(n)}else for(const e of this.operatorsIds){const a=this.operators[e];if(a){const n={id:e,name:a.name,phone:a.phone,email:a.email,addedTime:a.addedTime?f()(a.addedTime).format("DD.MM.YYYY"):""};t.push(n)}}return t},isPreviousPage(){return this.page>1},isNextPage(){return this.competitionsIds.length>0&&!this.searchCompetitions}}),watch:{async searchCompetitions(){if(this.searchCompetitions.length>=3){const{competitions:t}=await this.READ_COMPETITIONS({page:1,panel:1,itemsPerPage:10,name:this.searchCompetitions});this.competitionsIds=t}else if(!this.searchCompetitions){this.page=1;const{competitions:t}=await this.READ_COMPETITIONS({page:1,panel:1,itemsPerPage:30});this.competitionsIds=t}},async searchOperators(){if(this.searchOperators.length){const t=this.searchOperators,e=[];for(const a of this.initialOperatorsIds){const n=this.operators[a];this.matchSome([n.name,n.email],t)&&e.push(a)}this.operatorsIds=e}else this.operatorsIds=this.initialOperatorsIds}},async created(){const{competitionsIds:t,operatorsIds:e}=await this.BOOTSTRAP_ADMIN();this.competitionsIds=t,this.operatorsIds=e,this.initialOperatorsIds=e,this.ready=!0},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["x"]])),Object(R["b"])([g["m"],g["eb"],g["Ib"],g["Xc"],g["ld"],g["C"],g["ab"],g["bb"]])),{},{async addOperator(t){this.operatorsIds.push(t),this.showAddOperator=!1},async nextPage(){this.page+=1,this.isLoadingNextCompetitions=!0;const{competitions:t}=await this.READ_COMPETITIONS({page:this.page,itemsPerPage:30,panel:1});this.competitionsIds=t,this.isLoadingNextCompetitions=!1},async prevPage(){this.page-=1,this.isLoadingPrevCompetitions=!0;const{competitions:t}=await this.READ_COMPETITIONS({page:this.page,itemsPerPage:30,panel:1});this.competitionsIds=t,this.isLoadingPrevCompetitions=!1},matchSome(t,e){const a=new RegExp(e,"i");for(const n of t)if(n.match(a))return!0;return!1},onRowClick(t){this.isCompetitionList?this.$router.push({name:"panel-competition-dashboard",params:{name:t.name,id:t.id},alias:!0}):this.$router.push({name:"panel-operator",params:{operatorId:t.id},alias:!0})},async sendAccessToOperator(t){try{await this.SEND_OPERATOR_ACCESS(t),this.SET_NOTIFICATION("alerts_positive_22")}catch(e){this.SET_NOTIFICATION("alerts_negative_4")}},onClosePopup(){this.operatorIdToDelete=null,this.competitionIdToDelete=null,this.showPopupWithDelete=!1},async deleteCompetition(t){try{const e=this.competitionsIds.findIndex(e=>e===t);this.competitionsIds.splice(e,1),await this.DELETE_COMPETITION(t),this.SET_NOTIFICATION("alerts_positive_56")}catch(e){this.SET_NOTIFICATION("alerts_negative_4"),this.competitionsIds.push(t)}},async onDelete(){this.isCompetitionList?(await this.deleteCompetition(this.competitionIdToDelete),this.competitionIdToDelete=null):(await this.deleteOperator(this.operatorIdToDelete),this.operatorIdToDelete=null)},async onSwitchCompetition(t){const e=Object(v["a"])(Object(v["a"])({},this.competitions[t]),{},{mainPromo:!this.competitions[t].mainPromo});await this.UPDATE_COMPETITION(e)},async onSwitchFrontFormType(t){const e=Object(v["a"])(Object(v["a"])({},this.competitions[t.id]),{},{frontFormType:"old"===t.frontFormType?"new":"old"});await this.UPDATE_COMPETITION(e)}
1,async globalShopCompetition(t){const e=Object(v["a"])(Object(v["a"])({},this.competitions[t]),{},{globalShop:!this.competitions[t].globalShop});await this.UPDATE_COMPETITION(e)},promoteCompetition(t){this.competitionIdToPromote=t,this.showPromotePanel=!0},async setGamification(t){try{this.competitions[t].gamification?await this.DELETE_GAMIFICATION(t):await this.CREATE_GAMIFICATION(t),this.SET_NOTIFICATION("alerts_positive_46")}catch(e){this.SET_NOTIFICATION("alerts_negative_4")}}})},Hm=qm,Gm=(a("372e"),Object(U["a"])(Hm,Rm,Lm,!1,null,"ed03e980",null)),Wm=Gm.exports,Vm=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container pab1"},[e("div",{staticClass:"row admin-header"},[t._m(0),e("div",{staticClass:"col-12 col-lg-5"},[e("base-input-text",{staticClass:"admin-header__search",attrs:{icon:"fas fa-search",label:"Szukaj..."},model:{value:t.searchUsers,callback:function(e){t.searchUsers=e},expression:"searchUsers"}})],1),e("div",{staticClass:"col-12 col-lg-7"},[e("base-button-group",{staticClass:"admin-header__views",attrs:{horizontal:""}},[e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"all"===t.listParent},on:{click:function(e){return t.changeUsersList("all")}}},[t._v(" Wszyscy ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"user"===t.listParent},on:{click:function(e){return t.changeUsersList("user")}}},[t._v(" Uczestnicy ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"organizer"===t.listParent},on:{click:function(e){return t.changeUsersList("organizer")}}},[t._v(" Organizatorzy ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"operator"===t.listParent},on:{click:function(e){return t.changeUsersList("operator")}}},[t._v(" Operatorzy ")])],1)],1)]),t.ready?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("base-table",{staticClass:"list",attrs:{headers:t.tableHeaders,items:t.items},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"list__row"},t._l(t.tableHeaders,(function(n,i){return e("th",{key:i,staticClass:"list__row-header",class:{"list__row-data--profil":"profil"===n.value},on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a){return e("tr",{key:a.id,staticClass:"list__row list__row--pointer list__row--hover",on:{click:function(e){return t.modal(a)}}},t._l(t.tableHeaders,(function(n,i){return e("td",{key:i,staticClass:"list__row-data",class:{"list__row-data--name":"fname"===n.value,"list__row-data--profil":"profil"===n.value,"list__row-data--loading":t.loading}},["profil"===n.value?t._l(a[n.value],(function(n,i){return e("span",{key:a["id"]+"_"+i,staticClass:"profil-badge"},[t._v(t._s(t.profilName(n)))])})):[t._v(t._s(a[n.value]))]],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[a.length?e("div",[t._v(" Brak wyników wyszukiwania "),e("b",[t._v(t._s(a))])]):t._e()]}}])})],1)]):e("div",{staticClass:"mat32"},[t._m(1)]),t.ready?e("div",{staticClass:"row admin__pages"},[e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isPreviousPage},on:{click:function(e){t.isPreviousPage&&t.prevPage()}}},[t.isLoadingPrev?e("div",{staticClass:"admin__pages-loading"},[t._m(2)]):t._e(),t._v(" Poprzednie ")]),e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isNextPage},on:{click:function(e){t.isNextPage&&t.nextPage()}}},[t.isLoadingNext?e("div",{staticClass:"admin__pages-loading"},[t._m(3)]):t._e(),t._v(" Następne ")])]):t._e(),e("modal",{ref:"userModal",staticClass:"modal-hd modal-background",on:{"modal-close":t.defaultModalData},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" Edycja konta użytkownika ")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"userFormWrap"},[e("div",{staticClass:"row unset mab24"},[e("div",{staticClass:"col-12"},[e("h3",[t._v("Dane konta")])]),e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Imię")]),e("base-input-text",{attrs:{error:t.errors.firstname}
1,on:{"update:error":function(e){return t.$set(t.errors,"firstname",e)}},model:{value:t.selectedUser.firstname,callback:function(e){t.$set(t.selectedUser,"firstname",e)},expression:"selectedUser.firstname"}})],1),e("div",{staticClass:"col-12 col-lg-2"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwisko")]),e("base-input-text",{attrs:{error:t.errors.lastname},on:{"update:error":function(e){return t.$set(t.errors,"lastname",e)}},model:{value:t.selectedUser.lastname,callback:function(e){t.$set(t.selectedUser,"lastname",e)},expression:"selectedUser.lastname"}})],1)]),e("div",{staticClass:"col-12 col-lg-2"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("E-mail")]),e("base-input-text",{attrs:{error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.selectedUser.email,callback:function(e){t.$set(t.selectedUser,"email",e)},expression:"selectedUser.email"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Reset hasła")]),t.sendingThePassword?e("p",{staticStyle:{"line-height":"40px"}},[t._v("Wysyłam hasło")]):t.passwordSent?e("p",{staticStyle:{"line-height":"40px"}},[t._v("Link wysłany")]):e("div",{staticClass:"btn btn-outline",on:{click:t.sendPassword}},[t._v("Wyślij link do resetu hasła")])])]),e("div",{staticClass:"col-12 col-lg-2"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Link do hasła")]),e("div",{staticClass:"btn btn-outline",class:{"btn--disabled":t.generatingPasswordLink},on:{click:function(e){!t.generatingPasswordLink&&t.sendLinkPassword()}}},[t._v(" "+t._s(t.generatingPasswordLink?"Generuję...":"Generuj")+" ")])])]),t.linkPassword?e("div",{staticClass:"col-12 mat16"},[e("p",{staticClass:"form-input__label"},[t._v("Wygenerowany link")]),e("div",{staticClass:"password-link-row"},[e("base-input-text",{model:{value:t.linkPassword,callback:function(e){t.linkPassword=e},expression:"linkPassword"}}),e("div",{staticClass:"btn btn-outline",on:{click:t.copyPasswordLink}},[t._v(" "+t._s(t.linkCopied?"Skopiowano":"Kopiuj")+" ")])],1)]):t._e()]),e("hr"),e("div",{staticClass:"row unset mab24"},[e("div",{staticClass:"col-12 mab24"},[e("base-input-switch",{attrs:{label:"",icons:"",checked:t.selectedUser.userRole},on:{input:t.changeUserRole},model:{value:t.selectedUser.userRole,callback:function(e){t.$set(t.selectedUser,"userRole",e)},expression:"selectedUser.userRole"}},[e("h3",[t._v("Profil uczestnika")])])],1),t.selectedUser.userRole?e("div",{staticClass:"row unset mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Data urodzenia")]),e("base-input-date",{staticClass:"no-shadow",attrs:{initialView:"year",error:t.errors.birthTime},on:{"update:error":function(e){return t.$set(t.errors,"birthTime",e)}},model:{value:t.selectedUser.birthTime,callback:function(e){t.$set(t.selectedUser,"birthTime",e)},expression:"selectedUser.birthTime"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Płeć")]),e("base-input-radio",{staticClass:"radio-field__row",attrs:{options:[{value:"M",title:"man"},{value:"K",title:"woman"}],error:t.errors.gender},on:{"update:error":function(e){return t.$set(t.errors,"gender",e)}},model:{value:t.selectedUser.gender,callback:function(e){t.$set(t.selectedUser,"gender",e)},expression:"selectedUser.gender"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Narodowość")]),e("base-input-select",{attrs:{options:t.countries,clearable:!1,label:"Narodowość",reduce:t=>t.id,error:t.errors.nationality},on:{"update:error":function(e){return t.$set(t.errors,"nationality",e)}},model:{value:t.selectedUser.nationality,callback:function(e){t.$set(t.selectedUser,"nationality",e)},expression:"selectedUser.nationality"}})],1)])]):t._e(),t.selectedUser.userRole?e("div",{staticClass:"row unset",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Telefon")]),e("base-input-text",{attrs:{error:t.errors.phone}
1,on:{"update:error":function(e){return t.$set(t.errors,"phone",e)}},model:{value:t.selectedUser.phone,callback:function(e){t.$set(t.selectedUser,"phone",e)},expression:"selectedUser.phone"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Miejscowość")]),e("base-input-autocomplete",{staticClass:"user-form__autocomplete",attrs:{label:"Miejscowość",error:t.cityError,"clear-search-on-select":!0,action:"AUTOCOMPLETE_LOCATION"},on:{"update:error":function(e){t.cityError=e},select:function(e){return t.selectCity(e)}},model:{value:t.searchValueCity,callback:function(e){t.searchValueCity=e},expression:"searchValueCity"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Klub")]),e("base-input-text",{model:{value:t.selectedUser.clubname,callback:function(e){t.$set(t.selectedUser,"clubname",e)},expression:"selectedUser.clubname"}})],1)])]):t._e()]),e("hr"),e("div",{staticClass:"row mab24"},[e("div",{staticClass:"col-12 mab24"},[e("base-input-switch",{attrs:{label:"",icons:"",checked:t.selectedUser.orgRole,disabled:t.selectedUser.opRole},on:{input:t.changeOrgRole},model:{value:t.selectedUser.orgRole,callback:function(e){t.$set(t.selectedUser,"orgRole",e)},expression:"selectedUser.orgRole"}},[e("h3",[t._v("Profil organizatora")])])],1),t.selectedUser.orgRole?e("div",{staticClass:"row unset mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 mab24"},[e("p",{staticClass:"form-input__label"},[t._v("Osobowość prawna organizatora")]),e("div",{staticClass:"radio-field radio-field__row",class:{"input-error-border":t.organizerErrors.legalType}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedUser.organizerObj.legalType,expression:"selectedUser.organizerObj.legalType"}],staticClass:"d-none",attrs:{id:"private",type:"radio",value:"private"},domProps:{checked:t._q(t.selectedUser.organizerObj.legalType,"private")},on:{change:[function(e){return t.$set(t.selectedUser.organizerObj,"legalType","private")},function(e){t.organizerErrors.legalType=null}]}}),e("label",{staticClass:"radio-field__label",attrs:{for:"private"}},[t._v("Osoba prywatna")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedUser.organizerObj.legalType,expression:"selectedUser.organizerObj.legalType"}],staticClass:"d-none",attrs:{id:"company",type:"radio",value:"company"},domProps:{checked:t._q(t.selectedUser.organizerObj.legalType,"company")},on:{change:[function(e){return t.$set(t.selectedUser.organizerObj,"legalType","company")},function(e){t.organizerErrors.legalType=null}]}}),e("label",{staticClass:"radio-field__label",attrs:{for:"company"}},[t._v("Firma / Fundacja / Stowarzyszenie")])]),t.organizerErrors.legalType?e("span",{staticClass:"input-error-alt"},[t._v(t._s(t.say[t.organizerErrors.legalType]))]):t._e()]),e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("NIP")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvNip},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvNip",e)}},model:{value:t.selectedUser.organizerObj.fvNip,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvNip",e)},expression:"selectedUser.organizerObj.fvNip"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa firmy")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvFirmname},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvFirmname",e)}},model:{value:t.selectedUser.organizerObj.fvFirmname,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvFirmname",e)},expression:"selectedUser.organizerObj.fvFirmname"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Miejscowość")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvCity},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvCity",e)}}
1,model:{value:t.selectedUser.organizerObj.fvCity,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvCity",e)},expression:"selectedUser.organizerObj.fvCity"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Prowizja od opłaty startowej")]),e("base-input-text",{attrs:{error:t.organizerErrors.commision},on:{"update:error":function(e){return t.$set(t.organizerErrors,"commision",e)}},model:{value:t.selectedUser.organizerObj.commision,callback:function(e){t.$set(t.selectedUser.organizerObj,"commision",e)},expression:"selectedUser.organizerObj.commision"}})],1)])]):t._e(),t.selectedUser.orgRole?e("div",{staticClass:"row unset mab32",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Kod pocztowy")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvPostcode},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvPostcode",e)}},model:{value:t.selectedUser.organizerObj.fvPostcode,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvPostcode",e)},expression:"selectedUser.organizerObj.fvPostcode"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Ulica")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvAddress},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvAddress",e)}},model:{value:t.selectedUser.organizerObj.fvAddress,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvAddress",e)},expression:"selectedUser.organizerObj.fvAddress"}})],1)]),e("div",{staticClass:"col-12 col-lg-min"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nr domu")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvHouseNumber},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvHouseNumber",e)}},model:{value:t.selectedUser.organizerObj.fvHouseNumber,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvHouseNumber",e)},expression:"selectedUser.organizerObj.fvHouseNumber"}})],1)]),e("div",{staticClass:"col-12 col-lg-min"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nr lokalu")]),e("base-input-text",{attrs:{error:t.organizerErrors.fvFlatNumber},on:{"update:error":function(e){return t.$set(t.organizerErrors,"fvFlatNumber",e)}},model:{value:t.selectedUser.organizerObj.fvFlatNumber,callback:function(e){t.$set(t.selectedUser.organizerObj,"fvFlatNumber",e)},expression:"selectedUser.organizerObj.fvFlatNumber"}})],1)])]):t._e(),t.selectedUser.orgRole?e("div",{staticClass:"row unset",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 mab16"},[e("b",[t._v("Dane organizatora widoczne dla uczestników")])]),e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Numer telefonu")]),e("base-input-text",{attrs:{error:t.organizerErrors.phone},on:{"update:error":function(e){return t.$set(t.organizerErrors,"phone",e)}},model:{value:t.selectedUser.organizerObj.phone,callback:function(e){t.$set(t.selectedUser.organizerObj,"phone",e)},expression:"selectedUser.organizerObj.phone"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Adres e-mail")]),e("base-input-text",{attrs:{error:t.organizerErrors.email},on:{"update:error":function(e){return t.$set(t.organizerErrors,"email",e)}},model:{value:t.selectedUser.organizerObj.email,callback:function(e){t.$set(t.selectedUser.organizerObj,"email",e)},expression:"selectedUser.organizerObj.email"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa organizatora")]),e("base-input-text",{attrs:{error:t.organizerErrors.name},on:{"update:error":function(e){return t.$set(t.organizerErrors,"name",e)}},model:{value:t.selectedUser.organizerObj.name,callback:function(e){t.$set(t.selectedUser.organizerObj,"name",e)},expression:"selectedUser.organizerObj.name"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Przypisz do operatora")]),e("base-input-select",{attrs:{options:t.operators,label:"Operator","label-select":"name",clearable:!1,searchable:!0,reduce:t=>t.id},model:{value:t.selectedUser.organizerObj.operator,callback:function(e){t.$set(t.selectedUser.organizerObj,"operator",e)}
1,expression:"selectedUser.organizerObj.operator"}})],1)])]):t._e()]),e("hr"),e("div",{staticClass:"row mab24"},[e("div",{staticClass:"col-12 mab24"},[e("base-input-switch",{attrs:{label:"",icons:"",checked:t.selectedUser.opRole,disabled:t.selectedUser.orgRole},on:{input:t.changeOpRole},model:{value:t.selectedUser.opRole,callback:function(e){t.$set(t.selectedUser,"opRole",e)},expression:"selectedUser.opRole"}},[e("h3",[t._v("Profil operatora")])])],1),t.selectedUser.opRole?e("div",{staticClass:"row unset mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("NIP")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvNip},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvNip",e)}},model:{value:t.selectedUser.operatorObj.fvNip,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvNip",e)},expression:"selectedUser.operatorObj.fvNip"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa firmy")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvFirmname},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvFirmname",e)}},model:{value:t.selectedUser.operatorObj.fvFirmname,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvFirmname",e)},expression:"selectedUser.operatorObj.fvFirmname"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Miejscowość")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvCity},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvCity",e)}},model:{value:t.selectedUser.operatorObj.fvCity,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvCity",e)},expression:"selectedUser.operatorObj.fvCity"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Prowizja od zawodów")]),e("base-input-text",{attrs:{error:t.operatorErrors.commision},on:{"update:error":function(e){return t.$set(t.operatorErrors,"commision",e)}},model:{value:t.selectedUser.operatorObj.commision,callback:function(e){t.$set(t.selectedUser.operatorObj,"commision",e)},expression:"selectedUser.operatorObj.commision"}})],1)])]):t._e(),t.selectedUser.opRole?e("div",{staticClass:"row unset mab32",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Kod pocztowy")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvPostcode},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvPostcode",e)}},model:{value:t.selectedUser.operatorObj.fvPostcode,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvPostcode",e)},expression:"selectedUser.operatorObj.fvPostcode"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Ulica")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvAddress},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvAddress",e)}},model:{value:t.selectedUser.operatorObj.fvAddress,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvAddress",e)},expression:"selectedUser.operatorObj.fvAddress"}})],1)]),e("div",{staticClass:"col-12 col-lg-min"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nr domu")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvHouseNumber},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvHouseNumber",e)}},model:{value:t.selectedUser.operatorObj.fvHouseNumber,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvHouseNumber",e)},expression:"selectedUser.operatorObj.fvHouseNumber"}})],1)]),e("div",{staticClass:"col-12 col-lg-min"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nr lokalu")]),e("base-input-text",{attrs:{error:t.operatorErrors.fvFlatNumber},on:{"update:error":function(e){return t.$set(t.operatorErrors,"fvFlatNumber",e)}},model:{value:t.selectedUser.operatorObj.fvFlatNumber,callback:function(e){t.$set(t.selectedUser.operatorObj,"fvFlatNumber",e)},expression:"selectedUser.operatorObj.fvFlatNumber"}})],1)])]):t._e(),t.selectedUser.opRole?e("div",{staticClass:"row unset",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 mab16"},[e("b",[t._v("Dane operatora widoczne dla uczestników")])]),e("div",{staticClass:"col-12 col-lg-2"},[e("p",{staticClass:"form-input__label"},[t._v("Numer telefonu")]),e("base-input-text",{attrs:{error:t.operatorErrors.phone}
1,on:{"update:error":function(e){return t.$set(t.operatorErrors,"phone",e)}},model:{value:t.selectedUser.operatorObj.phone,callback:function(e){t.$set(t.selectedUser.operatorObj,"phone",e)},expression:"selectedUser.operatorObj.phone"}})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Adres e-mail")]),e("base-input-text",{attrs:{error:t.operatorErrors.email},on:{"update:error":function(e){return t.$set(t.operatorErrors,"email",e)}},model:{value:t.selectedUser.operatorObj.email,callback:function(e){t.$set(t.selectedUser.operatorObj,"email",e)},expression:"selectedUser.operatorObj.email"}})],1)]),e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"mal32"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa operatora")]),e("base-input-text",{attrs:{error:t.operatorErrors.name},on:{"update:error":function(e){return t.$set(t.operatorErrors,"name",e)}},model:{value:t.selectedUser.operatorObj.name,callback:function(e){t.$set(t.selectedUser.operatorObj,"name",e)},expression:"selectedUser.operatorObj.name"}})],1)])]):t._e()])]),t.loading?e("div",{staticClass:"loader"},[e("div",{staticClass:"loader__backdrop"}),e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])]):t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("button",{staticClass:"btn",on:{click:function(e){return t.$refs.userModal.closeModal()}}},[t._v("Anuluj")]),e("button",{staticClass:"btn btn-primary",on:{click:t.saveForm}},[t._v("Zapisz")])]},proxy:!0}])})],1)},Km=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("h1",[t._v("Lista użytkowników")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])}],Zm={name:"PanelUsersList",components:{Modal:$t["a"]},data(){return{countries:p,searchUsers:"",listParent:"all",ready:!1,loading:!1,tableHeaders:[{text:"Imię i Nazwisko",value:"fname"},{text:"Adres e-mail",value:"email"},{text:"Miejscowość",value:"city"},{text:"Profil",value:"profil"}],page:1,itemsPerPage:50,data:[],isLoadingNext:!1,isLoadingPrev:!1,selectedUser:null,operators:[],errors:{},organizerErrors:{},operatorErrors:{},searchValueCity:null,loading:!1,passwordSent:!1,sendingThePassword:!1,generatingPasswordLink:!1,linkPassword:"",linkCopied:!1,accountSnapshot:null}},watch:{searchUsers(){this.debouncedSearchQuery()},"selectedUser.city":{immediate:!1,handler(t){t&&(this.searchValueCity=this.selectedUser.city)}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{apiParams(){return{page:this.page,itemsPerPage:this.itemsPerPage,name:this.searchUsers,role:this.listParent}},items(){const t=[];for(const s of this.data){var e,a,n,i;const o={id:s.id,firstname:s.firstname,lastname:s.lastname,fname:`${null!==(e=s.firstname)&&void 0!==e?e:""} ${null!==(a=s.lastname)&&void 0!==a?a:""}`,email:""+(null!==(n=s.email)&&void 0!==n?n:""),city:""+(null!==(i=s.city)&&void 0!==i?i:""),birthTime:s.birthTime,gender:s.gender,profil:s.roles,city:s.city,clubname:s.clubname,country:s.country,nationality:s.nationality,cityLat:s.cityLat,cityLng:s.cityLng,phone:s.phone,operator:s.operator,organizer:s.organizer,userRole:!1,orgRole:!1,opRole:!1,organizerObj:{},operatorObj:{}};t.push(o)}return t},isPreviousPage(){return this.page>1},isNextPage(){return!0},cityError:{get(){return this.errors.city||this.errors.cityLat||this.errors.cityLng},set(){this.errors.city="",this.errors.cityLat="",this.errors.cityLng=""}}}),async created(){this.debouncedSearchQuery=Object(Fe["debounce"])(this.searchQuery,500);const t=await this.READ_USERS_LIST(this.apiParams);this.data=t,this.ready=!0,this.getOperators()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Cc"],g["Pc"],g["Qc"]])),{},{async searchQuery(){this.ready=!1,this.page=1;const t=await this.READ_USERS_LIST(this.apiParams);this.data=t,this.ready=!0},profilName(t){let e="";return"ROLE_USER"===t?e="uczestnik":"ROLE_ORGANIZER"===t?e="organizator":"ROLE_OPERATOR"===t&&(e="operator"),e},async nextPage(){this.page+=1,this.isLoadingNext=!0;const t=await this.READ_USERS_LIST(this.apiParams);this.data=t,this.scrollToTop(),this.isLoadingNext=!1},async prevPage(){this.page-=1,this.isLoadingPrev=!0;const t=await this.READ_USERS_LIST(this.apiParams);this.data=t,this.scrollToTop(),this.isLoadingPrev=!1},async changeUsersList(t){this.ready=!1,this.listParent=t,this.page=1;const e=await this.READ_USERS_LIST(this.apiParams);this.data=e,this.ready=!0},scrollToTop(){window.scroll({top:0,left:0,behavior:"smooth"})},async defaultModalData(){this.selectedUser=null,this.errors={},this.organizerErrors={},this.operatorErrors={},this.accountSnapshot=null,this.linkPassword="",this.linkCopied=!1,this.passwordSent=!1,this.sendingThePassword=!1,this.generatingPasswordLink=!1},resetFormErrors(){this.errors={},this.organizerErrors={},this.operatorErrors={}}
1,asErrorMap(t){return!t||"object"!==typeof t||Array.isArray(t)?{}:t},async settleRequest(t){try{return await t,null}catch(e){return this.asErrorMap(e)}},captureAccountSnapshot(){this.accountSnapshot={firstname:this.selectedUser.firstname,lastname:this.selectedUser.lastname,email:this.selectedUser.email}},hasAccountDataChanged(){return!(!this.accountSnapshot||!this.selectedUser)&&(this.selectedUser.firstname!==this.accountSnapshot.firstname||this.selectedUser.lastname!==this.accountSnapshot.lastname||this.selectedUser.email!==this.accountSnapshot.email)},async modal(t){this.loading=!0,this.selectedUser=t,this.resetFormErrors(),this.linkPassword="",this.linkCopied=!1,this.passwordSent=!1,this.sendingThePassword=!1,this.generatingPasswordLink=!1,this.selectedUser.userRole=t.profil.includes("ROLE_USER"),this.selectedUser.orgRole=t.profil.includes("ROLE_ORGANIZER"),this.selectedUser.opRole=t.profil.includes("ROLE_OPERATOR"),this.selectedUser.orgRole&&await this.getOrganizer(this.selectedUser.organizer),this.selectedUser.opRole&&await this.getOperator(this.selectedUser.operator),this.captureAccountSnapshot(),this.loading=!1,this.$refs.userModal.openModal()},async getOrganizer(t){const e=await Jl()({method:"get",url:"/panel/organizers/"+t});this.selectedUser.organizerObj=e},async getOperator(t){const e=await Jl()({method:"get",url:"/panel/operators/"+t});this.selectedUser.operatorObj=e,this.selectedUser.firstname=e.firstname,this.selectedUser.lastname=e.lastname},async getOperators(){const t=await Jl()({method:"get",url:"/panel/operators"});this.operators=t},selectCity(t){t&&(this.$set(this.selectedUser,"cityLng",t.cityLng),this.$set(this.selectedUser,"cityLat",t.cityLat),this.$set(this.selectedUser,"city",t.city),setTimeout(()=>{this.searchValueCity=t.text},40))},changeUserRole(t){t?Jl()({method:"post",url:"/role/users/"+this.selectedUser.id}):Jl()({method:"delete",url:"/role/users/"+this.selectedUser.id})},changeOrgRole(t){t?Jl()({method:"post",url:"/panel/organizers",data:{operator:this.selectedUser.organizerObj.operator,email:this.selectedUser.email}}).then(t=>{this.selectedUser.organizer=t.id,this.selectedUser.organizerObj=t}):Jl()({method:"delete",url:`role/users/${this.selectedUser.id}/organizer`})},changeOpRole(t){t?Jl()({method:"post",url:"/panel/operators",data:{email:this.selectedUser.email}}).then(t=>{this.selectedUser.operator=t.id,this.selectedUser.operatorObj=t}):Jl()({method:"delete",url:`/role/users/${this.selectedUser.id}/operator`})},async saveForm(){this.loading=!0,this.resetFormErrors();const t=[];this.hasAccountDataChanged()&&t.push({bag:"errors",request:Jl()({method:"put",url:"/user/"+this.selectedUser.id,data:{firstname:this.selectedUser.firstname,lastname:this.selectedUser.lastname,email:this.selectedUser.email}})}),this.selectedUser.userRole&&t.push({bag:"errors",request:Jl()({method:"put",url:"/panel/users/"+this.selectedUser.id,data:{id:this.selectedUser.id,firstname:this.selectedUser.firstname,lastname:this.selectedUser.lastname,gender:this.selectedUser.gender,birthTime:this.selectedUser.birthTime,clubname:this.selectedUser.clubname,phone:this.selectedUser.phone,city:this.selectedUser.city,nationality:this.selectedUser.nationality,cityLat:this.selectedUser.cityLat,cityLng:this.selectedUser.cityLng}})}),this.selectedUser.orgRole&&t.push({bag:"organizerErrors",request:Jl()({method:"put",url:"/panel/organizers/"+this.selectedUser.organizer,data:{operator:this.selectedUser.organizerObj.operator,email:this.selectedUser.email,fvFirmname:this.selectedUser.organizerObj.fvFirmname,fvPostcode:this.selectedUser.organizerObj.fvPostcode,fvCity:this.selectedUser.organizerObj.fvCity,fvAddress:this.selectedUser.organizerObj.fvAddress,fvNip:this.selectedUser.organizerObj.fvNip,name:this.selectedUser.organizerObj.name,phone:this.selectedUser.organizerObj.phone,fvHouseNumber:this.selectedUser.organizerObj.fvHouseNumber,fvFlatNumber:this.selectedUser.organizerObj.fvFlatNumber,legalType:this.selectedUser.organizerObj.legalType,commision:this.selectedUser.organizerObj.commision}})}),this.selectedUser.opRole&&t.push({bag:"operatorErrors",request:Jl()({method:"put",url:"/panel/operators/"+this.selectedUser.operator,data:{email:this.selectedUser.email,fvFirmname:this.selectedUser.operatorObj.fvFirmname,fvPostcode:this.selectedUser.operatorObj.fvPostcode,fvCity:this.selectedUser.operatorObj.fvCity,fvAddress:this.selectedUser.operatorObj.fvAddress,fvNip:this.selectedUser.operatorObj.fvNip,name:this.selectedUser.operatorObj.name,phone:this.selectedUser.operatorObj.phone,fvHouseNumber:this.selectedUser.operatorObj.fvHouseNumber,fvFlatNumber:this.selectedUser.operatorObj.fvFlatNumber,commision:this.selectedUser.operatorObj.commision,firstname:this.selectedUser.firstname,lastname:this.selectedUser.lastname}})});const e=await Promise.all(t.map(async t=>({bag:t.bag,errors:await this.settleRequest(t.request)}))),a={errors:{},organizerErrors:{},operatorErrors:{}}
1;e.forEach(t=>{t.errors&&Object.keys(t.errors).length&&(a[t.bag]=Object(v["a"])(Object(v["a"])({},a[t.bag]),t.errors))}),this.errors=a.errors,this.organizerErrors=a.organizerErrors,this.operatorErrors=a.operatorErrors;const n=Object.keys(a.errors).length||Object.keys(a.organizerErrors).length||Object.keys(a.operatorErrors).length;if(!n){this.captureAccountSnapshot();const t=await this.READ_USERS_LIST(this.apiParams);this.data=t,this.ready=!0}this.loading=!1},async sendPassword(){this.sendingThePassword=!0;try{await this.RESET_PASSWORD(this.selectedUser.email),this.sendingThePassword=!1,this.passwordSent=!0}catch(t){this.errors=t}},async sendLinkPassword(){this.generatingPasswordLink=!0,this.linkCopied=!1;try{const t=await this.RESET_PASSWORD_LINK(this.selectedUser.email);this.linkPassword="string"===typeof t?t:t&&(t.link||t.url)||""}catch(t){this.errors=t}this.generatingPasswordLink=!1},copyPasswordLink(){if(!this.linkPassword)return;const t=this.linkPassword,e=()=>{this.linkCopied=!0};navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(t).then(e).catch(()=>this.fallbackCopy(t,e)):this.fallbackCopy(t,e)},fallbackCopy(t,e){const a=document.createElement("textarea");a.value=t,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),e&&e()}})},Ym=Zm,Qm=(a("d6ae"),a("903b"),Object(U["a"])(Ym,Vm,Km,!1,null,"10ac3b04",null)),Xm=Qm.exports,Jm=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container change-box"},[e("div",{staticClass:"row"},[e("h1",[t._v(t._s(t.say.edit_email_password))])]),e("div",{staticClass:"row change-box__form"},[e("div",{staticClass:"col-12"},[e("user-edit-credentials")],1)]),t.showTwoFactor?[e("div",{staticClass:"row"},[e("h1",[t._v(t._s(t.say.two_factor_auth||"Uwierzytelnianie dwuskładnikowe (2FA)"))])]),e("div",{staticClass:"row change-box__form"},[e("div",{staticClass:"col-12"},[e("user-form-two-factor")],1)])]:t._e()],2)},tf=[],ef=function(){var t=this,e=t._self._c;return e("div",[e("user-form-credentials",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}},model:{value:t.credentials,callback:function(e){t.credentials=e},expression:"credentials"}}),e("base-form-validation",{attrs:{validation:t.errors}}),e("user-form-actions",{on:{save:function(e){return t.save()}}})],1)},af=[],nf=function(){var t=this,e=t._self._c;return e("base-form-section",[e("base-form-input",{scopedSlots:t._u([{key:"hint",fn:function(){return[t._v(" "+t._s(t.say.you_will_use_this_email_to_login)+" ")]},proxy:!0}])},[e("base-input-text",{attrs:{label:t.say.email,error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),e("base-form-input",{scopedSlots:t._u([{key:"hint",fn:function(){return[t._v(" "+t._s(t.say.password_should_contain)+" ")]},proxy:!0}])},[e("base-input-password",{attrs:{error:t.errors.plainPassword,label:t.say.password},on:{"update:error":function(e){return t.$set(t.errors,"plainPassword",e)}},model:{value:t.form.plainPassword,callback:function(e){t.$set(t.form,"plainPassword",e)},expression:"form.plainPassword"}})],1)],1)},sf=[],of={mixins:[ud],computed:Object(v["a"])({},Object(R["c"])(["say"]))},rf=of,lf=Object(U["a"])(rf,nf,sf,!1,null,null,null),cf=lf.exports,df={components:{UserFormCredentials:cf,UserFormActions:Cd},data(){return{credentials:{},errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["user"])),created(){this.credentials=Object(v["a"])(Object(v["a"])({},Object(Ni["c"])(this.user,["id","email"])),{},{plainPassword:""})},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["vd"]])),Object(R["d"])([ce["x"]])),{},{async save(){this.errors={};try{await this.UPDATE_USER(this.credentials),this.SET_NOTIFICATION("alerts_positive_5")}catch(t){this.errors=t}}})},uf=df,pf=Object(U["a"])(uf,ef,af,!1,null,null,null),mf=pf.exports,ff=function(){var t=this,e=t._self._c;return e("base-form-section",{staticClass:"relative"},[e("p",{staticClass:"mat16"},[t._v(" "+t._s(t.say.two_factor_auth_description||"Zabezpiecz konto administratora kodem z aplikacji Google Authenticator.")+" ")]),e("p",{staticClass:"mat16"},[t.enabled?e("b",[t._v(" "+t._s(t.say.two_factor_enabled||"2FA jest włączone")+" ")]):e("b",[t._v(" "+t._s(t.say.two_factor_disabled||"2FA jest wyłączone")+" ")])]),t.enabled?e("base-notification-local",{staticClass:"two-factor-warning",attrs:{negative:""},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.say.two_factor_logout_warning_title||"Uwaga — ryzyko utraty dostępu")+" ")]},proxy:!0},{key:"content",fn:function(){return[t._v(" "+t._s(t.say.two_factor_logout_warning||"Jeśli wylogujesz się bez wcześniejszego połączenia konta z Google Authenticator (skan QR lub wpisanie sekretu), stracisz dostęp do konta administratora.")+" ")]},proxy:!0}],null,!1,1028605190)}):t._e(),t.actionError?e("p",{staticClass:"error error--show mat16"},[t._v(" "+t._s(t.actionError)+" ")]):t._e(),t.enabled&&(t.secret||t.qrObjectUrl)?e("div",{staticClass:"two-factor-setup mat24"},[e("p",{staticClass:"mat16"},[t._v(" "+t._s(t.say.two_factor_setup_warning||"Zapisz sekret lub zeskanuj QR teraz. Przy następnym logowaniu będzie wymagany kod z aplikacji.")+" ")]),t.secret?e("p",{staticClass:"mat16"},[e("strong",[t._v(t._s(t.say.two_factor_secret||"Sekret (wpis ręczny)")+":")]),e("code",{staticClass:"two-factor-setup__secret"},[t._v(t._s(t.secret))])]):t._e(),t.qrObjectUrl?e("div",{staticClass:"mat16"},[e("p",[t._v(t._s(t.say.two_factor_scan_qr||"Zeskanuj kod QR w aplikacji Google Authenticator"))]),e("img",{staticClass:"two-factor-setup__qr",attrs:{src:t.qrObjectUrl,alt:"QR code 2FA"}})]):t._e()]):t._e(),e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-12 col-md-4"},[t.enabled?e("base-button",{attrs:{btn6:"",disabled:t.loading},on:{click:function(e){return t.disable2FA()}}},[t._v(" "+t._s(t.say.disable_2fa||"Wyłącz 2FA")+" ")]):e("base-button",{attrs:{btn1:"",disabled:t.loading},on:{click:function(e){return t.enable2FA()}}},[t._v(" "+t._s(t.say.enable_2fa||"Włącz 2FA")+" ")])],1)])],1)},hf=[],bf={data(){return{enabled:!1,secret:null,qrObjectUrl:null,loading:!1,actionError:null}},computed:Object(v["a"])({},Object(R["c"])(["say"])),async created(){await this.loadStatus()},beforeDestroy(){this.revokeQrUrl()},methods:{revokeQrUrl(){this.qrObjectUrl&&(window.URL.revokeObjectURL(this.qrObjectUrl),this.qrObjectUrl=null)},clearSetup(){this.secret=null,this.revokeQrUrl()},async loadStatus(){this.loading=!0,this.actionError=null;try{const t=await Pt["a"].get("/admin/2fa/status");this.enabled=Boolean(t.enabled),this.enabled?await this.verifyAndShowSetup():this.clearSetup()}catch(t){this.actionError=(null===t||void 0===t?void 0:t.message)||(null===t||void 0===t?void 0:t.error)||"Nie udało się pobrać statusu 2FA"}finally{this.loading=!1}},async verifyAndShowSetup(){try{const t=await Pt["a"].post("/admin/2fa/verify");this.secret=t.secret||null,await this.loadQrCode()}catch(t){this.actionError=(null===t||void 0===t?void 0:t.message)||(null===t||void 0===t?void 0:t.error)||null}},async loadQrCode(){this.revokeQrUrl();try{const t=await Pt["a"].get("/admin/2fa/qrcode",{responseType:"blob"}),e=t instanceof Blob?t:new Blob([t],{type:"image/png"});this.qrObjectUrl=window.URL.createObjectURL(e)}catch(t){}},async enable2FA(){this.loading=!0,this.actionError=null;try{const t=await Pt["a"].post("/admin/2fa/enable");this.enabled=!0,this.secret=t.secret||null,await this.loadQrCode()}catch(t){this.actionError=(null===t||void 0===t?void 0:t.message)||(null===t||void 0===t?void 0:t.error)||"Nie udało się włączyć 2FA"}finally{this.loading=!1}},async disable2FA(){this.loading=!0,this.actionError=null;try{await Pt["a"].post("/admin/2fa/disable"),this.enabled=!1,this.clearSetup()}catch(t){this.actionError=(null===t||void 0===t?void 0:t.message)||(null===t||void 0===t?void 0:t.error)||"Nie udało się wyłączyć 2FA"}finally{this.loading=!1}}}},_f=bf,vf=(a("d9a7"),Object(U["a"])(_f,ff,hf,!1,null,"f1133d72",null)),gf=vf.exports,yf={components:{UserEditCredentials:mf,UserFormTwoFactor:gf},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","user"])),{},{isAdmin(){return this.user&&this.user.roles.includes("ROLE_ADMIN")},isOperator(){return this.user.operator},isOrganizer(){return this.user.organizer},showTwoFactor(){return this.isAdmin||this.isOperator||this.isOrganizer}})},Cf=yf,wf=(a("caf9"),Object(U["a"])(Cf,Jm,tf,!1,null,"00b83596",null)),kf=wf.exports,xf=function(){var t=this,e=t._self._c;return e("div",[e("minisite-header"),e("main",{staticClass:"container transfer-start"},[e("div",{staticClass:"row transfer-start__page-title"},[e("div",{staticClass:"col-12"},[e("h3",[t._v(" "+t._s(t.say.transfer_start_page_title||"Przekaż swój start innej osobie")+" ")])])]),t.ready?t.errorMessage&&!t.canTransfer?[e("div",{staticClass:"row transfer-start__section"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"transfer-start__section-header"},[e("h3",[t._v(" "+t._s(t.say.transfer_start_error_title||"Przekazanie startu")+" ")])])]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__card bg--gray"},[e("p",{staticClass:"transfer-start__error"},[t._v(" "+t._s(t.errorMessage)+" ")])])])]),e("div",{staticClass:"row transfer-start__section transfer-start__actions"},[e("div",{staticClass:"col-12 col-lg-4 d-none d-lg-block"}),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__buttons"},[e("base-button",{attrs:{btn2:"",short:""},on:{click:function(e){return t.goBack()}}},[t._v(" "+t._s(t.say.transfer_start_btn_back||"Cofnij")+" ")]),e("base-button",{attrs:{btn1:"",short:""},on:{click:function(e){return t.goToCompetitions()}}},[t._v(" "+t._s(t.say.transfer_start_btn_back_to_competitions||"Wróć do zawodów")+" ")])],1)])])]:t.rebateCode?[e("div",{staticClass:"row transfer-start__section"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"transfer-start__section-header"},[e("h3",[t._v(" "+t._s(t.say.transfer_start_rules_title||"Zasady przekazywania startu")+" ")])])]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__card bg--gray"},[e("h3",{staticClass:"transfer-start__content-title"},[t._v(" "+t._s(t.say.transfer_start_cannot_start_title||"Nie możesz wystartować?")+" ")]),e("p",[t._v(" "+t._s(t.say.transfer_start_success_intro||"Mail z linkiem do rejestracji został wysłany. Poniżej znajdziesz kod przekazania startu — udostępnij go zaproszonej osobie.")+" ")]),e("div",{staticClass:"transfer-start__code mat24"},[e("p",{staticClass:"transfer-start__code-label"},[t._v(" "+t._s(t.say.transfer_start_code_label||"Kod przekazania startu")+" ")]),e("p",{staticClass:"transfer-start__code-value"},[t._v(t._s(t.rebateCode))])]),e("p",{staticClass:"mat16"},[t._v(" "+t._s(t.say.transfer_start_success_followup||"Zaproszona osoba rejestruje się z linku, wpisuje k
1od w polu kodu rabatowego")+" "),t.isFree?[t._v(" "+t._s(t.say.transfer_start_success_outro_free||" i bezpłatnie finalizuje przejęcie startu.")+" ")]:[t._v(" "+t._s(t.say.transfer_start_success_outro_paid||" i opłaca online koszt przekazania.")+" ")],t._v(" "+t._s(t.say.transfer_start_success_settlement||" Rozliczenie ewentualnego zwrotu opłaty startowej między Wami odbywa się poza systemem.")+" ")],2)])])]),e("div",{staticClass:"row transfer-start__section transfer-start__actions"},[e("div",{staticClass:"col-12 col-lg-4 d-none d-lg-block"}),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__buttons transfer-start__buttons--end"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:function(e){return t.goToCompetitions()}}},[t._v(" "+t._s(t.say.transfer_start_btn_back_to_competitions||"Wróć do zawodów")+" ")])],1)])])]:[e("div",{staticClass:"row transfer-start__section"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"transfer-start__section-header"},[e("h3",[t._v(" "+t._s(t.say.transfer_start_rules_title||"Zasady przekazywania startu")+" ")])])]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__card bg--gray"},[e("h3",{staticClass:"transfer-start__content-title"},[t._v(" "+t._s(t.say.transfer_start_cannot_start_title||"Nie możesz wystartować?")+" ")]),t.isFree?[e("p",[t._v(" "+t._s(t.say.transfer_start_intro_free||"Przekaż swój opłacony start innej osobie. Oto jak to działa:")+" ")]),e("ul",{staticClass:"transfer-start__steps"},[e("li",[t._v(" "+t._s(t.say.transfer_start_step_1||"Podajesz adres e-mail osoby, której chcesz przekazać start.")+" ")]),e("li",[t._v(" "+t._s(t.say.transfer_start_step_2||"Osoba ta otrzymuje e-mail z linkiem do rejestracji oraz informacją o koszcie i terminie ważności przekazania.")+" ")]),e("li",[t._v(" "+t._s(t.say.transfer_start_step_3||"Ty otrzymujesz kod przekazania startu — udostępniasz go zaproszonej osobie (rozliczenie ewentualnego zwrotu opłaty startowej między Wami odbywa się poza systemem).")+" ")]),e("li",[t._v(" "+t._s(t.say.transfer_start_step_4_free||"Zaproszona osoba rejestruje się z linku, wpisuje kod w polu kodu rabatowego i bezpłatnie finalizuje przejęcie startu.")+" ")])]),e("p",{staticClass:"mat16"},[e("strong",[t._v(" "+t._s(t.say.transfer_start_free_label||"Przekazanie startu jest bezpłatne.")+" ")])])]:[e("p",[t._v(" "+t._s(t.say.transfer_start_intro_paid||"Możesz przekazać swój opłacony start innej osobie.")+" ")]),e("p",[t._v(" "+t._s(t.say.transfer_start_how_it_works||"Oto jak to działa:")+" ")]),e("ul",{staticClass:"transfer-start__steps"},[e("li",[t._v(" "+t._s(t.say.transfer_start_step_1||"Podajesz adres e-mail osoby, której chcesz przekazać start.")+" ")]),e("li",[t._v(" "+t._s(t.say.transfer_start_step_2||"Osoba ta otrzymuje e-mail z linkiem do rejestracji oraz informacją o koszcie i terminie ważności przekazania.")+" ")]),e("li",[t._v(" "+t._s(t.say.transfer_start_step_3||"Ty otrzymujesz kod przekazania startu — udostępniasz go zaproszonej osobie (rozliczenie zwrotu opłaty startowej między Wami odbywa się poza systemem).")+" ")]),e("li",[t._v(" "+t._s(t.say.transfer_start_step_4_paid||"Zaproszona osoba rejestruje się z linku, wpisuje kod w polu kodu rabatowego i opłaca online koszt przekazania.")+" ")])]),e("p",{staticClass:"mat16"},[t._v(" "+t._s(t.say.transfer_start_paid_cost_prefix||"Koszt przekazania startu:")+" "),e("strong",[t._v(t._s(t.transferPriceLabel)+" zł")]),t._v(" "+t._s(t.say.transfer_start_paid_cost_suffix||" (opłaca osoba przejmująca start podczas rejestracji). Ty nie ponosisz dodatkowych kosztów.")+" ")])],e("p",[t._v(" "+t._s(t.say.transfer_start_deadline_prefix||"Termin: start możesz przekazać najpóźniej do")+" "+t._s(t.deadlineLabel)+". ")])],2)])]),e("div",{staticClass:"row transfer-start__section"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"transfer-start__section-header"},[e("h3",[t._v(" "+t._s(t.say.transfer_start_email_section_title||"Adres e-mail osoby,")+" ")]),e("p",[t._v(" "+t._s(t.say.transfer_start_email_section_description||"której przekazujesz swój udział")+" ")])])]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__card bg--gray"},[e("base-input-text",{attrs:{type:"email",label:t.say.transfer_start_email_label||"Adres e-mail odbiorcy",hint:t.say.transfer_start_email_hint||"np. [email protected]",error:t.emailError,"without-error-message":""},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),t.emailError?e("p",{staticClass:"transfer-start__error mat8"},[t._v(" "+t._s(t.emailError)+" ")]):t._e(),t.submitError?e("p",{staticClass:"transfer-start__error mat8"},[t._v(" "+t._s(t.submitError)+" ")]):t._e()],1)])]),e("div",{staticClass:"row transfer-start__section transfer-start__actions"},[e("div",{staticClass:"col-12 col-lg-4 d-none d-lg-block"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__buttons"},[e("base-button",{attrs:{btn3:"",short:""},on:{click:function(e){return t.goBack()}}},[t._v(" "+t._s(t.say.transfer_start_btn_back||"Cofnij")+" ")]),e("base-button",{staticStyle:{"min-width":"260px"},attrs:{btn1:"",short:"",loading:t.isSubmitting,disabled:t.isSubmitting},on:{click:function(e){return t.submit()}}},[t._v(" "+t._s(t.say.transfer_start_btn_send||"Wyślij")+" ")])],1)])])]:[t._m(0),t._m(1),e("p",{staticClass:"transfer-start__loading-text mat16"},[t._v(" "+t._s(t.say.transfer_start_loading||"Ładowanie…")+" ")])]],2)],1)},Of=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row transfer-start__section"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"transfer-start__section-header transfer-start__section-header--skeleton"})]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__card bg--gray transfer-start__card--skeleton"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row transfer-start__section"},[e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"transfer-start__section-header transfer-start__section-header--skeleton"})]),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"transfer-start__card bg--gray transfer-start__card--skeleton transfer-start__card--short"})])])}];const Af=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;var Sf={components:{MinisiteHeader:Ia},mixins:[bi["a"]],props:{competitionId:{type:Number,required:!0},playerId:{type:Number,required:!0}},data(){return{ready:!1,email:"",emailError:null,submitError:null,isSubmitting:!1,rebateCode:null,errorMessage:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","user","competitions","players"])),{},{competition(){return this.competitions[this.competitionId]},player(){return this.players[this.playerId]},canTransfer(){return this.user&&this.player&&this.competition&&this.player.user===this.user.id&&this.canPlayerTransferStart(this.player,this.competition)},isFree(){var t;return 0===Number((null===(t=this.competition)||void 0===t?void 0:t.transferPrice)||0)},transferPriceLabel(){var t;const e=Number((null===(t=this.competition)||void 0===t?void 0:t.transferPrice)||0);return Number.isInteger(e)?String(e):e.toFixed(2)},deadlineLabel(){var t,e;const a=(null===(t=this.competition)||void 0===t?void 0:t.transferDeadline)||(null===(e=this.competition)||void 0===e?void 0:e.startedTime);if(!a)return this.say.transfer_start_deadline_fallback||"rozpoczęcia zawodów";const n=f()(a);return`${this.say.transfer_start_deadline_event||"rozpoczęcia zawodów"} ${n.format("DD.MM.YYYY")}, ${this.say.transfer_start_deadline_hour||"godz."} ${n.format("HH:mm")}`}}),watch:{competitionId:{immediate:!0,handler(){this.bootstrap()}},playerId(){this.bootstrap()},email(){this.emailError=null}},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["n"],g["wc"],g["hd"]])),{},{goBack(){this.$router.back()}
1,goToCompetitions(){this.$router.push({name:"user-competitions-future",alias:!0})},async bootstrap(){if(this.ready=!1,this.rebateCode=null,this.errorMessage=null,this.email="",this.emailError=null,this.submitError=null,!this.user||!this.user.roles.includes("ROLE_USER"))return this.errorMessage=this.say.transfer_start_error_login||"Musisz być zalogowany, aby przekazać start.",this.ready=!0,void this.$router.replace({name:"authentication-login",query:{redirect:this.$route.fullPath},alias:!0});try{await Promise.all([this.BOOTSTRAP_MINISITE(this.competitionId),this.READ_PLAYER(this.playerId)])}catch(t){return this.errorMessage=this.say.transfer_start_error_load||"Nie udało się wczytać danych startu.",void(this.ready=!0)}return this.player&&this.player.user===this.user.id?(this.canPlayerTransferStart(this.player,this.competition)||(this.errorMessage=this.say.transfer_start_error_unavailable||"Przekazanie startu jest niedostępne dla tych zawodów."),void(this.ready=!0)):(this.errorMessage=this.say.transfer_start_error_not_owner||"Ten start nie należy do Twojego konta.",void(this.ready=!0))},submit(){this.emailError=null,this.submitError=null;const t=(this.email||"").trim();t?Af.test(t)?this.send(t):this.emailError=this.say.transfer_start_error_email_invalid||"Podaj poprawny adres e-mail.":this.emailError=this.say.transfer_start_error_email_required||"Podaj adres e-mail."},async send(t){this.isSubmitting=!0;try{const e=await this.TRANSFER_PLAYER_START({playerId:this.playerId,email:t});this.rebateCode=(null===e||void 0===e?void 0:e.rebateCode)||null,this.rebateCode||(this.submitError=this.say.transfer_start_error_no_code||"Wysłano zaproszenie, ale nie otrzymano kodu. Skontaktuj się z organizatorem.")}catch(e){this.submitError="string"===typeof e&&e||(null===e||void 0===e?void 0:e.error)||(null===e||void 0===e?void 0:e.message)||(null===e||void 0===e?void 0:e.email)||this.say.transfer_start_error_submit||"Nie udało się wysłać zaproszenia. Spróbuj ponownie."}finally{this.isSubmitting=!1}}})},zf=Sf,jf=(a("3fb6"),Object(U["a"])(zf,xf,Of,!1,null,"c192c8d4",null)),If=jf.exports,Pf=function(){var t=this,e=t._self._c;return e("div")},Ef=[],Tf={async created(){await this.logout()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["tb"]])),{},{async logout(){await this.LOGOUT_USER(),this.$router.replace({name:"authentication-login",alias:!0})}})},Nf=Tf,Rf=Object(U["a"])(Nf,Pf,Ef,!1,null,null,null),Lf=Rf.exports,Mf=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 confirmation"},[e("h1",[t._v(" "+t._s(t.say.create_organizer_profile_to_go)+" ")])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"row profile"},[e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"row profile__option"},[t._m(0),e("div",{staticClass:"profile__option-box"},[e("p",{staticClass:"profile__option-title"},[t._v(" "+t._s(t.say.organizes_competition)+" ")]),e("p",[t._v(" "+t._s(t.say.create_organizer_profile_for)+": ")]),e("p",[t._v(" • "+t._s(t.say.create_competition_page)+" ")]),e("p",[t._v(" • "+t._s(t.say.start_online_registration)+" ")]),e("p",[t._v(" • "+t._s(t.say.measure_results_stoper)+" ")])]),e("div",{staticClass:"col-12 profile__option-btn"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-5"},[e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.chooseOrganizer()}}},[t._v(" "+t._s(t.say.create_organizer_profile)+" ")])],1)])])])])])])])])])])},Df=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("img",{staticClass:"profile__option-image",attrs:{src:a("1fca")}})])}],$f={computed:Object(v["a"])({},Object(R["c"])(["user","say"])),created(){this.user||this.$router.push({name:"authentication-login",alias:!0})},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["e"]])),{},{async chooseOrganizer(){await this.ADD_ORGANIZER_ROLE(),this.$router.push({name:"panel-organizer",alias:!0})}})},Uf=$f,Bf=(a("4db4"),Object(U["a"])(Uf,Mf,Df,!1,null,"030f19c6",null)),Ff=Bf.exports,qf=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-lg-9 col-12 dashboard"},[e("div",{staticClass:"dashboard-wrapper"},[e("panel-novelty-boxes"),t.showUpdateInfo?e("div",{staticClass:"update-results update-results__dashboard"},[e("div",{staticClass:"update-results-content"},[e("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M17.1429 20.5625C17.1429 20.7232 17.0179 20.8571 16.8571 20.8571H15.1429C14.9821 20.8571 14.8571 20.7232 14.8571 20.5625V18.8661C14.8571 18.7054 14.9821 18.5714 15.1429 18.5714H16.8571C17.0179 18.5714 17.1429 18.7054 17.1429 18.8661V20.5625ZM17.125 17.2232C17.1161 17.3393 16.9821 17.4286 16.8214 17.4286H15.1696C15 17.4286 14.8661 17.3393 14.8661 17.2232L14.7143 13.1429C14.7143 13.0893 14.7411 13 14.8036 12.9554C14.8571 12.9107 14.9375 12.8571 15.0179 12.8571H16.9821C17.0625 12.8571 17.1429 12.9107 17.1964 12.9554C17.2589 13 17.2857 13.0714 17.2857 13.125L17.125 17.2232ZM17 8.88393C16.8036 8.51786 16.4196 8.28571 16 8.28571C15.5804 8.28571 15.1964 8.51786 15 8.88393L8.14286 21.4554C7.94643 21.8036 7.95536 22.2321 8.16071 22.5804C8.36607 22.9286 8.74107 23.1429 9.14286 23.1429H22.8571C23.2589 23.1429 23.6339 22.9286 23.8393 22.5804C24.0446 22.2321 24.0536 21.8036 23.8571 21.4554L17 8.88393Z",fill:"#FED25A"}})]),e("b",[t._v("Zmiany zostaną opublikowane do ~5 minut.")]),e("div",{staticClass:"update-results-close",on:{click:function(e){t.showU
1pdateInfo=!1}}},[e("i",{staticClass:"fas fa-times"})])])]):t._e(),e("div",{staticClass:"dashboard-link dashboard-link--without-margin"},[e("p",{staticClass:"dashboard-link__label dashboard-link__label--"},[t._v(" Pod tym adresem użytkownicy mogą się zarejestrować i zobaczyć wyniki zawodów ")]),e("base-link-input",{staticClass:"dashboard-link__value",attrs:{link:t.competitionPageLink,"button-name":"Otwórz",type:"open"}})],1),e("div",{staticClass:"dashboard-charts none-desktop"},[e("chart-competition-players",{staticClass:"dashboard-charts__item",attrs:{labels:t.dataCounters.chartLables,"background-colors":t.dataCounters.chartBackgrounds,data:t.dataCounters.registerCounter,description:"zarejestrowanych uczestników",summary:t.competitionPlayerCount.playersCount}}),e("chart-competition-players",{staticClass:"dashboard-charts__item",attrs:{labels:t.dataCounters.chartLables,"background-colors":t.dataCounters.chartBackgrounds,data:t.dataCounters.paidCounter,description:"opłaconych uczestników",summary:t.competitionPlayerCount.playersPayCount}}),t.paymentCount&&null!==t.paymentCount.netTotal&&void 0!==t.paymentCount.netTotal?e("div",{staticClass:"dashboard-charts__info"},[e("span",{staticClass:"dashboard-charts__info-price"},[t._v(" "+t._s(t.paymentCount.netTotal)+" zł ")]),e("span",{staticClass:"dashboard-charts__info-description"},[t._v("zebranych wpłat")]),e("div",{staticClass:"dashboard-charts__refunds"},[e("div",{staticClass:"dashboard-charts__refunds-row"},[e("span",{staticClass:"dashboard-charts__refunds-label"},[t._v("Zwroty opłaty startowej")]),e("span",{staticClass:"dashboard-charts__refunds-value"},[t._v(t._s(t.paymentCount.refundsCount))])]),e("div",{staticClass:"dashboard-charts__refunds-row"},[e("span",{staticClass:"dashboard-charts__refunds-label"},[t._v("Suma zwrotów opłaty startowej")]),e("span",{staticClass:"dashboard-charts__refunds-value"},[t._v(t._s(t.paymentCount.refundsTotal)+" zł")])])])]):t._e()],1),e("div",{staticClass:"dashboard-info"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6 col-12"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Lokalizacja")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t.competition.location)+" ")])]),e("div",{staticClass:"col-lg-3 col-6"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Data zawodów")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t._f("asDate")(t.competition.startedTime))+" "+t._s(t.isMobile?t.asHour(t.competition.startedTime):"")+" ")])]),e("div",{staticClass:"col-lg-3 col-6"},[t._m(0),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t._f("asDate")(t.competition.provisionTime))+" "+t._s(t.isMobile?t.asHour(t.competition.provisionTime):"")+" ")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6 col-12"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Kategoria zawodów")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t._f("asType")(t.competition.type))+" ")])]),e("div",{staticClass:"col-3 none-mobile"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Godzina startu")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t._f("asHour")(t.competition.startedTime))+" ")])]),e("div",{staticClass:"col-3 none-mobile"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Zapisy online do godziny")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t._f("asHour")(t.competition.provisionTime))+" ")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-6"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Oficjalna strona zawodów")]),e("p",{staticClass:"dashboard-info__value dashboard-info__value--pointer",on:{click:function(e){return t.openSite(t.competition.websitePl)}}},[t._v(" "+t._s(t.competition.websitePl)+" ")])]),t._m(1),t._m(2)]),e("div",{staticClass:"row"},[t.cycle?e("div",{staticClass:"col-6"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Cykl zawodów")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t.cycle.name)+" ")])]):t._e(),t.competition.apiKey?e("div",{staticClass:"col-6"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Klucz API do zawodów")]),e("p",{staticClass:"dashboard-info__value"},[t._v(" "+t._s(t.competition.apiKey)+" ")])]):t._e()])]),e("div",{staticClass:"row mab36"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Opis zawodów")]),e("div",{ref:"competitionDescription",staticClass:"dashboard-info__description",class:{"dashboard-info__description--show-all":t.showAllDescription||!t.isOverloadedDescription},domProps:{innerHTML:t._s(t.competition.descriptionPl)}}),t.isOverloadedDescription?e("div",{staticClass:"dashboard-info__more",on:{click:function(e){t.showAllDescription=!t.showAllDescription}}},[t._v(" "+t._s(t.showAllDescription?"Pokaż mniej":"Pokaż więcej")+" ")]):t._e()]),t.competition.remarksPl?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"dashboard-info__label"},[t._v("Ważny komunikat dla uczestników")]),e("div",{staticClass:"dashboard-info__value mab36"},[t._v(" "+t._s(t.competition.remarksPl)+" ")])])]):t._e(),e("div",{staticClass:"row mab150"},[t._m(3),e("div",{staticClass:"col-12"},t._l(t.classificationsIds,(function(a){return e("base-item-classification",{key:a,attrs:{id:a,"competition-id":t.competition.id}})})),1)])],1)]),e("div",{staticClass:"col-3 dashboard__chart none-mobile"}
1,[e("chart-competition-players",{staticClass:"mat16",attrs:{labels:t.dataCounters.chartLables,"background-colors":t.dataCounters.chartBackgrounds,data:t.dataCounters.registerCounter,description:"zarejestrowanych uczestników",summary:t.competitionPlayerCount.playersCount}}),e("chart-competition-players",{staticClass:"mat24",attrs:{labels:t.dataCounters.chartLables,"background-colors":t.dataCounters.chartBackgrounds,data:t.dataCounters.paidCounter,description:"opłaconych uczestników",summary:t.competitionPlayerCount.playersPayCount}}),t.paymentCount&&null!==t.paymentCount.netTotal&&void 0!==t.paymentCount.netTotal?e("div",{staticClass:"dashboard-charts__info"},[e("span",{staticClass:"dashboard-charts__info-price"},[t._v(" "+t._s(t.paymentCount.netTotal)+" zł ")]),e("span",{staticClass:"dashboard-charts__info-description"},[t._v("zebranych wpłat")]),e("div",{staticClass:"dashboard-charts__refunds"},[e("div",{staticClass:"dashboard-charts__refunds-row"},[e("div",{},[e("span",{staticClass:"dashboard-charts__refunds-value"},[t._v(t._s(t.paymentCount.refundsCount))]),e("span",{staticClass:"dashboard-charts__refunds-label"},[t._v("Zwroty opłaty startowej")])]),e("div",{},[e("span",{staticClass:"dashboard-charts__refunds-value"},[t._v(t._s(t.paymentCount.refundsTotal)+" zł")]),e("span",{staticClass:"dashboard-charts__refunds-label"},[t._v("Suma zwrotów opłaty startowej")])])])])]):t.paymentCount&&null===t.paymentCount.netTotal?e("div"):e("div",{staticClass:"loader"},[t._m(4)]),t.paymentDetails&&t.paymentDetails.lastCountedProvision>0?e("div",{staticClass:"paymentDetailsBox",class:{overdate:t.paymentDetails.overDate}},[e("div",[e("p",[t._v("opłata za korzystanie z systemu")]),e("span",{staticClass:"price"},[t._v(t._s(new Intl.NumberFormat("pl-PL",{style:"currency",currency:"PLN"}).format(t.paymentDetails.lastCountedProvision)))])]),e("div",[e("p",[t._v("termin płatności "+t._s(t.paymentDetails.paymentDate.split("T")[0]))]),e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.$router.push({name:"panel-provision",alias:!0})}}},[t._v("Przejdź do opłat")]),e("p",[t._v("lub zadzwoń 502 678 564")])],1)]):t._e()],1)])]):t._e()},Hf=[function(){var t=this,e=t._self._c;return e("p",{staticClass:"dashboard-info__label"},[t._v(" Zapisy online do "),e("span",{staticClass:"none-mobile"},[t._v("dnia")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-3"},[e("p",{staticClass:"dashboard-info__label"}),e("p",{staticClass:"dashboard-info__value"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-3"},[e("p",{staticClass:"dashboard-info__label"}),e("p",{staticClass:"dashboard-info__value"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("p",{staticClass:"dashboard-info__value mab16"},[t._v("Klasyfikacje")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],Gf=function(){var t=this,e=t._self._c;return e("div",[t.isClosedNoveltyCookie("stoper")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("stoper")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img novelty__box-img--laptop",attrs:{src:a("db3a"),alt:""}}),e("img",{staticClass:"novelty__box-img novelty__box-img--phone",attrs:{src:a("150b"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Nowa wersja stopera!")]},proxy:!0}],null,!1,3915934777)},[e("p",[t._v("• obsługa startu falowego netto/brutto")]),e("p",[t._v("• dowolna ilość punktów pomiarowych")]),e("p",[t._v("• możliwość edytowania czasów")]),e("p",[t._v("• sygnalizacja o błędnych numerach")]),e("p",{staticClass:"mat16"},[t._v(" W miejscach trudno dostępnych bez dostępu do "),e("br"),t._v(" zasilenia, alternatywa dla sprzętu pomiarowego ")])]),t.isClosedNoveltyCookie("insurance")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("insurance")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("7007"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Uruchom sprzedaż ubezpieczeń")]},proxy:!0}],null,!1,1982657381)},[e("p",[t._v(" Daj uczestnikom możliwość ubezpieczenia startu w zawodach podczas zapisów. Zawodnicy będą mogli wykupić ubezpieczenia od: ")]),e("p",[t._v("• rezygnacji z udziału w zawodach")]),e("p",[t._v("• następstw nieszczęśliwych wypadków")]),e("p",{staticClass:"mat16"},[t._v("To tylko jeden dodatkowy krok w formularzu rejestracyjnym.")])]),t.isClosedNoveltyCookie("msg")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("msg")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("6e0e"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Wysyłaj wiadomości uczestnikom")]},proxy:!0}],null,!1,1183600172)}
1,[e("p",[t._v("Komunikuj się z zawodnikami zapisanymi na Twoje wydarzenie poprzez wiadomości mailowe.")]),e("p",[t._v("• personalizacja poprzez znaczniki (np. imię, numer, link)")]),e("p",[t._v("• możliwość dodania załączników")]),e("p",[t._v("• targetowanie do grup uczestników (kategorie, opłaceni/nieopłaceni)")]),e("p",{staticClass:"mat16"},[t._v("Pozostań w kontakcie!")])]),t.isClosedNoveltyCookie("shop")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("shop")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("320b"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Dodaj produkty do Twojego formularza zapisów")]},proxy:!0}],null,!1,3549502007)},[e("p",[t._v("Daj uczestnikom możliwość kupienia dodatkowych pamiątek lub produktów potrzebnych do startu")]),e("p",[t._v("• ustaw produkty i ich ceny")]),e("p",[t._v("• ustaw dodatkowe opcje np: rozmiary, kolory")]),e("p",{staticClass:"mat16"},[t._v("To tylko jeden dodatkowy krok w formularzu rejestracyjnym.")])]),t.isClosedNoveltyCookie("gps")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("gps")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("fe10"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Potrzebujesz śledzenie GPS na Twoich zawodach?")]},proxy:!0}],null,!1,1902058288)},[e("p",[t._v("Zapewnij bezpieczeństwo swoim zawodnikom – niech będą widoczni na trasie dzięki trackingowi GPS.")]),e("p",[t._v("• śledzenie zmagań zawodników na żywo")]),e("p",[t._v("• większe bezpieczeństwo dzięki lokalizacji startujących")]),e("p",[t._v("• długi czas pracy nadajników")]),e("p",[t._v("• zapis śladu GPX trasy")]),e("p",{staticClass:"mat16"},[t._v("Wszystko to dzięki integracji systemu z serwisem Activeprogress.eu")])]),t.isClosedNoveltyCookie("lang")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("lang")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("b828"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Przetłumacz stronę zawodów na inne języki")]},proxy:!0}],null,!1,1448567855)},[e("p",[t._v("W prosty sposób zamień swoją stronę zapisów w wielojęzyczną.")]),e("p",[t._v("• obsługa kilku języków (EN, CZ, DE, FR)")]),e("p",[t._v("• zwiększenie zasięgów strony zapisów")]),e("p",[t._v("• dodanie plików (np. regulaminu) w innym języku")]),e("p",[t._v("• tłumaczenia informacji, klasyfikacji, pól i komunikatów")])]),t.isClosedNoveltyCookie("scanner-qr")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("scanner-qr")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("8aaa"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Bilety na zawody z kodem QR")]},proxy:!0}],null,!1,3117561752)},[e("p",[t._v("Wydawaj numery startowe i pakiety, skanując telefonem kody startowe uczestników.")]),e("p",[t._v("• automatyczna wysyłka kodu QR po opłaceniu startu")]),e("p",[t._v("• skanowanie kodów w biurze zawodów aparatem telefonu")]),e("p",[t._v("• sprawny odbiór numeru i pakietu na podstawie kodu QR")])]),t.isClosedNoveltyCookie("participation-transfer")||t.isClickedCloseNovelty||t.isMobile?t._e():e("panel-novelty-box",{on:{close:function(e){return t.closeNoveltyMessage("participation-transfer")}},scopedSlots:t._u([{key:"images",fn:function(){return[e("img",{staticClass:"novelty__box-img",attrs:{src:a("f645"),alt:""}})]},proxy:!0},{key:"title",fn:function(){return[t._v("Możliwość przekazywania pakietu startowego")]},proxy:!0}],null,!1,2819587033)},[e("p",[t._v(" Włącz możliwość samodzielnego przekazywania swojego udziału innej osobie. Osoba, której zostanie przekazany pakiet startowy otrzyma wiadomość e-mail z kodem obniżającym opłatę do 0 zł oraz linkiem do formularza zapisu w zawodach. Pakiet startowy osoby przekazującej zostanie automatycznie unieważniony. ")])])],1)},Wf=[],Vf=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row novelty"},[e("div",{staticClass:"novelty__arrow"}),e("div",{staticClass:"col-4"},[e("div",{staticClass:"novelty__box"},[t._t("images")],2)]),e("div",{staticClass:"col-8"},[e("div",{staticClass:"novelty__description"},[e("h5",{staticClass:"novelty__description-title"},[t._t("title")],2),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 mat16"},[t._t("default")],2)]),e("div",{staticClass:"novelty__description-close",on:{click:function(e){return t.$emit("close")}}},[e("i",{staticClass:"fas fa-times"})])])])])},Kf=[],Zf=(a("c96b"),{}),Yf=Object(U["a"])(Zf,Vf,Kf,!1,null,"22102b65",null),Qf=Yf.exports,Xf={name:"PanelNoveltyBoxes",components:{PanelNoveltyBox:Qf},data(){return{isClickedCloseNovelty:!1}},computed:{isMobile(){return["sm","md"].includes(this.$mq)}},methods:{closeNoveltyMessage(t){this.isClickedCloseNovelty=!0,ke.a.set("novelty-"+t,"closed",{expires:365})},isClosedNoveltyCookie(t){return ke.a.get("novelty-"+t)}}},Jf=Xf,th=Object(U["a"])(Jf,Gf,Wf,!1,null,null,null),eh=th.exports,ah=function(){var t=this,e=t._self._c;return e("div",{staticClass:"chart-players"},[e("div",{staticClass:"chart-players__info"},[e("p",{staticClass:"chart-players__info-value"},[t._v(" "+t._s(t.summary)+" ")]),e("p",{staticClass:"chart-players__info-text"},[t._v(" "+t._s(t.description)+" ")])]),e("canvas",{ref:"ctx",attrs:{width:"262",height:"262"}}),t.isMobile?e("p",{staticClass:"chart-players__hint"},[t._v(" "+t._s(t.description)+" ")]):t._e()])},nh=[],ih=a("30ef"),sh=a.n(ih),oh={props:{labels:{type:Array,required:!0},backgroundColors:{type:Array,required:!0},data:{type:Array,required:!0},summary:{type:Number,required:!0},description:{type:String,required:!0}},data(){return{chart:null}},computed:{isMobile(){return["sm","md"].includes(this.$mq)},dataChart(){return 0===this.summary?[1]:this.data}},mounted(){const t=this.$refs.ctx;this.chart=new sh.a(t,{type:"doughnut",data:{labels:this.labels,datasets:[{data:this.dataChart,backgroundColor:this.backgroundColors,borderWidth:4,borderColor:"#37474f",hoverBorderColor:"#37474f"}]}
1,options:{legend:{display:!1},cutoutPercentage:60,tooltips:{enabled:!!this.summary}}})}},rh=oh,lh=(a("9859"),Object(U["a"])(rh,ah,nh,!1,null,"c2a44c3c",null)),ch=lh.exports,dh={components:{PanelNoveltyBoxes:eh,ChartCompetitionPlayers:ch},props:{competition:{type:Object,required:!0}},data(){return{showAllDescription:!1,ready:!1,classificationsIds:null,isOverloadedDescription:!1,isClickedCloseNovelty:!1,showUpdateInfo:!!this.$route.query.showInfo&&this.$route.query.showInfo,paymentDetails:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","cycles","competitionPlayerCounts","categories","paymentCounts","categoryCounts"])),{},{isAdmin(){return this.user.roles.includes("ROLE_ADMIN")},cycle(){return this.cycles[this.competition.cycle]},isClosedNoveltyCookie(){return ke.a.get("novelty-stoper")},competitionPageLink(){const t=window.location.origin,{href:e}=this.$router.resolve({name:"minisite-landing",params:this.competition,alias:!0});return`${t}${e}`},isMobile(){return["sm","md"].includes(this.$mq)},competitionPlayerCount(){return this.competitionPlayerCounts[this.competition.id]},paymentCount(){return this.paymentCounts[this.competition.id]},competitionCategoriesIds(){const t=Object.values(this.categories).filter(t=>this.classificationsIds.includes(t.classification));return t.map(t=>t.id)},competitionCategoryCounts(){return Object.values(this.categoryCounts).filter(t=>this.competitionCategoriesIds.includes(t.category))},dataCounters(){const t=[],e=[],a=[],n=[],i="#ff1744",s="#FF3D00";for(const o of this.competitionCategoryCounts)e.push(o.playersPayCount),a.push(o.playersCount),t.push(this.categories[o.category].namePl),n.push(i),n.push(s);return{chartLables:t,paidCounter:e,registerCounter:a,chartBackgrounds:n}}}),async created(){const[{classifications:t}]=await Promise.all([this.READ_COMPETITION_CLASSIFICATIONS(this.competition.id),this.READ_COMPETITION_CLASSIFICATIONS_AGES(this.competition.id),this.READ_COMPETITION_LIMITS(this.competition.id),this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.competition.id),this.READ_COMPETITION_COUNT(this.competition.id),this.READ_COMPETITION_CATEGORY_COUNT(this.competition.id)]);this.READ_COMPETITION_PAYMENT_COUNT(this.competition.id),this.classificationsIds=t,this.getPaymentDetails(),this.ready=!0,this.$nextTick(()=>{this.isOverloadedDescription=this.checkIsOverloadedDescription()})},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Lb"],g["Nb"],g["Tb"],g["Ob"],g["Qb"],g["Vb"],g["Kb"]])),{},{asHour(t){return this.$options.filters.asHour(t)},openSite(t){window.open(t,"_blank")},checkIsOverloadedDescription(){var t;return(null===(t=this.$refs.competitionDescription)||void 0===t?void 0:t.offsetHeight)>180},closeNoveltyMessage(){this.isClickedCloseNovelty=!0,ke.a.set("novelty-stoper","closed",{expires:14})},async getPaymentDetails(){const t=await Jl()({method:"get",url:`/competitions/${this.competition.id}/count/provision`});this.paymentDetails=t}})},uh=dh,ph=(a("cc15"),Object(U["a"])(uh,qf,Hf,!1,null,"1746d308",null)),mh=ph.exports,fh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[t._m(0),e("div",{staticClass:"row justify-content-end mat16"},[e("div",{staticClass:"col-lg-10"},[e("panel-competition-form",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e},save:function(e){return t.createCompetition()}},model:{value:t.competition,callback:function(e){t.competition=e},expression:"competition"}})],1)])])},hh=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mat32"},[e("div",{staticClass:"col-lg-12"},[e("h3",[t._v("Nowe zawody")])])])}],bh=function(){var t=this,e=t._self._c;return e("div",[e("panel-competition-form-box",[e("div",{staticClass:"col-12 col-lg-8"},[e("panel-input-text",{attrs:{label:"Nazwa wydarzenia",error:t.errors.name,hint:"Wpisz nazwe"},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("div",{staticClass:"col-12 col-lg-8 mat16"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-7"},[e("p",{staticClass:"form-input__label"},[t._v("Typ wydarzenia")]),e("base-input-select",{attrs:{error:t.errors.type,"is-panel":"",searchable:!1,clearable:!1,options:t.competitionTypes,reduce:t=>t.id,"without-error-message":""}
1,on:{"update:error":function(e){return t.$set(t.errors,"type",e)}},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__label form-input__label--competition-type"},[t._v("Wydarzenie")]),e("div",{staticClass:"d-flex"},[e("base-button",{staticClass:"w100",class:{"form-input__competition-type--active":!t.form.isRemote},attrs:{btn2:"",short:""},on:{click:function(e){t.form.isRemote=!1}}},[t._v(" Rzeczywiste ")]),e("base-button",{staticClass:"mal4 w100",class:{"form-input__competition-type--active":t.form.isRemote},attrs:{btn2:"",short:""},on:{click:function(e){t.form.isRemote=!0}}},[t._v(" Wirtualne ")])],1)])])])]),e("panel-competition-form-box",{staticClass:"mat24",attrs:{"align-center":!t.form.isRemote}},[e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"row justify-content-start"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Data i godzina zamknięcia zapisów online")])]),e("div",{staticClass:"col-8 col-lg-6"},[e("base-input-date",{staticClass:"form-input__date",attrs:{error:t.errors.provisionTime,"is-short":"",hint:"Wybierz","without-error-message":""},on:{"update:error":function(e){return t.$set(t.errors,"provisionTime",e)}},model:{value:t.form.provisionTime,callback:function(e){t.$set(t.form,"provisionTime",e)},expression:"form.provisionTime"}})],1),e("div",{staticClass:"col-4 col-lg-3"},[e("div",{staticClass:"form-input__hour"},[e("base-input-mask",{attrs:{mask:"00:00",placeholder:"GG:MM",value:t.provisionTimeHour},on:{complete:t.changeProvisionTime}})],1)])]),e("div",{staticClass:"col-lg-12"},[t.form.isRemote||t.form.type===t.types.camp?e("div",{staticClass:"row justify-content-start"},[e("div",{staticClass:"col-12 form-input__label form-input__label--duration"},[t._v("Czas trwania wydarzenia")]),e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Data rozpoczęcia")])]),e("div",{staticClass:"col-8 col-lg-6"},[e("base-input-date",{staticClass:"form-input__date",attrs:{"is-short":"",error:t.errors.preStartedTime,hint:"Wybierz","without-error-message":""},on:{"update:error":function(e){return t.$set(t.errors,"preStartedTime",e)}},model:{value:t.form.preStartedTime,callback:function(e){t.$set(t.form,"preStartedTime",e)},expression:"form.preStartedTime"}}
1)],1),e("div",{staticClass:"col-4 col-lg-3"},[e("div",{staticClass:"form-input__hour"},[e("base-input-mask",{attrs:{mask:"00:00",placeholder:"GG:MM",value:t.preStartedTimeHour},on:{complete:t.changePreStartedTime}})],1)]),e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label form-input__label--send-results"},[t._v("Data zakończenia")])]),e("div",{staticClass:"col-8 col-lg-6 mat16"},[e("base-input-date",{staticClass:"form-input__date",attrs:{"is-short":"",error:t.errors.startedTime,hint:"Wybierz","without-error-message":""},on:{"update:error":function(e){return t.$set(t.errors,"startedTime",e)}},model:{value:t.form.startedTime,callback:function(e){t.$set(t.form,"startedTime",e)},expression:"form.startedTime"}})],1),e("div",{staticClass:"col-4 col-lg-3 mat16"},[e("div",{staticClass:"form-input__hour"},[e("base-input-mask",{attrs:{mask:"00:00",placeholder:"GG:MM",value:t.startedTimeHour},on:{complete:t.changeStartedTime}})],1)])]):e("div",{staticClass:"row mat16 justify-content-start"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Data i godzina wydarzenia")])]),e("div",{staticClass:"col-8 col-lg-6"},[e("base-input-date",{staticClass:"form-input__date",attrs:{"is-short":"",error:t.errors.startedTime,hint:"Wybierz","without-error-message":""},on:{"update:error":function(e){return t.$set(t.errors,"startedTime",e)}},model:{value:t.form.startedTime,callback:function(e){t.$set(t.form,"startedTime",e)},expression:"form.startedTime"}}
1)],1),e("div",{staticClass:"col-4 col-lg-3"},[e("div",{staticClass:"form-input__hour"},[e("base-input-mask",{attrs:{mask:"00:00",placeholder:"GG:MM",value:t.startedTimeHour},on:{complete:t.changeStartedTime}})],1)])])])]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Data i godzina zamknięcia zapisów online powoduje automatyczne zablokowanie możliwości zapisu w wydarzeniu. Rejestrację w każdym momencie można zamknąć/otworzyć ręcznie. "),e("br"),e("br")]),t.form.isRemote?e("p",{staticClass:"form-input__hint"},[t._v(" Czas trwania wydarzenia to przedział czasu, w którym uczestnicy mają możliwość zgłoszenia swojego wyniku. ")]):t._e()])]),e("panel-competition-form-box",{staticClass:"mat16",attrs:{"align-end":""}},[e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-5"},[e("panel-input-text",{attrs:{label:"Nr telefonu organizatora",error:t.errors.phone},on:{"update:error":function(e){return t.$set(t.errors,"phone",e)}},model:{value:t.form.contactPhone,callback:function(e){t.$set(t.form,"contactPhone",e)},expression:"form.contactPhone"}})],1),e("div",{staticClass:"col-12 col-lg-7"},[e("panel-input-text",{staticClass:"form-input__email",attrs:{label:"Adres e-mail organizatora",error:t.errors.email},on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.form.contactEmail,callback:function(e){t.$set(t.form,"contactEmail",e)},expression:"form.contactEmail"}})],1)])]),e("div",{staticClass:"col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v("Możesz wyedytować dane kontaktowe organizatora dla tych wydarzenia.")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12"},[e("p",{ref:"location",staticClass:"form-input__label"},[t._v("Lokalizacja")])]),e("div",{staticClass:"col-12 col-lg-8"},[e("base-input-autocomplete",{staticClass:"form-input__location",class:{mab16:t.isCoordsCompetition},attrs:{error:t.errors.location,hint:"wpisz lokalizację",action:"AUTOCOMPLETE_LOCATION","without-error-message":"",clearable:""},on:{"update:error":function(e){return t.$set(t.errors,"location",e)},input:t.cityWithoutSelect,select:t.selectCity,"search-blur":t.onSearchBlur},model:{value:t.locationName,callback:function(e){t.locationName=e},expression:"locationName"}})],1),e("div",{staticClass:"col-lg-4"}),e("transition",{attrs:{name:"fade-map"}},[t.isCoordsCompetition?e("div",{staticClass:"col-12 form-map"},[e("div",{staticClass:"row"},[e("div",{key:"map",staticClass:"col-12 col-lg-8"},[e("base-map",{staticClass:"form-map__map",attrs:{lat:t.form.locationLat,lng:t.form.locationLng,zoom:10,fullscreenable:!1}},[e("l-marker",{attrs:{"lat-lng":[t.form.locationLat,t.form.locationLng],draggable:!0},on:{"update:lat-lng":t.updateCoords}},[e("l-icon",{attrs:{"icon-anchor":[12,32]}},[e("div",{staticClass:"form-map__marker"},[e("img",{attrs:{src:a("0e98")}})])])],1)],1)],1),t.isCoordsCompetition?e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"form-input__hint"},[t._v(" Przesuń marker, aby ustawić dokładną lokalizację. "),t.isEditPage?e("div",{staticClass:"none-mobile"},[e("p",[t._v("Dokładną trasę i punkty możesz ustawić:")]),e("base-button",{staticClass:"mat16",attrs:{btn9:"",badge:"fas fa-map"},on:{click:function(e){return t.$router.push({name:"panel-competition-map",params:t.form,alias:!0})}}},[t._v(" Trasa i punkty ")])],1):e("p",[t._v(" Ustawienie trasy i punktów można później dodać w zakladce Narzędzia. ")])])]):t._e()])]):t._e()])],1),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Opis wydarzenia")])]),e("div",{staticClass:"col-12 col-lg-8"},[e("base-input-area",{attrs:{hint:"Dodaj opis wydarzenia",error:t.errors.descriptionPl,rows:10},on:{"update:error":function(e){return t.$set(t.errors,"descriptionPl",e)}},model:{value:t.form.descriptionPl,callback:function(e){t.$set(t.form,"descriptionPl",e)},expression:"form.descriptionPl"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Dodaj opis wydarzenia. Przekaż uczestnikom kluczowe informacje dotyczące wydarzenia. Opisz lokalizację, nagrody, harmonogram."),e("br"),e("br"),t._v(" Pamiętaj, że treścią tego opisu możesz wpłynąć na decyzję potencjalnych uczestników o wzięciu udziału w wydarzeniu. ")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v(" Ważny komunikat dla uczestników "),e("span",{staticClass:"form-input__label--positive"},[t._v("(opcjonalnie)")])])]),e("div",{staticClass:"col-12 col-lg-8"},[e("base-input-area",{attrs:{hint:"Dodaj ważny komunikat",error:t.errors.remarksPl,rows:10}
1,on:{"update:error":function(e){return t.$set(t.errors,"remarksPl",e)}},model:{value:t.form.remarksPl,callback:function(e){t.$set(t.form,"remarksPl",e)},expression:"form.remarksPl"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Informacje wpisane w tym miejscu zostaną pokazane w wyróżnionym miejscu na stronie wydarzenia."),e("br"),e("br"),t._v(" Użyj tego miejsca aby poinformować uczestników np. o zmianie godziny startu."),e("br"),e("br"),t._v(" Podstawowe informacje umieść w opisie wydarzenia. ")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v(" Oficjalna strona wydarzenia "),e("span",{staticClass:"form-input__label--positive"},[t._v("(opcjonalnie)")])])]),e("div",{staticClass:"col-12 col-lg-8"},[e("panel-input-text",{attrs:{error:t.errors.websitePl,hint:"https://"},on:{"update:error":function(e){return t.$set(t.errors,"websitePl",e)}},model:{value:t.form.websitePl,callback:function(e){t.$set(t.form,"websitePl",e)},expression:"form.websitePl"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v("Podaj link do oficjalnej strony lub strony wydarzenia na Facebooku.")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-6"},[e("p",{staticClass:"form-input__label"},[t._v("Przekazywanie startów")]),e("div",{staticClass:"d-flex"},[e("base-button",{staticClass:"w100",class:{"form-input__competition-type--active":t.form.transferAllowed},attrs:{btn2:"",short:""},on:{click:function(e){return t.setTransferAllowed(!0)}}},[t._v(" Aktywne ")]),e("base-button",{staticClass:"mal4 w100",class:{"form-input__competition-type--active":!t.form.transferAllowed},attrs:{btn2:"",short:""},on:{click:function(e){return t.setTransferAllowed(!1)}}},[t._v(" Nieaktywne ")])],1)]),t.form.transferAllowed?e("div",{staticClass:"col-12 col-lg-6"},[e("panel-input-text",{staticClass:"form-input__transfer-price",attrs:{label:"Opłata za przekazanie startu (zł)",error:t.errors.transferPrice,hint:"0.00"},on:{"update:error":function(e){return t.$set(t.errors,"transferPrice",e)}},model:{value:t.form.transferPrice,callback:function(e){t.$set(t.form,"transferPrice",e)},expression:"form.transferPrice"}})],1):t._e()]),t.form.transferAllowed?e("div",{staticClass:"row mat16"},[e("div",{staticClass:"col-12 col-lg-6"},[e("p",{staticClass:"form-input__label"},[t._v("Termin przekazania startu")]),e("div",{staticClass:"d-flex"},[e("base-button",{staticClass:"w100",class:{"form-input__competition-type--active":"start"===t.transferDeadlineMode},attrs:{btn2:"",short:""},on:{click:function(e){return t.setTransferDeadlineMode("start")}}},[t._v(" Do dnia startu ")]),e("base-button",{staticClass:"mal4 w100",class:{"form-input__competition-type--active":"custom"===t.transferDeadlineMode},attrs:{btn2:"",short:""},on:{click:function(e){return t.setTransferDeadlineMode("custom")}}},[t._v(" Do innej daty ")])],1)]),"custom"===t.transferDeadlineMode?e("div",{staticClass:"col-12 col-lg-6"},[e("div",{staticClass:"row justify-content-start transfer-deadline"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Data i godzina limitu przekazania")])]),e("div",{staticClass:"col-8 col-lg-6"},[e("base-input-date",{staticClass:"form-input__date form-input__transfer-deadline",attrs:{error:t.errors.transferDeadline,"is-short":"",hint:"Wybierz","without-error-message":""},on:{"update:error":function(e){return t.$set(t.errors,"transferDeadline",e)}},model:{value:t.form.transferDeadline,callback:function(e){t.$set(t.form,"transferDeadline",e)},expression:"form.transferDeadline"}})],1),e("div",{staticClass:"col-3 col-lg-5"},[e("div",{staticClass:"form-input__hour"},[e("base-input-mask",{attrs:{mask:"00:00",placeholder:"GG:MM",value:t.transferDeadlineHour},on:{complete:t.changeTransferDeadline}})],1)])])]):t._e()]):t._e()]),e("div",{staticClass:"col-12 col-lg-4 mat16"},[e("p",{staticClass:"form-input__hint"},[t._v(" Możesz umożliwić uczestnikom przekazywanie zakupionych pakietów startowych innym osobom."),e("br"),e("br"),t._v("Przekazanie startu może być darmowe lub wymagać opłaty. ")])])]),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:function(e){return t.save()}}}
1,[t._v(" Zapisz ")])],1)])])],1)},_h=[],vh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row form",class:{"form--align-end":t.alignEnd,"form--align-center":t.alignCenter}},[t._t("default")],2)},gh=[],yh={props:{alignEnd:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1}}},Ch=yh,wh=(a("81d6"),Object(U["a"])(Ch,vh,gh,!1,null,"1ce9ca2c",null)),kh=wh.exports,xh=function(){var t=this,e=t._self._c;return e("div",[t.label&&t.label.length?e("p",{staticClass:"mab8"},[t._v(" "+t._s(t.label)),t.optional?e("span",{staticClass:"positive"},[t._v("(opcjonalnie)")]):t._e()]):t._e(),e("base-input-text",{staticClass:"box-shadow",attrs:{value:t.value,hint:t.hint,"is-short":"","without-error-message":"",error:t.error,type:t.type},on:{input:function(e){return t.$emit("input",e)},"update:error":function(e){return t.$emit("update:error",e)}}}),t.error&&"field_occupied"===t.error?e("div",{staticClass:"panel-tooltip-error"},[e("span",{staticClass:"panel-tooltip-text"},[t._v("Numer zajęty")]),e("img",{attrs:{src:a("0429")}})]):t._e(),e("span",{staticClass:"panel-input-error input-error",class:{"input-error--show":t.error}}
1,[t._v(t._s(t.say[t.error]))])],1)},Oh=[],Ah={props:{hint:{type:String,default:""},label:{type:String,default:""},value:{type:[String,Number],default:""},optional:{type:Boolean,default:!1},error:{type:String,default:null},type:{type:String,default:"text"}},computed:Object(v["a"])({},Object(R["c"])(["say"]))},Sh=Ah,zh=(a("6ca1"),Object(U["a"])(Sh,xh,Oh,!1,null,"5309171c",null)),jh=zh.exports,Ih={components:{PanelCompetitionFormBox:kh,PanelInputText:jh,LMarker:Si["a"],LIcon:Ms["a"]},mixins:[ud],data(){return{types:s["e"],typesNames:{[s["e"].running]:"Biegi",[s["e"].mountain_running]:"Biegi górskie",[s["e"].ski_running]:"Biegi narciarskie",[s["e"].ocr]:"OCR",[s["e"].nordic_walking]:"Nordic Walking",[s["e"].duathlon]:"Duathlon",[s["e"].swimrun]:"Swimrun",[s["e"].cycling]:"Kolarstwo",[s["e"].mtb]:"MTB",[s["e"].adventure_trip]:"Rajdy przygodowe",[s["e"].rolls]:"Rolki",[s["e"].triathlon]:"Triathlon",[s["e"].skiing]:"Narciarstwo",[s["e"].swiming]:"Pływanie",[s["e"].water_sport]:"Sporty wodne",[s["e"].kids]:"Dziecięce",[s["e"].shooting]:"Strzelectwo",[s["e"].camp]:"Obozy",[s["e"].other]:"Inne"},competitionTypes:null,locationName:"",transferDeadlineMode:"start"}},computed:{startedTimeHour(){var t,e;return null!==(t=null===(e=this.form.startedTime)||void 0===e?void 0:e.format("HH:mm"))&&void 0!==t?t:""},provisionTimeHour(){var t,e;return null!==(t=null===(e=this.form.provisionTime)||void 0===e?void 0:e.format("HH:mm"))&&void 0!==t?t:""},preStartedTimeHour(){var t,e;return null!==(t=null===(e=this.form.preStartedTime)||void 0===e?void 0:e.format("HH:mm"))&&void 0!==t?t:""},transferDeadlineHour(){var t,e,a;return null!==(t=null===(e=this.form.transferDeadline)||void 0===e||null===(a=e.format)||void 0===a?void 0:a.call(e,"HH:mm"))&&void 0!==t?t:""},isCoordsCompetition(){return this.form.locationLat&&this.form.locationLng||this.form.location},isEditPage(){return"panel-competition-setting-info"===this.$route.name}},watch:{"form.location":{immediate:!0,handler(){this.$nextTick(()=>{this.locationName=this.form.location})}},"form.startedTime":{handler(t){this.form.transferAllowed&&"start"===this.transferDeadlineMode&&t&&(this.form.transferDeadline=t.clone?t.clone():t)}},"form.id":{immediate:!0,handler(){this.initTransferDeadlineMode()}}},created(){this.form.location&&this.isCoordsCompetition&&(this.locationName=this.form.location),this.createCompetitionTypes(),this.initTransferDeadlineMode()},methods:{cloneMoment(t){return t?t.clone?t.clone():t:null},initTransferDeadlineMode(){if(!this.form.transferAllowed||!this.form.transferDeadline)return void(this.transferDeadlineMode="start");const t=f()(this.form.transferDeadline),e=this.form.startedTime?f()(this.form.startedTime):null;e&&t.isSame(e,"minute")?this.transferDeadlineMode="start":this.transferDeadlineMode="custom"},setTransferAllowed(t){this.form.transferAllowed=t,t?(this.form.transferPrice||0===this.form.transferPrice||(this.form.transferPrice="0.00"),this.setTransferDeadlineMode(this.transferDeadlineMode||"start")):this.form.transferDeadline=null},setTransferDeadlineMode(t){this.transferDeadlineMode=t,"start"===t&&(this.form.transferDeadline=this.cloneMoment(this.form.startedTime),this.$delete(this.errors,"transferDeadline"))},save(){if(!this.form.isRemote&&!this.isValidateLocation())return this.$set(this.errors,"location","required field"),void this.$refs.location.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});!this.form.transferAllowed||"custom"!==this.transferDeadlineMode||this.form.transferDeadline&&f()(this.form.transferDeadline).isValid()&&this.transferDeadlineHour?(this.form.transferAllowed?"start"===this.transferDeadlineMode&&this.form.startedTime&&(this.form.transferDeadline=this.cloneMoment(this.form.startedTime)):this.form.transferDeadline=null,this.$emit("save")):this.$set(this.errors,"transferDeadline","required field")},isValidateLocation(){return this.form.location&&this.form.locationLat&&this.form.locationLng},updateCoords(t){this.form.locationLat=t.lat,this.form.locationLng=t.lng},createCompetitionTypes(){const t=[];for(const e of Object.values(this.types))t.push({text:this.typesNames[e],id:e});this.competitionTypes=t},setTimeInDate(t,e){const a=t.split(":"),n=a[0],i=a[1];let s;return s=e?e.clone().hour(n).minutes(i):f()().hour(n).minutes(i),s},changeStartedTime(t){const e=this.setTimeInDate(t,this.form.startedTime);this.form.startedTime=e},changeProvisionTime(t){const e=this.setTimeInDate(t,this.form.provisionTime);this.form.provisionTime=e},changePreStartedTime(t){const e=this.setTimeInDate(t,this.form.preStartedTime);this.form.preStartedTime=e},changeTransferDeadline(t){this.form.transferDeadline=this.setTimeInDate(t,this.form.transferDeadline)},cityWithoutSelect:Object(Fe["debounce"])((function(t){this.selectCity(t)}),500),selectCity(t){"string"===typeof t&&""!==t?(this.form.location=t,this.form.locationLat=52.142479791733464,this.form.locationLng=19.423828125000004):t?(this.form.location=t.city,this.form.locationLat=t.cityLat,this.form.locationLng=t.cityLng):(this.form.locationLat=0,this.form.locationLng=0,this.form.location=null)},onSearchBlur(){setTimeout(()=>{this.locationName=this.form.location},250)}}},Ph=Ih,Eh=(a("ed6e"),Object(U["a"])(Ph,bh,_h,!1,null,"28e5945c",null)),Th=Eh.exports,Nh={components:{PanelCompetitionForm:Th},props:{organizerId:{type:Number,required:!0}},data(){return{competition:{descriptionPl:"",location:"",locationLat:null,locationLng:null,name:"",provisionTime:null,remarksPl:"",startedTime:null,type:null,websitePl:"",isRemote:!1,preStartedTime:null,contactEmail:"",contactPhone:"",transferAllowed:!1,transferPrice:"0.00",transferDeadline:null,organizer:this.organizerId},errors:{}}},computed:Object(v["a"])({},Object(R["c"])(["competitions"])),methods:Object(v["a"])(Object(v["a"])({}
1,Object(R["b"])([g["y"]])),{},{async createCompetition(){try{const t=await this.CREATE_COMPETITION(this.competition);this.$router.push({name:"panel-competition-dashboard",params:this.competitions[t],alias:!0})}catch(t){this.errors=t}}})},Rh=Nh,Lh=(a("af7e"),Object(U["a"])(Rh,fh,hh,!1,null,"06605d8f",null)),Mh=Lh.exports,Dh=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"competition-edit"},[e("panel-competition-form",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e},save:function(e){return t.saveCompetition()}},model:{value:t.competitionToEdit,callback:function(e){t.competitionToEdit=e},expression:"competitionToEdit"}})],1)])},$h=[],Uh={components:{PanelCompetitionForm:Th},props:{competition:{type:Object,required:!0}},data(){return{competitionToEdit:{},errors:{}}},created(){this.competitionToEdit=Object(Ni["c"])(this.competition,["id","name","descriptionPl","location","locationLat","locationLng","provisionTime","remarksPl","startedTime","type","websitePl","isRemote","preStartedTime","contactEmail","contactPhone","transferAllowed","transferPrice","transferDeadline"]),null==this.competitionToEdit.transferAllowed&&(this.competitionToEdit.transferAllowed=!1),null==this.competitionToEdit.transferPrice&&(this.competitionToEdit.transferPrice="0.00")},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["ld"]])),{},{async saveCompetition(){try{await this.UPDATE_COMPETITION(this.competitionToEdit),this.$router.push({name:"panel-competition-dashboard",params:this.competitionToEdit,alias:!0,query:{showInfo:!0}})}catch(t){this.errors=t}}})},Bh=Uh,Fh=(a("4d57"),Object(U["a"])(Bh,Dh,$h,!1,null,"40cce9b2",null)),qh=Fh.exports,Hh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-settings"},[t.ready?[e("div",{ref:"messages"},[t.successMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.successMessage))])])]):t._e(),t.errorMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.errorMessage))])])]):t._e()],1),e("panel-competition-numbering-form",{attrs:{competition:t.competition,saving:t.saving,assigning:t.assigning},on:{save:t.saveSettings,assign:t.startAssign},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})]:e("div",{staticClass:"row mat32"},[t._m(0)]),e("modal",{ref:"previewModal",attrs:{size:"xl","body-class":"h-auto"},on:{"modal-close":t.onPreviewClose},scopedSlots:t._u([{key:"header",fn:function(){return[e("h3",{staticClass:"preview-modal__title"},[t._v("Podgląd numeracji")])]},proxy:!0},{key:"body",fn:function(){return[t.simulating?e("div",{staticClass:"preview-modal__loading"},[t._v("Trwa symulacja numeracji…")]):t.simulation?[t.simulation.errors&&t.simulation.errors.length?e("div",{staticClass:"preview-modal__errors"},t._l(t.simulation.errors,(function(a,n){return e("p",{key:"e-"+n},[t._v(t._s(a))])})),0):t._e(),t.simulation.warnings&&t.simulation.warnings.length?e("div",{staticClass:"preview-modal__warnings"},t._l(t.simulation.warnings,(function(a,n){return e("p",{key:"w-"+n},[t._v(t._s(a))])})),0):t._e(),e("p",{staticClass:"preview-modal__summary"},[t._v(" Przypisań: "+t._s(t.simulation.numbers?t.simulation.numbers.length:0)+" "),t.simulation.noProblems?e("span",[t._v(" — brak problemów")]):t._e()]),e("div",{staticClass:"preview-modal__table-wrap"},[e("table",{staticClass:"preview-modal__table"},[e("thead",[e("tr",[e("th",[t._v("Zawodnik")]),e("th",[t._v("Klasyfikacja")]),e("th",[t._v("Obecny")]),e("th",[t._v("Nowy")]),e("th",[t._v("Typ")]),e("th",[t._v("Uwagi")])])]),e("tbody",t._l(t.simulation.numbers||[],(function(a){return e("tr",{key:a.playerId},[e("td",[t._v(t._s(t.playerLabel(a)))]),e("td",[t._v(t._s(a.classificationName))]),e("td",[t._v(t._s(t.formatNumber(a.currentNumber)))]),e("td",[t._v(t._s(t.formatNumber(a.assignedNumber)))]),e("td",[t._v(t._s(t.typeLabel(a.type)))]),e("td",[t._v(t._s(t.rowNotes(a)
1))])])})),0)])])]:t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("div",{staticClass:"preview-modal__footer"},[e("base-button",{attrs:{btn2:"",disabled:t.confirming},on:{click:t.closePreview}},[t._v("Anuluj")]),e("base-button",{attrs:{btn1:"",loading:t.confirming,disabled:t.confirming||!t.canConfirmAssign},on:{click:t.confirmAssign}},[t._v(" Potwierdź nadanie ")])],1)]},proxy:!0}])})],2)},Gh=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],Wh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"numbering-form"},[e("panel-competition-form-box",{staticClass:"numbering-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"form-input__label"},[t._v("Metoda nadawania numerów startowych")]),e("panel-input-base-radio",{attrs:{name:"autoNumbers",option:{value:"auto",title:"Automatyczna"}},model:{value:t.form.autoNumbers,callback:function(e){t.$set(t.form,"autoNumbers",e)},expression:"form.autoNumbers"}}),e("div",{staticClass:"numbering-form__nested",class:{"numbering-form__nested--disabled":!t.isAuto}},[e("panel-input-checkbox",{attrs:{"checkbox-value":!0,name:"autoNumbersEmail",variant:"white",value:!1},model:{value:t.form.autoNumbersEmail,callback:function(e){t.$set(t.form,"autoNumbersEmail",e)},expression:"form.autoNumbersEmail"}},[t._v(" Wysyłaj numer startowy w automatycznej wiadomości z potwierdzeniem rejestracji ")])],1),e("panel-input-base-radio",{attrs:{name:"autoNumbers",option:{value:"manual",title:"Ręczna"}},model:{value:t.form.autoNumbers,callback:function(e){t.$set(t.form,"autoNumbers",e)},expression:"form.autoNumbers"}}),e("div",{staticClass:"numbering-form__nested",class:{"numbering-form__nested--disabled":t.isAuto}},[e("panel-input-base-radio",{attrs:{name:"numbersOrder",option:{value:"date",title:"Według daty rejestracji / opłaty"}},model:{value:t.form.numbersOrder,callback:function(e){t.$set(t.form,"numbersOrder",e)},expression:"form.numbersOrder"}}),e("panel-input-base-radio",{attrs:{name:"numbersOrder",option:{value:"alphabetic",title:"Alfabetycznie"}},model:{value:t.form.numbersOrder,callback:function(e){t.$set(t.form,"numbersOrder",e)},expression:"form.numbersOrder"}})],1)],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Automatyczne nadawanie numerów startowych odbywa się w momencie rejestracji lub opłaty za rejestrację, przez uczestnika. "),e("br"),e("br"),t._v(" Ręczne nadanie numerów pozwala przypisać numery alfabetycznie wg nazwisk uczestników. ")])])]),e("panel-competition-form-box",{staticClass:"numbering-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"form-input__label"},[t._v("Nadawanie numerów w klasyfikacjach płatnych")]),e("panel-input-base-radio",{attrs:{name:"numbersOnlyPayed",option:{value:"all",title:"Wszystkim zarejestrowanym"}},model:{value:t.form.numbersOnlyPayed,callback:function(e){t.$set(t.form,"numbersOnlyPayed",e)},expression:"form.numbersOnlyPayed"}}),e("panel-input-base-radio",{attrs:{name:"numbersOnlyPayed",option:{value:"paid",title:"Tylko opłaconym"}},model:{value:t.form.numbersOnlyPayed,callback:function(e){t.$set(t.form,"numbersOnlyPayed",e)},expression:"form.numbersOnlyPayed"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Numery mogą być nadawane wszystkim zarejestrowanym uczestnikom lub tylko opłaconym. Uczestnicy w klasyfikacjach bezpłatnych traktowani są jak opłaceni. ")])])]),t.hasCycle?e("panel-competition-form-box",{staticClass:"numbering-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"form-input__label"},[t._v("Zawody cykliczne")]),e("panel-input-base-radio",{attrs:{name:"numbersUsePrevious",option:{value:"previous",title:"Nadawaj uczestnikom ich numery z poprzednich zawodów w tym cyklu"}},model:{value:t.form.numbersUsePrevious,callback:function(e){t.$set(t.form,"numbersUsePrevious",e)},expression:"form.numbersUsePrevious"}}),e("div",{staticClass:"numbering-form__nested",class:{"numbering-form__nested--disabled":"previous"!==t.form.numbersUsePrevious}},[e("panel-input-checkbox",{attrs:{"checkbox-value":!0,name:"numbersOnlyPrevious",variant:"white",value:!1},model:{value:t.form.numbersOnlyPrevious,callback:function(e){t.$set(t.form,"numbersOnlyPrevious",e)},expression:"form.numbersOnlyPrevious"}},[t._v(" Pomiń zawodników bez numeru ")])],1),e("panel-input-base-radio",{attrs:{name:"numbersUsePrevious",option:{value:"new",title:"Nadawaj numery na nowo"}},model:{value:t.form.numbersUsePrevious,callback:function(e){t.$set(t.form,"numbersUsePrevious",e)},expression:"form.numbersUsePrevious"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Uczestnicy mogą otrzymać ten sam numer, którym posługiwali się w poprzednich zawodach z tego samego cyklu. ")])])]):t._e(),e("panel-competition-form-box",{staticClass:"numbering-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"form-input__label"},[t._v("Istniejące numery")]),e("panel-input-base-radio",{attrs:{name:"numbersKeep",option:{value:"keep",title:"Zachowaj"}},model:{value:t.form.numbersKeep,callback:function(e){t.$set(t.form,"numbersKeep",e)},expression:"form.numbersKeep"}}),e("panel-input-base-radio",{attrs:{name:"numbersKeep",option:{value:"reassign",title:"Nadaj na nowo"}},model:{value:t.form.numbersKeep,callback:function(e){t.$set(t.form,"numbersKeep",e)},expression:"form.numbersKeep"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Numery mogą być nadawane wszystkim uczestnikom lub tylko uczestnikom bez numeru. ")])])]),e("panel-competition-form-box",{staticClass:"numbering-form__box numbering-form__box--params mab16"},[e("div",{staticClass:"col-12 col-lg-8 numbering-form__params-main"},[e("p",{staticClass:"form-input__label"}
1,[t._v("Parametry nadawania numerów")]),e("div",{staticClass:"numbering-form__params-body"},[e("div",{staticClass:"numbering-form__presets-block"},[e("p",{staticClass:"numbering-form__preset-label"},[t._v("Wybierz z predefiniowanych parametrów")]),e("div",{staticClass:"numbering-form__presets"},t._l(t.presets,(function(a){return e("base-button",{key:a.id,staticClass:"numbering-form__preset",class:{"numbering-form__preset--active":t.activePreset===a.id},attrs:{short:""},on:{click:function(e){return t.applyPreset(a.id)}}},[t._v(" "+t._s(a.label)+" ")])})),1)]),e("div",{staticClass:"numbering-form__table"},[e("div",{staticClass:"numbering-form__table-head"},[e("div",{staticClass:"numbering-form__col-name-head"},[t._v("Klasyfikacja")]),e("div",{staticClass:"numbering-form__col-ranges"},[e("div",{staticClass:"numbering-form__col-from"},[t._v("Od nr")]),e("div",{staticClass:"numbering-form__col-sep numbering-form__col-sep--head"}),e("div",{staticClass:"numbering-form__col-to"},[t._v("Do nr")])])]),t._l(t.form.classifications,(function(a,n){return e("div",{key:a.id,staticClass:"numbering-form__row",class:{"numbering-form__row--disabled":!a.enabled}},[e("div",{staticClass:"numbering-form__row-main"},[e("label",{staticClass:"numbering-form__check"},[e("input",{attrs:{type:"checkbox"},domProps:{checked:a.enabled},on:{change:function(e){return t.toggleClassification(n,e.target.checked)}}}),e("span",{staticClass:"numbering-form__check-box"})]),e("div",{staticClass:"numbering-form__col-body"},[e("div",{staticClass:"numbering-form__col-name"},[e("p",{staticClass:"numbering-form__cls-name"},[t._v(t._s(a.name))]),e("p",{staticClass:"numbering-form__cls-meta"},[e("i",{staticClass:"fa fa-user",attrs:{"aria-hidden":"true"}}),e("span",[t._v(t._s(a.playersTotal))])])]),a.playersLimit>0?e("div",{staticClass:"numbering-form__col-limit"},[e("p",[t._v("Limit uczestników")]),e("p",[t._v(t._s(a.playersLimit))])]):t._e(),e("div",{staticClass:"numbering-form__col-ranges"},[e("div",{staticClass:"numbering-form__col-from"},[e("input",{directives:[{name:"model",rawName:"v-model.number",value:a.numbersMin,expression:"row.numbersMin",modifiers:{number:!0}}],staticClass:"numbering-form__number-input",attrs:{type:"number",min:"0",disabled:!a.enabled},domProps:{value:a.numbersMin},on:{input:function(e){e.target.composing||t.$set(a,"numbersMin",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),e("div",{staticClass:"numbering-form__col-sep"},[t._v("…")]),e("div",{staticClass:"numbering-form__col-to"},[e("input",{directives:[{name:"model",rawName:"v-model.number",value:a.numbersMax,expression:"row.numbersMax",modifiers:{number:!0}}],staticClass:"numbering-form__number-input",attrs:{type:"number",min:"0",disabled:!a.enabled},domProps:{value:a.numbersMax},on:{input:function(e){e.target.composing||t.$set(a,"numbersMax",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t.issuesById[a.id]?e("div",{staticClass:"numbering-form__callout",class:"numbering-form__callout--"+t.issuesById[a.id].type},["error"===t.issuesById[a.id].type?e("exclamation-triangle",{attrs:{width:24,height:24,fill:"#455A64"}}):e("exclamation-mark",{attrs:{width:24,height:24,fill:"#455A64"}}),e("p",[t._v(t._s(t.issuesById[a.id].text))])],1):t._e()])}))],2)])]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Możesz podzielić pulę numerów startowych pomiędzy klasyfikacje. Wybierz predefiniowaną metodę dzielenia lub ustaw własne parametry. ")])])]),e("div",{staticClass:"numbering-form__actions mat24 mab24"},[e("base-button",{attrs:{btn1:"",loading:t.assigning,disabled:t.saving||t.assigning||t.hasBlockingErrors},on:{click:t.onAssign}},[t._v(" Nadaj numery i zapisz ")]),e("base-button",{attrs:{btn2:"",loading:t.saving,disabled:t.saving||t.assigning||t.hasBlockingErrors},on:{click:t.onSave}},[t._v(" Zapisz ")])],1)],1)},Vh=[],Kh=a("b1a3"),Zh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-checkbox",class:["is-"+this.$props.variant]},[e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{name:t.name,type:"checkbox"},domProps:{value:t.checkboxValue,checked:Array.isArray(t.innerValue)?t._i(t.innerValue,t.checkboxValue)>-1:t.innerValue}
1,on:{change:[function(e){var a=t.innerValue,n=e.target,i=!!n.checked;if(Array.isArray(a)){var s=t.checkboxValue,o=t._i(a,s);n.checked?o<0&&(t.innerValue=a.concat([s])):o>-1&&(t.innerValue=a.slice(0,o).concat(a.slice(o+1)))}else t.innerValue=i},t.onChange]}}),e("span",[t._t("default")],2)]),e("span",{staticClass:"panel-input-error input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])])},Yh=[],Qh={name:"PanelInputCheckbox",props:{value:{type:null,default:""},checkboxValue:{type:null,default:""},name:{type:null,default:""},variant:{type:String,default:"primary"},error:{type:String,default:null}},data(){return{innerValue:""}},computed:Object(v["a"])({},Object(R["c"])(["say"])),watch:{innerValue(t){this.$emit("input",t)},value(t){this.innerValue=t}},created(){this.value&&(this.innerValue=this.value)},methods:{onChange(t){this.$emit("input",t.target.value)}}},Xh=Qh,Jh=(a("662d"),Object(U["a"])(Xh,Zh,Yh,!1,null,"409f8d2b",null)),tb=Jh.exports;const eb=[{id:"novalues",label:"Bez podziału"},{id:"uselimits",label:"Wg limitów"},{id:"every100",label:"Pule po 100"},{id:"every500",label:"Pule po 500"}];var ab={name:"PanelCompetitionNumberingForm",components:{PanelCompetitionFormBox:kh,PanelInputBaseRadio:Kh["default"],PanelInputCheckbox:tb,ExclamationMark:vc,ExclamationTriangle:Ic},props:{value:{type:Object,required:!0},competition:{type:Object,required:!0},saving:{type:Boolean,default:!1},assigning:{type:Boolean,default:!1}},data(){return{presets:eb,activePreset:null}},computed:{form:{get(){return this.value},set(t){this.$emit("input",t)}},hasCycle(){return Boolean(this.competition&&this.competition.cycle)},isAuto(){return"auto"===this.form.autoNumbers},issuesById(){const t={};return(this.form.classifications||[]).forEach(e=>{t[e.id]=this.rowIssue(e)}),t},hasBlockingErrors(){return Object.keys(this.issuesById).some(t=>{const e=this.issuesById[t];return e&&"error"===e.type})}},methods:{replaceClassifications(t){this.form=Object(v["a"])(Object(v["a"])({},this.form),{},{classifications:t})},toggleClassification(t,e){const a=(this.form.classifications||[])[t];if(!a)return;const n=Object(v["a"])(Object(v["a"])({},a),{},{enabled:e});e&&0===Number(a.numbersMin)&&0===Number(a.numbersMax)&&(n.numbersMin=1,n.numbersMax=9999);const i=this.form.classifications.slice();i.splice(t,1,n),this.replaceClassifications(i)},rowRange(t){return{min:Number(t.numbersMin)||0,max:Number(t.numbersMax)||0}},isInvalidRange(t){if(!t.enabled)return!1;const{min:e,max:a}=this.rowRange(t);return a<e},hasPartialOverlap(t){if(!t.enabled||this.isInvalidRange(t))return!1;const e=this.rowRange(t);return(this.form.classifications||[]).some(a=>{if(a.id===t.id||!a.enabled||this.isInvalidRange(a))return!1;const n=this.rowRange(a);return(e.min!==n.min||e.max!==n.max)&&(e.min<=n.max&&n.min<=e.max)})},poolSize(t){const{min:e,max:a}=this.rowRange(t);return!t.enabled||a<e?0:a-e+1},poolWarning(t){if(!t.enabled||this.isInvalidRange(t)||this.hasPartialOverlap(t))return!1;const e=Number(t.playersTotal)||0;return!(e<=0)&&this.poolSize(t)<e},rowIssue(t){return t.enabled?this.isInvalidRange(t)?{type:"error",text:"Numer Od nie może być większy niż Do"}:this.hasPartialOverlap(t)?{type:"error",text:"Zakres numerów nachodzi na inną klasyfikację"}:this.poolWarning(t)?{type:"warning",text:"Za mała liczba numerów dla zarejestrowanych uczestników"}:null:null},applyPreset(t){this.activePreset=t;let e=0;const a=(this.form.classifications||[]).map(a=>{const n=Object(v["a"])(Object(v["a"])({},a),{},{enabled:!0});if("novalues"===t)return n.numbersMin=1,n.numbersMax=9999,n;let i=100;if("every500"===t)i=500;else if("uselimits"===t){const t=Number(a.playersLimit)||0;i=t>0?t:Math.max(Number(a.playersTotal)||1,1)}return n.numbersMin=e+1,n.numbersMax=e+i,e+=i,n});this.replaceClassifications(a)},onSave(){this.hasBlockingErrors||this.$emit("save")},onAssign(){this.hasBlockingErrors||this.$emit("assign")}}},nb=ab,ib=(a("30aa"),Object(U["a"])(nb,Wh,Vh,!1,null,"7a352c31",null)),sb=ib.exports,ob=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-info-box"},[e("div",{staticClass:"panel-info-box-content"},[t._t("default")],2)])},rb=[],lb={},cb=lb,db=(a("4dee"),Object(U["a"])(cb,ob,rb,!1,null,"63adabee",null)),ub=db.exports;function pb(t){return Pt["a"].get(`competitions/${t}/numbering/settings`)}function mb(t,e){return Pt["a"].put(`competitions/${t}/numbering/settings`,e)}function fb(t,e={}){return Pt["a"].post(`competitions/${t}/numbering/simulate`,e)}function hb(t,e){return Pt["a"].post(`competitions/${t}/numbering/assign`,e)}
1const bb={new:"nowy",keep:"zachowany",prev:"z cyklu",skip:"pominięty"};function _b(){return{autoNumbers:"manual",autoNumbersEmail:!1,numbersOnlyPayed:"all",numbersUsePrevious:"new",numbersOnlyPrevious:!1,numbersOrder:"date",numbersKeep:"keep",classifications:[]}}var vb={name:"PanelCompetitionSettingNumbers",components:{PanelCompetitionNumberingForm:sb,PanelInfoBox:ub,Modal:$t["a"]},props:{competition:{type:Object,required:!0}},data(){return{ready:!1,saving:!1,assigning:!1,simulating:!1,confirming:!1,form:_b(),simulation:null,pendingClassificationIds:null,successMessage:"",errorMessage:""}},computed:{competitionId(){return this.competition.id},canConfirmAssign(){if(!this.simulation||!this.simulation.hash)return!1;const t=this.simulation.errors||[];return 0===t.length}},async created(){await this.loadSettings(),this.ready=!0},methods:{typeLabel(t){return bb[t]||t||"—"},playerLabel(t){const e=[t.lastname,t.firstname].filter(Boolean).join(" ").trim();return e||"#"+t.playerId},formatNumber(t){return null==t||""===t||0===t?"—":t},rowNotes(t){return[...t.errors||[],...t.warnings||[]].join(" ")},classificationNameById(t){const e=(this.form.classifications||[]).find(e=>String(e.id)===String(t));return e?e.name:t},stripHtml(t){return String(t).replace(/<br\s*\/?>/gi," ").replace(/<[^>]+>/g,"").trim()},normalizeNumbers(t){if(!t)return[];const e=Array.isArray(t)?t:Object.values(t);return e.map(t=>{const{classificationId:e,assignedNumber:a,currentNumber:n}=t,i=void 0!==a?a:t.new,s=void 0!==n?n:t.current;return{playerId:t.playerId,firstname:t.firstname||"",lastname:t.lastname||"",classificationId:e,classificationName:t.classificationName||this.classificationNameById(e)||"",currentNumber:s,assignedNumber:i,type:t.type,errors:t.errors||[],warnings:t.warnings||[]}})},normalizeWarnings(t){return t?Array.isArray(t)?t:Object.keys(t).map(e=>{const a=this.classificationNameById(e),n=this.stripHtml(t[e]);return a?`${a}: ${n}`:n}):[]},normalizeSimulation(t){const e=t&&t.numeration||t||{},a=this.normalizeNumbers(e.numbers),n=Array.isArray(e.errors)?e.errors.slice():[];return a.forEach(t=>{(t.errors||[]).forEach(t=>{t&&n.push(t)})}),{noProblems:Boolean(e.noProblems),errors:n,warnings:this.normalizeWarnings(e.warnings),numbers:a,hash:e.hash||null,alert:t&&t.alert||""}},scrollToMessages(){this.$nextTick(()=>{const t=this.$refs.messages;t&&"function"===typeof t.scrollIntoView?t.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,behavior:"smooth"})})},mapSettingsToForm(t){const e=t&&t.competitionSettings||t||{},a=t&&t.classifications||[];return{autoNumbers:!0===e.autoNumbers||1===e.autoNumbers||"1"===e.autoNumbers?"auto":"manual",autoNumbersEmail:Boolean(e.autoNumbersEmail),numbersOnlyPayed:!0===e.numbersOnlyPayed||1===e.numbersOnlyPayed||"1"===e.numbersOnlyPayed?"paid":"all",numbersUsePrevious:!0===e.numbersUsePrevious||1===e.numbersUsePrevious||"1"===e.numbersUsePrevious?"previous":"new",numbersOnlyPrevious:Boolean(e.numbersOnlyPrevious),numbersOrder:"alphabetic"===e.numbersOrder?"alphabetic":"date",numbersKeep:!1===e.numbersKeep||0===e.numbersKeep||"0"===e.numbersKeep?"reassign":"keep",classifications:a.map(t=>{const e=Number(t.numbersMin)||0,a=Number(t.numbersMax)||0;return{id:t.id,name:t.name,playersTotal:null!=t.playersTotal?t.playersTotal:0,playersNumbered:null!=t.playersNumbered?t.playersNumbered:0,playersLimit:null!=t.playersLimit?t.playersLimit:t.limit||0,hasNumbers:Boolean(t.hasNumbers),enabled:0!==e||0!==a,numbersMin:e,numbersMax:a}})}},buildPayload(){return{autoNumbers:"auto"===this.form.autoNumbers,autoNumbersEmail:Boolean(this.form.autoNumbersEmail),numbersOnlyPayed:"paid"===this.form.numbersOnlyPayed,numbersUsePrevious:"previous"===this.form.numbersUsePrevious,numbersOnlyPrevious:Boolean(this.form.numbersOnlyPrevious),numbersOrder:"alphabetic"===this.form.numbersOrder?"alphabetic":"date",numbersKeep:"keep"===this.form.numbersKeep,classifications:(this.form.classifications||[]).map(t=>({id:t.id,numbersMin:t.enabled&&Number(t.numbersMin)||0,numbersMax:t.enabled&&Number(t.numbersMax)||0}))}},enabledClassificationIds(){return(this.form.classifications||[]).filter(t=>t.enabled).map(t=>
1t.id)},normalizeError(t){return t?"string"===typeof t?t:t.error?t.error:t.message?t.message:"Wystąpił błąd":"Wystąpił błąd"},async loadSettings(){this.errorMessage="";try{const t=await pb(this.competitionId);this.form=this.mapSettingsToForm(t)}catch(t){this.errorMessage=this.normalizeError(t),this.form=_b()}},async saveSettings(){this.saving=!0,this.successMessage="",this.errorMessage="";try{await mb(this.competitionId,this.buildPayload()),this.successMessage="Ustawienia numeracji zostały zapisane",await this.loadSettings()}catch(t){this.errorMessage=this.normalizeError(t)}finally{this.saving=!1,this.scrollToMessages()}},async startAssign(){this.assigning=!0,this.simulating=!0,this.successMessage="",this.errorMessage="",this.simulation=null,this.pendingClassificationIds=this.enabledClassificationIds(),this.$refs.previewModal.openModal();try{await mb(this.competitionId,this.buildPayload());const t={};this.pendingClassificationIds.length&&(t.classificationIds=this.pendingClassificationIds);const e=await fb(this.competitionId,t);this.simulation=this.normalizeSimulation(e)}catch(t){this.simulation={noProblems:!1,errors:[this.normalizeError(t)],warnings:[],numbers:[],hash:null}}finally{this.simulating=!1,this.assigning=!1}},async confirmAssign(){if(this.canConfirmAssign){this.confirming=!0,this.errorMessage="";try{const t={hash:this.simulation.hash};this.pendingClassificationIds&&this.pendingClassificationIds.length&&(t.classificationIds=this.pendingClassificationIds);const e=await hb(this.competitionId,t),a=e&&null!=e.count?e.count:null;this.successMessage=null!=a?`Nadano numery (${a}).`:e&&e.message||e&&e.alert||"Numery zostały nadane",this.closePreview(),await this.loadSettings(),this.scrollToMessages()}catch(t){this.errorMessage=this.normalizeError(t),this.simulation&&(this.simulation=Object(v["a"])(Object(v["a"])({},this.simulation),{},{errors:[this.normalizeError(t),...this.simulation.errors||[]]})),this.scrollToMessages()}finally{this.confirming=!1}}},closePreview(){this.$refs.previewModal&&this.$refs.previewModal.closeModal(),this.onPreviewClose()},onPreviewClose(){this.simulation=null,this.pendingClassificationIds=null,this.simulating=!1}}},gb=vb,yb=(a("7b1d"),Object(U["a"])(gb,Hh,Gh,!1,null,"004f25b0",null)),Cb=yb.exports,wb=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{overflow:"hidden"}},[t.ready?e("div",[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"panel-competition-result-toolbar none-mobile"},[e("div",[e("label",{attrs:{for:""}},[t._v("Międzyczasy")]),Object.values(t.splitTime).length?e("div",[e("div",{staticClass:"list-header__switch row"},[e("div",{staticClass:"list-header__switch-btn col-5",class:{"list-header__switch-btn--right":t.isSplitTime},on:{click:function(e){t.isSplitTime=!t.isSplitTime}}},[t._v(" "+t._s(t.isSplitTime?"SPLIT":"LAP")+" ")])])]):t._e()]),e("div",{staticClass:"classificationsWrap"},[e("label",{attrs:{for:""}},[t._v("Klasyfikacja")]),e("base-input-select",{staticClass:"minimal",attrs:{options:t.classificationsBy(t.competition),clearable:!1,label:"Klasyfikacja","label-select":"namePl"},model:{value:t.selectedClassification,callback:function(e){t.selectedClassification=e},expression:"selectedClassification"}})],1),e("div",{staticClass:"categoryWrap"},[t.selectedClassification?e("label",{attrs:{for:""}},[t._v("Kategoria")]):t._e(),t.selectedClassification?e("base-input-select",{staticClass:"minimal",attrs:{options:t.categoriesBy(t.selectedClassification),label:"Kategoria","label-select":"namePl"},model:{value:t.selectedCategory,callback:function(e){t.selectedCategory=e},expression:"selectedCategory"}}):t._e()],1),e("div",{staticClass:"searchWrap"},[e("label",{attrs:{for:""}},[t._v(" ")]),e("base-input-text-with-icon",{staticClass:"minimal",attrs:{label:"Szukaj",icon:"fas fa-search",badge:"fas fa-times"},on:{"icon-click":function(e){t.search=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),e("div",[e("label",{attrs:{for:""}},[t._v("Wgraj wyniki z pliku")]),e("base-button",{staticClass:"minimal",attrs:{btn2:"",icon:"fas fa-cloud-upload-alt"},on:{click:function(e){return t.$router.push({name:"panel-competition-result-legacy",params:t.competition,alias:!0})}}},[t._v("Plik CSV")])],1),e("div",[e("label",{attrs:{for:""}},[t._v("Udostępnij wyniki")]),e("base-button",{staticClass:"minimal",attrs:{btn2:"",icon:"fas fa-file-export"},on:{click:t.openShareModal}},[t._v("Pobierz, wyślij...")])],1)]),e("div",{staticClass:"panel-competition-result-toolbar-mobile none-desktop"},[e("div",{staticClass:"wrap"},[e("label",{attrs:{for:""}},[t._v("Klasyfikacja")]),e("base-input-select",{staticClass:"minimal",attrs:{options:t.classificationsBy(t.competition),clearable:!1,label:"Klasyfikacja","label-select":"namePl"},model:{value:t.selectedClassification,callback:function(e){t.selectedClassification=e},expression:"selectedClassification"}})],1),e("div",{staticClass:"buttons-wrap"}
1,[e("div",{staticClass:"btn",class:{"is-active":"search"===t.buttonsTabs},attrs:{id:"search"},on:{click:function(e){return t.showCompetitionPanel("search")}}},[e("span",{staticClass:"icon"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.8536 20.1464L16.9994 16.2923C18.2445 14.882 19 13.0292 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C13.0292 19 14.882 18.2445 16.2923 16.9994L20.1464 20.8536C20.3417 21.0488 20.6583 21.0488 20.8536 20.8536C21.0488 20.6583 21.0488 20.3417 20.8536 20.1464ZM18 11C18 14.866 14.866 18 11 18C7.13401 18 4 14.866 4 11C4 7.13401 7.13401 4 11 4C14.866 4 18 7.13401 18 11Z",fill:"white"}})]),e("div",{staticClass:"circle",class:{"is-active":""!==t.search}})]),e("span",{staticClass:"text"},[t._v("Szukaj")])]),e("div",{staticClass:"btn",class:{"is-active":"splitTime"===t.buttonsTabs},attrs:{id:"splitTime"},on:{click:function(e){return t.showCompetitionPanel("splitTime")}}},[e("span",{staticClass:"icon"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.9069 14.7906C16.0674 14.5659 16.0153 14.2536 15.7906 14.0931L12.4355 11.6966L10.9824 6.36844C10.9097 6.10203 10.6349 5.94496 10.3684 6.01762C10.102 6.09028 9.94496 6.36515 10.0176 6.63156L11.5176 12.1316C11.5479 12.2427 11.6157 12.3399 11.7094 12.4069L15.2094 14.9069C15.4341 15.0674 15.7464 15.0153 15.9069 14.7906Z",fill:"white"}})])]),e("span",{staticClass:"text"},[t._v("Międzyczasy")])]),e("div",{staticClass:"btn",class:{"is-active":"categories"===t.buttonsTabs},attrs:{id:"categories"},on:{click:function(e){return t.showCompetitionPanel("categories")}}},[e("span",{staticClass:"icon"},[e("svg",{attrs:{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.5 22C6.97715 22 2.5 17.5228 2.5 12C2.5 6.47715 6.97715 2 12.5 2C18.0228 2 22.5 6.47715 22.5 12C22.5 17.5228 18.0228 22 12.5 22ZM12.5 21C17.4706 21 21.5 16.9706 21.5 12C21.5 7.02944 17.4706 3 12.5 3C7.52944 3 3.5 7.02944 3.5 12C3.5 16.9706 7.52944 21 12.5 21ZM6.5 9.5C6.5 9.77614 6.72386 10 7 10H18C18.2761 10 18.5 9.77614 18.5 9.5C18.5 9.22386 18.2761 9 18 9H7C6.72386 9 6.5 9.22386 6.5 9.5ZM9 13C8.72386 13 8.5 12.7761 8.5 12.5C8.5 12.2239 8.72386 12 9 12H16C16.2761 12 16.5 12.2239 16.5 12.5C16.5 12.7761 16.2761 13 16 13H9ZM10.5 15.5C10.5 15.7761 10.7239 16 11 16H14C14.2761 16 14.5 15.7761 14.5 15.5C14.5 15.2239 14.2761 15 14 15H11C10.7239 15 10.5 15.2239 10.5 15.5Z",fill:"white"}})]),e("div",{staticClass:"circle",class:{"is-active":null!==t.selectedCategory}})]),e("span",{staticClass:"text"},[t._v("Kategoria")])]),e("div",{staticClass:"btn",class:{"is-active":"download"===t.buttonsTabs},attrs:{id:"download"},on:{click:t.openShareModal}},[e("span",{staticClass:"icon"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.5 9.00003C19.2239 9.00003 19 8.77617 19 8.50003V7.00003H15.5C15.2239 7.00003 15 6.77617 15 6.50003V3.00003H6.5C5.67157 3.00003 5 3.6716 5 4.50003V19.5C5 20.3285 5.67157 21 6.5 21H17.5C18.3284 21 19 20.3285 19 19.5V17.5C19 17.2239 19.2239 17 19.5 17C19.7761 17 20 17.2239 20 17.5V19.5C20 20.8807 18.8807 22 17.5 22H6.5C5.11929 22 4 20.8807 4 19.5V4.50003C4 3.11931 5.11929 2.00003 6.5 2.00003H15.472C15.6048 1.99161 15.7429 2.03587 15.8536 2.14647L19.8536 6.14647C19.9642 6.25708 20.0084 6.39526 20 6.528V8.50003C20 8.77617 19.7761 9.00003 19.5 9.00003ZM18.2929 13H10.4861C10.21 13 9.98612 12.7762 9.98612 12.5C9.98612 12.2239 10.21 12 10.4861 12H18.2929L16.1464 9.85358C15.9512 9.65832 15.9512 9.34173 16.1464 9.14647C16.3417 8.95121 16.6583 8.95121 16.8536 9.14647L19.8536 12.1465C20.0488 12.3417 20.0488 12.6583 19.8536 12.8536L16.8536 15.8536C16.6583 16.0488 16.3417 16.0488 16.1464 15.8536C15.9512 15.6583 15.9512 15.3417 16.1464 15.1465L18.2929 13ZM16 6.00003V3.70713
1L18.2929 6.00003H16Z",fill:"white"}})])]),e("span",{staticClass:"text"},[t._v("Pobierz")])])]),e("div",{staticClass:"buttons-content-wrap",class:{"is-active":null!==t.buttonsTabs}},[e("div",{staticClass:"buttons-content",class:{"is-active":"search"===t.buttonsTabs}},[e("base-input-text-with-icon",{staticClass:"minimal",attrs:{label:"Szukaj",icon:"fas fa-search",badge:"fas fa-times"},on:{"icon-click":function(e){t.search=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),e("div",{staticClass:"buttons-content",class:{"is-active":"splitTime"===t.buttonsTabs}},[Object.values(t.splitTime).length?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("div",{staticClass:"list-header__switch row"},[e("div",{staticClass:"list-header__switch-btn col-5",class:{"list-header__switch-btn--right":t.isSplitTime},on:{click:function(e){t.isSplitTime=!t.isSplitTime}}},[t._v(" "+t._s(t.isSplitTime?"SPLIT":"LAP")+" ")])]),t.isSplitTime?e("p",[t._v("Wyświelnany jest czas łączny (narastający)")]):e("p",[t._v("Wyświelnany jest czas odcinków lub okrążeń")])]):t._e()]),e("div",{staticClass:"buttons-content",class:{"is-active":"categories"===t.buttonsTabs}},[t.selectedClassification?e("base-input-select",{staticClass:"minimal",attrs:{options:t.categoriesBy(t.selectedClassification),label:"Kategoria","label-select":"namePl"},model:{value:t.selectedCategory,callback:function(e){t.selectedCategory=e},expression:"selectedCategory"}}):t._e()],1)])]),4===t.competition.status?e("div",{staticClass:"panel-competition-players-on-the-route"},[e("div",[t._v("Liczba uczestników na trasie")]),e("div",[e("div",[e("b",[t._v(t._s(t.classificationPlayersOnTheRoute))]),t._v(" w wybranej klasyfikacji ")])])]):t._e()])])]),e("div",{staticClass:"container-result"},[t.items.length?e("base-table",{staticClass:"table-list",attrs:{headers:t.headers,items:t.items,search:t.search,"sort-column-default":"0","sort-reverse-default":!1,"ignore-empty-sort":!0},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"table-list__row bg--dark"},t._l(t.headers,(function(n,i){return e("th",{key:i,staticClass:"table-list__header",class:{"table-list__header--second-cell":1===i,"table-list__header--first-cell":0===i,"d-none":1===i&&t.competition.isRemote&&4877!==t.competition.id||"meta_summary"===n.value&&t.isSplitTime},on:{click:function(t){return a(i)}}},[t.isSplitTime||i!==t.headers.length-3||t.competition.isRemote?[t._v(" "+t._s(n.text)+" ")]:[t._v(" LAP ")]],2)})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a){return e("tr",{key:a.id,staticClass:"table-list__row",on:{click:function(e){return t.modal(a)}}},t._l(t.headers,(function(n,i){return e("td",{key:i,staticClass:"table-list__data",class:{"table-list__data--second-cell":1===i,"table-list__data--first-cell":0===i,"d-none":1===i&&t.competition.isRemote&&4877!==t.competition.id||"meta_summary"===n.value&&t.isSplitTime,"table-list__data--right-border":0===i&&t.competition.isRemote&&4877!==t.competition.id,"table-list__data--padding":"type"===n.value,"align-right":"isDeclaredTime"===n.value}},["meta_summary"===n.value?e("p",[t._v(" "+t._s(a.time)+" ")]):"isDeclaredTime"===n.value&&a.isDeclaredTime?e("p",{staticClass:"table-list__data--info-time"},[t._v(" "+t._s(t.say.declared_time)+" ")]):"isDeclaredDistance"===n.value&&a.isDeclaredDistance?e("p",{staticClass:"table-list__data--info-time"},[t._v(" "+t._s(t.say.declared_distance)+" ")]):"isDeclaredTime"===n.value&&!a.isDeclaredTime||"isDeclaredDistance"===n.value&&!a.isDeclaredDistance?e("p"):"distance"===n.value&&a[n.value]?[t._v(" "+t._s(a[n.value]+" km")+" ")]:0===i?[t.selectedCategory?e("div",[e("b",[t._v(t._s(t.selectedCategoryPosition(a.position)))])]):e("div",[t._v(t._s(a.position))])]:[t._v(" "+t._s(a[n.value])+" ")]],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[e("p",{staticClass:"bg--gray pa16"},[t._v(" "+t._s(t.say.no_search_results)+" "),e("b",[t._v(t._s(a))])])]}}],null,!1,218121288)}):t._e()],1)]):e("main",[e("div",{staticClass:"d-flex flex-column mat24"},[e("h2",{staticClass:"text-center"},[t._v(" "+t._s(t.say.results_are_loading)+" ")]),t._m(0)])]),e("modal",{ref:"modalName",attrs:{"max-height":""}
1,on:{"modal-close":t.defaultModalData},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" Korekta czasu ")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"selected-player-wrap"},[e("div",{staticClass:"selected-player-details",style:t.selectedPlayerMeasures&&t.selectedPlayerMeasures.length>0?"":"margin-bottom: 0"},[e("div",[e("label",{attrs:{for:""}},[t._v("Uczestnik")]),e("b",[t._v(t._s(t.selectedPlayer.name))])]),e("div",[e("label",{attrs:{for:""}},[t._v("Nr startowy")]),e("b",[t._v(t._s(t.selectedPlayer.number))])]),t.selectedPlayer.position?e("div",[e("label",{attrs:{for:""}},[t._v("Miejsce")]),e("b",[t._v(t._s(t.selectedPlayer.position))])]):t._e(),t.selectedCategory?e("div",[e("label",{attrs:{for:""}},[t._v("Miejsce w kategorii "+t._s(t.selectedCategory.namePl))]),e("b",[t._v(t._s(t.selectedCategoryPosition(t.selectedPlayer.position)))])]):t._e(),e("div",{staticClass:"selectedPlayerStatusSelect"},[e("base-input-select",{staticClass:"minimal",attrs:{options:t.playerStatus,clearable:!1,label:"Wybierz status","label-select":"name",error:t.errors.status},on:{"update:error":function(e){return t.$set(t.errors,"status",e)},input:t.updatePlayerStatus},model:{value:t.selectedPlayerStatus,callback:function(e){t.selectedPlayerStatus=e},expression:"selectedPlayerStatus"}})],1)]),t.selectedPlayerMeasures&&t.selectedPlayerMeasures.length>0?e("div",{staticClass:"selected-player-gates"},[e("div",{staticClass:"selected-player-gates__header"},[e("div",[t._v("Bramka")]),e("div",[t._v("Czas urządzenia")]),e("div",[t._v("Czas poprawiony")]),e("div",[t._v(" ")])]),t._l(t.selectedPlayerMeasures,(function(a,n){return e("div",{key:a.id,staticClass:"selected-player-gates__item",class:{"is-waiting":t.isWaiting}},[e("div",[e("span",{staticClass:"none-desktop"},[t._v("Bramka")]),t._v(t._s(t.gateName(a.gate))+" ("+t._s(a.gate)+") ")]),e("div",[e("span",{staticClass:"none-desktop"},[t._v("Czas urządz.")]),e("span",{class:a.invalidated?"line-through":""},[t._v(t._s(t.formatTime(a.deviceIntervalTime)))])]),e("div",[e("span",{staticClass:"none-desktop"},[t._v("Czas poprawiony")]),e("imask-input",{class:a.invalidated?"not-active":"",attrs:{placeholder:"HH:MM:SS.XXX",mask:"00:00:00.000",name:`${a.gate}_${a.id}`},on:{focus:function(e){return t.activeSaveButton(a.gate+"_"+a.id)}},model:{value:t.measures[a.gate+"_"+a.id],callback:function(e){t.$set(t.measures,a.gate+"_"+a.id,e)},expression:"measures[measure.gate + '_' + measure.id]"}})],1),e("div",[e("span",{staticClass:"none-desktop",staticStyle:{opacity:"0",visibility:"hidden"}},[t._v("Opcje")]),e("div",{staticClass:"d-flex items-center"},[e("button",{ref:a.gate+"_"+a.id,refInFor:!0,staticClass:"btn btn-disabled",on:{click:function(e){return t.editPlayerTime(a.gate,a.id,e)}}},[t._v(" Zapisz ")]),a.invalidated?e("div",{staticClass:"removeTime",on:{click:function(e){return t.invalidatedTime(a.id,!1)}}},[e("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2.00001 3.34222C3.68698 1.25541 6.23675 0 9.00001 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9.00001 18C4.23548 18 0.303942 14.2867 0.016742 9.55304C1.84961e-05 9.27741 0.209908 9.0404 0.485544 9.02368C0.761179 9.00696 0.998183 9.21685 1.01491 9.49248C1.27013 13.6991 4.76502 17 9.00001 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9.00001 1C6.53059 1 4.25396 2.12713 2.75426 4H5.50001C5.77615 4 6.00001 4.22386 6.00001 4.5C6.00001 4.77614 5.77615 5 5.50001 5H1.50001C1.22387 5 1.00001 4.77614 1.00001 4.5V0.5C1.00001 0.223858 1.22387 0 1.50001 0C1.77615 0 2.00001 0.223858 2.00001 0.5V3.34222Z",fill:"#455A64"}})])]):e("div",{staticClass:"removeTime",on:{click:function(e){return t.invalidatedTime(a.id,!0)}}},[e("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M16 15.2929L20.1464 11.1464C20.3417 10.9512 20.6583 10.9512 20.8536 11.1464C21.0488 11.3417 21.0488 11.6583 20.8536 11.8536L16.7071 16L20.8536 20.1464C21.0488 20.3417 21.0488 20.6583 20.8536 20.8536C20.6583 21.0488 20.3417 21.0488 20.1464 20.8536L16 16.7071L11.8536 20.8536C11.6583 21.0488 11.3417 21.0488 11.1464 20.8536C10.9512 20.6583 10.9512 20.3417 11.1464 20.1464L15.2929 16L11.1464 11.8536C10.9512 11.6583 10.9512 11.3417 11.1464 11.1464C11.3417 10.9512 11.6583 10.9512 11.8536 11.1464L16 15.2929Z",fill:"#455A64"}})])])])])])}))],2):t._e()]),e("div",{staticClass:"selected-player-addtime"},[e("b",{staticClass:"title"},[t._v("Dodaj czas")]),e("div",{staticClass:"selected-player-addtimeWrap"},[e("div",{staticClass:"selected-player-addtime__header"},[e("div",[t._v("Bramka pomiarowa")]),e("div",[t._v("Czas")]),e("div",[t._v(" ")])]),e("div",{staticClass:"selected-player-addtime__item",class:{"
1is-waiting":t.isWaiting}},[e("div",[e("base-input-select",{staticClass:"minimal",attrs:{options:t.gates,clearable:!1,label:"Wybierz bramkę pomiarową","label-select":"name",error:t.errors.gate},on:{"update:error":function(e){return t.$set(t.errors,"gate",e)}},model:{value:t.selectedPlayerGate,callback:function(e){t.selectedPlayerGate=e},expression:"selectedPlayerGate"}}),t.selectedPlayerGateCheckpoints?e("div",[e("label",{staticStyle:{display:"block","margin-bottom":"4px"}},[t._v("Punkty pomiarowe przypisane do bramki")]),e("b",t._l(t.selectedPlayerGateCheckpoints,(function(a,n){return e("span",{key:a.id},[0!=n?e("span",[t._v(", ")]):t._e(),e("span",[t._v(t._s(a.name))])])})),0)]):t._e()],1),e("div",[e("imask-input",{attrs:{placeholder:"HH:MM:SS.XXX",mask:"00:00:00.000"},model:{value:t.addGateTime,callback:function(e){t.addGateTime=e},expression:"addGateTime"}})],1),e("div",[e("button",{staticClass:"btn",on:{click:t.addPlayerTime}},[t._v("Dodaj")])])])])])]},proxy:!0},{key:"footer",fn:function(){return[e("div",[t._v(" ")]),e("button",{staticClass:"btn",on:{click:function(e){return t.$refs.modalName.closeModal()}}},[t._v("Zamknij")])]},proxy:!0}])}),e("modal",{ref:"shareModal",scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Udostępnianie wyników")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"shareUrl"},[e("p",[t._v("Lista wyników dostępna jest pod adresem")]),e("a",{attrs:{href:t.competitionPageLink,target:"_blank"}},[t._v(t._s(t.competitionPageLink))])]),e("div",{staticClass:"shareCarouselWrap",class:{"is-waiting":t.isWaiting}},[e("div",{staticClass:"shareCarousel",attrs:{id:"carousel"}},[e("div",{staticClass:"shareCarouselItem",class:{active:1===t.isShareItemActive},attrs:{"data-id":"0"},on:{click:function(e){t.isShareItemActive=1}}},[e("h4",[t._v("Pobierz wszyskie wyniki")]),e("p",[t._v("Pełna lista wyników, zebrana w jednym dokumencie")])]),e("div",{staticClass:"shareCarouselItem",class:{active:2===t.isShareItemActive},attrs:{"data-id":"1"},on:{click:function(e){t.isShareItemActive=2}}},[e("h4",[t._v("Pobierz podium kategorii")]),e("p",[t._v("Lista medalowych miejsc w kategoriach")])]),e("div",{staticClass:"shareCarouselItem",class:{active:3===t.isShareItemActive},attrs:{"data-id":"2"},on:{click:function(e){t.isShareItemActive=3}}},[e("h4",[t._v("Wyślij do uczestników")]),e("p",[t._v("Lista wyników, uwzględniająca ustawione filtry")])]),t.competition.status>3&&t.resultsLiveLink.length>0?e("div",{staticClass:"shareCarouselItem",class:{active:4===t.isShareItemActive},attrs:{"data-id":"3"},on:{click:function(e){t.isShareItemActive=4}}},[e("h4",[t._v("Wyniki live")]),e("p",[t._v("Lista wyników na żywo")])]):t._e()])]),e("div",{staticClass:"shareContent",class:{"is-waiting":t.isWaiting}},[e("div",{staticClass:"shareContentItem",class:{active:1===t.isShareItemActive}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4"},[e("h3",[t._v("Format pliku")]),e("div",{staticClass:"radio-field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareFile,expression:"shareFile"}],staticClass:"d-none",attrs:{id:"pdf",type:"radio",value:"pdf"},domProps:{checked:t._q(t.shareFile,"pdf")},on:{change:function(e){t.shareFile="pdf"}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"pdf"}},[t._v("PDF")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareFile,expression:"shareFile"}],staticClass:"d-none",attrs:{id:"csv",type:"radio",value:"csv"},domProps:{checked:t._q(t.shareFile,"csv")},on:{change:function(e){t.shareFile="csv"}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"csv"}},[t._v("CSV")])])]),e("div",{staticClass:"col-12 col-md-5"},[e("h3",[t._v("Wyświetlanie międzyczasów")]),e("label",{staticClass:"label"},[t._v("Międzyczasy")]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-5"},[e("div",{staticClass:"list-header__switch row"},[e("div",{staticClass:"list-header__switch-btn col-5",class:{"list-header__switch-btn--right":t.isSplitTimeResults},on:{click:function(e){t.isSplitTimeResults=!t.isSplitTimeResults}}},[t._v(" "+t._s(t.isSplitTimeResults?"SPLIT":"LAP")+" ")])])]),e("div",{staticClass:"col-6"},[t._v(" "+t._s(t.isSplitTimeResults?"Wyświetlnany jest czas łączny (narastający)":"Wyświetlnany jest czas odcinków lub okrążeń")+" ")])])]),e("div",{staticClass:"col-md-3"},[t._v(" ")])])]),e("div",{staticClass:"shareContentItem",class:{active:2===t.isShareItemActive}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-5"},[e("h3",[t._v("Liczba miejsc dla każdej kategorii")]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-5"},[e("label",{staticClass:"label",attrs:{for:""}},[t._v("Kategoria open")]),e("base-input-text",{model:{value:t.place_open,callback:function(e){t.place_open=e},expression:"place_open"}})],1),e("div",{staticClass:"col-12 col-md-5"},[e("label",{staticClass:"label",attrs:{for:""}},[t._v("Kategoria wiekowe")]),e("base-input-text",{model:{value:t.place_category,callback:function(e){t.place_category=e},expression:"place_category"}})],1)])])]),e("div",{staticClass:"row",staticStyle:{"margin-top":"24px"}},[e("div",{staticClass:"col-12 col-md-6"},[e("h3",[t._v("Czy zawodnicy z klasyfikacji open mają pojawić się w kategoriach wiekowych?")]),e("div",{staticClass:"radio-field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.repeat,expression:"repeat"}],staticClass:"d-none",attrs:{id:"yes_1",type:"radio",value:"yes_1"},domProps:{value:1,checked:t._q(t.repeat,1)},on:{change:function(e){t.repeat=1}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"yes_1"}},[t._v("Tak")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.repeat,expression:"repeat"}],staticClass:"d-none",attrs:{id:"no_1",type:"radio",value:"no_1"},domProps:{value:0,checked:t._q(t.repeat,0)},on:{change:function(e){t.repeat=0}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"no_1"}},[t._v("Nie")])])]),e("div",{staticClass:"col-12 col-md-6"},[e("h3",[t._v("Czy na liście ma pojawić się podium z każdej klasyfikacji?")]),e("div",{staticClass:"radio-field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.all_classification,expression:"all_classification"}],staticClass:"d-none",attrs:{id:"all_classification_yes_1",type:"radio",value:"yeall_classification_yes_1s_1"},domProps:{value:1,checked:t._q(t.all_classification,1)},on:{change:function(e){t.all_classification=1}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"all_classification_yes_1"}},[t._v("Tak")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.all_classification,expression:"all_classification"}],staticClass:"d-none",attrs:{id:"all_classification_no_1",type:"radio",value:"all_classification_no_1"}
1,domProps:{value:0,checked:t._q(t.all_classification,0)},on:{change:function(e){t.all_classification=0}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"all_classification_no_1"}},[t._v("Nie")])])])])]),e("div",{staticClass:"shareContentItem",class:{active:3===t.isShareItemActive}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-5"},[e("h3",{staticStyle:{"margin-bottom":"24px"}},[t._v("Wybierz formę wysyłki")]),e("div",{staticClass:"radio-field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareResultsType,expression:"shareResultsType"}],staticClass:"d-none",attrs:{id:"email",disabled:t.competition.status<5,type:"radio",value:"email"},domProps:{checked:t._q(t.shareResultsType,"email")},on:{change:function(e){t.shareResultsType="email"}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"email"}},[t._v("Email"),t.competition.status<5?e("small",[t._v("Wysyłka możliwa tylko, gdy zawody są w statusie: "),e("b",[t._v("oficjalnym, nieoficjalnym")])]):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareResultsType,expression:"shareResultsType"}],staticClass:"d-none",attrs:{id:"sms",disabled:t.competition.status<5,type:"radio",value:"sms"},domProps:{checked:t._q(t.shareResultsType,"sms")},on:{change:function(e){t.shareResultsType="sms"}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"sms"}},[t._v("SMS "),t.competition.status<5?e("small",[t._v("Wysyłka możliwa tylko, gdy zawody są w statusie: "),e("b",[t._v("oficjalnym, nieoficjalnym")])]):t._e()])])]),Object.keys(t.smsQuantity).length>0?e("div",{staticClass:"col-12 col-md-5"},[e("h3",{staticStyle:{"margin-bottom":"8px"}},[t._v(" Sms zostaną wysłane do "),e("b",[t._v(t._s(t.smsQuantity.smsesCount))]),t._v(" uczestników ")]),e("p",[t._v(" Opłata wynosi: "),e("b",[t._v(t._s(t.smsQuantity.price)+" zł")])]),e("p",[t._v("Wysyłana treść:")]),e("p",[t._v(' "'),e("b",[t._v(t._s(t.smsQuantity.information))]),t._v('" ')])]):t._e()]),t.shareError?e("p",{staticClass:"share-feedback share-feedback--error"},[t._v(t._s(t.shareError))]):t._e(),t.shareSuccess?e("p",{staticClass:"share-feedback share-feedback--success"},[t._v(t._s(t.shareSuccess))]):t._e()]),t.competition.status>3&&t.resultsLiveLink.length>0?e("div",{staticClass:"shareContentItem",class:{active:4===t.isShareItemActive}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("h3",{staticStyle:{"margin-bottom":"8px"}},[t._v("Wyniki live")]),e("ul",t._l(t.resultsLiveLink,(function(a,n){return e("li",{key:n,staticStyle:{"margin-bottom":"16px"}},[e("b",[t._v(t._s(a.name)+" ("+t._s(a.short)+")")]),e("a",{staticStyle:{display:"block"},attrs:{href:a.url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(a.url))])])})),0)])])]):t._e()])]},proxy:!0},{key:"footer",fn:function(){return[e("button",{staticClass:"btn",class:{"is-waiting":t.isWaiting},on:{click:function(e){return t.$refs.shareModal.closeModal()}}},[t._v(" Anuluj ")]),3===t.isShareItemActive?e("button",{staticClass:"btn btn-primary",class:{"is-waiting":t.isWaiting},on:{click:t.downloadResultsWrap}},[t._v(" Wyślij ")]):4!==t.isShareItemActive?e("button",{staticClass:"btn btn-primary",class:{"is-waiting":t.isWaiting},on:{click:t.downloadResultsWrap}},[t._v(" Pobierz ")]):t._e()]},proxy:!0}])}),t.loading?e("div",{staticClass:"loader"},[e("div",{staticClass:"loader__backdrop"}),t._m(1)]):t._e()],1)},kb=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat16 lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],xb=a("3f1c"),Ob={name:"PanelCompetitionResult",components:{Modal:$t["a"],"imask-input":xb["a"]},mixins:[bi["a"]],props:{id:{type:Number,required:!0}},data(){return{ready:!1,loading:!1,search:"",selectedClassification:null,selectedCategory:null,headersDefault:[{text:"",value:"position"},{text:"Nr",value:"number"},{text:"Nazwisko i imię",value:"name"},{text:"Płeć",value:"gender"},{text:"Kraj",value:"country"},{text:"Miejscowość",value:"city"},{text:"Klub",value:"clubname"},{text:"",value:"isDeclaredTime"},{text:"Czas",value:"time"}],positions:[],splitTime:{},lapTime:{},isSplitTime:!0,remoteConfig:{},selectedPlayer:null,selectedPlayerGate:null,selectedPlayerGateCheckpoints:null,selectedPlayerMeasures:null,selectedPlayerStatus:null,addGateTime:null,measures:{},isWaiting:!1,errors:{},buttonsTabs:null,isShareItemActive:1,shareFile:"pdf",shareResultsType:"email",shareError:null,shareSuccess:null,smsQuantity:{},isSplitTimeResults:!0,place_open:3,place_category:3,all_classification:0,repeat:0,playerStatus:[{value:0,name:"Udział"},{value:1,name:"Nie wystartował"},{value:2,name:"Nie Ukończył"},{value:3,name:"Dyskwalifikacja"}]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","competitions","competitionsSettings","classifications","classificationsBy","categoriesBy","checkpointsBy","playersBy","results","gatesBy"])),{},{gates(){return this.gatesBy(this.checkpoints)},classification(){return this.classifications[this.classificationId]},competitionSetting(){return this.competitionsSettings[this.id]},competition(){return this.competitions[this.id]},classificationId(){return this.selectedClassification?this.selectedClassification.id:this.classificationsBy(this.competition)[0].id},categories(){return this.categoriesBy(this.classification)},ageCategories(){return this.categories.filter(t=>!t.special)},specialCategories(){return this.categories.filter(t=>t.special)},checkpoints(){const t=(t,e)=>t.number-e.number;return this.checkpointsBy(this.classification).sort(t)},checkpointsHeaders(){if(!this.competition.isRemote){const t=t=>t.number>0;return this.checkpoints.filter(t)}return[]},headers(){const t=this.checkpointsHeaders.map(t=>({text:t.name,value:"checkpoint_"+t.id}));if(!this.competition.isRemote){const e=this.headersDefault.filter(t=>"Czas"!==t.text),a=[{text:"Meta",value:"meta_summary"}],n=Object(w["b"])(t,t.length,a);return Object(w["b"])(e,7,n)}if(!this.remoteConfig.isTime){const t=this.headersDefault.find(t=>"Czas"===t.text);t.value="distance",t.text="Dystans";const e=this.headersDefault.find(t=>"isDeclaredTime"===t.value);e.value="isDeclaredDistance"}return Object(w["b"])(this.headersDefault,7,t)},players(){return this.playersBy(this.classification)},items(){const t=this.players.filter(t=>this.selectedCategory?t.category.includes(this.selectedCategory.id):!this.selectedClassification||t.classification===this.selectedClassification.id),e=t=>{if("string"===typeof t&&t.startsWith("P")){const e=t.match(/P(?:\d+Y)?(?:\d+M)?(?:(\d+)D)?T(\d+)H(\d+)M(\d+)S(\d{3})/);if(e){const[,t="0",a,n,i,s]=e,o=String(s).padStart(3,"0"),r=String(i).padStart(2,"0"),l=String(n).padStart(2,"0"),c=String(a).padStart(2,"0");return`${String(t).padStart(1,"0")} ${c}:${l}:${r}.${o}`}}return f()(t,"[P][Y][M]D[D][T]HH[H]mm[M]ss[S]SSS").format("D HH:mm:ss.SSS")},a=t=>this.positions&&this.positions.findIndex(e=>e===t);let n=0;const i=[];for(const d of t){n+=1;
1const t=a(d.id),u={id:d.id,position:void 0!==t&&-1!==t?t+1:null,name:`${d.lastname} ${d.firstname}`,gender:d.gender,number:d.playerNumber,country:d.country,city:d.city,clubname:d.clubname,classificationId:d.classification,isDeclaredTime:"declared"===d.timeType,time:this.$options.filters.asStoper(d.time),distance:d.distance,isDeclaredDistance:"declared"===d.distanceType,status:d.status};if(this.checkpointsHeaders.length){let t=0;for(const a of this.checkpointsHeaders){var o,r;let n="";const i=f.a.duration(e(null===(o=this.splitTime[u.id])||void 0===o||null===(r=o[t])||void 0===r?void 0:r.time));if(this.isSplitTime)n=this.$options.filters.asStoper(i);else{var l,c;const a=f.a.duration(e(null===(l=this.lapTime[u.id])||void 0===l||null===(c=l[t])||void 0===c?void 0:c.time));n=this.$options.filters.asStoper(a)}1!==a.number&&([n]=n.split(".")),u["checkpoint_"+a.id]=n,[s["h"],s["g"],s["i"]].includes(i.valueOf())&&(u.position=null,u["checkpoint_"+a.id]=this.$options.filters.asStoper(i)),t++}}0!==d.playerNumber&&i.push(u)}return i},categoryItems(){return Object(Fe["sortBy"])(this.items,t=>t[this.headers[0].value])},competitionPageLink(){const t=window.location.origin,{href:e}=this.$router.resolve({name:"minisite-results-pick-classification",params:this.competition,alias:!0});return`${t}${e}`},resultsLiveLink(){const t=this.classificationsBy(this.competition),e=[];for(const a of t){const t=window.location.origin,n={name:this.competition.name,id:this.competition.id,classificationId:a.id},{href:i}=this.$router.resolve({name:"panel-competition-results-live",params:n,alias:!0}),s={name:a.namePl,short:a.short,url:`${t}${i}`};e.push(s)}return e},classificationPlayersOnTheRoute(){return this.items.filter(t=>null===t.position&&0===t.status).length}}),watch:{async isSplitTime(){this.isSplitTime||Object.values(this.lapTime).length||(this.ready=!1,this.lapTime=await this.READ_CLASSIFICATION_RESULTS_LAP(this.classificationId),this.ready=!0)},selectedClassification(){this.bootstrap(),this.selectedCategory=null},selectedPlayerGate(){this.selectedPlayerGate&&this.selectedPlayerCheckpoints()},shareResultsType(){this.shareError=null,this.shareSuccess=null,"sms"===this.shareResultsType?this.checkSmsQuantity():this.smsQuantity={}},isShareItemActive(){this.shareError=null,this.shareSuccess=null}},async created(){await this.READ_COMPETITION_CLASSIFICATIONS(this.competition.id),this.selectedClassification=this.classifications[this.classificationId]},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Lb"],g["Rb"],g["xb"],g["Bb"],g["yb"],g["Fb"],g["Db"],g["Gb"],g["Zb"],g["xc"],g["M"],g["td"],g["rb"],g["Ac"],g["sd"]])),{},{async bootstrap(){this.ready=!1;const[{open:t},e]=await Promise.all([this.READ_CLASSIFICATION_RESULTS_POSITIONS_OPEN(this.classificationId),this.READ_CLASSIFICATION_RESULTS_SPLIT(this.classificationId),this.READ_CLASSIFICATION(this.classificationId),this.READ_CLASSIFICATION_PLAYERS(this.classificationId),this.READ_CLASSIFICATION_CHECKPOINTS(this.classificationId),this.READ_COMPETITION_GATES(this.competition.id),this.READ_RESULTS_EDIT_STATUS(this.competition.id)]);if(this.competition.isRemote){const t=await this.READ_DECLARE_RESULT_CONFIG(this.id);this.remoteConfig=t}this.positions=t,this.splitTime=e,this.ready=!0},modal(t){this.loading=!0,this.selectedPlayer=t,this.READ_PLAYERS_MEASURES(t.id).then(t=>{this.selectedPlayerMeasures=t;for(const e of this.selectedPlayerMeasures)this.measures[`${e.gate}_${e.id}`]=this.formatTime(e.manualIntervalTime);null!==this.selectedPlayer.status&&(this.selectedPlayerStatus=this.playerStatus[this.selectedPlayer.status]),this.loading=!1,this.$refs.modalName.openModal()})},updatePlayerStatus(){if(null!==this.selectedPlayer){const t={id:this.selectedPlayer.id,status:this.selectedPlayerStatus.value};this.UPDATE_PLAYERS(t).then(()=>{this.bootstrap().then(()=>{const t=this.items.find(t=>t.id===this.selectedPlayer.id);this.selectedPlayer=t})})}},selectedCategoryPosition(t){let e;return e=null!==t?this.categoryItems.findIndex(e=>e.position===t)+1:"-",e},defaultModalData(){this.selectedPlayer=null,this.selectedPlayerGate=null,this.selectedPlayerStatus=null,this.selectedPlayerMeasures=null,this.selectedPlayerGateCheckpoints=null},formatTime(t){if("string"===typeof t&&t.startsWith("P")){const e=t.match(/P(?:\d+Y)?(?:\d+M)?(?:(\d+)D)?T(\d+)H(\d+)M(\d+)S(\d{3})/);if(e){e[1];const t=e[2],a=e[3],n=e[4],i=e[5];return`${String(t).padStart(2,"0")}
1:${String(a).padStart(2,"0")}:${String(n).padStart(2,"0")}.${i}`}}return f()(t,"[P][Y][M]D[D][T]HH[H]mm[M]ss[S]SSS").format("HH:mm:ss.SSS")},gateName(t){const e=this.gates.find(e=>e.id===t);return e.name},selectedPlayerCheckpoints(){const t=this.checkpoints.filter(t=>t.gates.includes(this.selectedPlayerGate.id));this.selectedPlayerGateCheckpoints=t},editPlayerTime(t,e,a){this.isWaiting=!0;const n=f.a.duration(this.measures[`${t}_${e}`]).toISOString(),i={id:this.selectedPlayer.id,measure:{measure:e,result:n}};this.UPDATE_PLAYER_MEASURES(i).then(t=>{const n=this.selectedPlayerMeasures.findIndex(t=>t.id===e);this.selectedPlayerMeasures[n]=t,this.isWaiting=!1,a.target.classList.add("btn-success"),a.target.innerText="Zapisano",setTimeout((function(){a.target.classList.remove("btn-success"),a.target.innerText="Zapisz"}),2e3)}).then(()=>{this.bootstrap().then(()=>{const t=this.items.find(t=>t.id===this.selectedPlayer.id);this.selectedPlayer=t})}).catch(t=>{this.isWaiting=!1,console.error(t)})},addPlayerTime(){this.isWaiting=!0;const t=f.a.duration(this.addGateTime),e={id:this.selectedPlayer.id,measure:{gate:this.selectedPlayerGate?this.selectedPlayerGate.id:null,result:t}};this.CREATE_PLAYER_MEASURES(e).then(t=>{this.selectedPlayerMeasures.push(t),this.isWaiting=!1,this.addGateTime=null}).then(()=>{this.bootstrap().then(()=>{const t=this.items.find(t=>t.id===this.selectedPlayer.id);this.selectedPlayer=t})}).catch(t=>{this.isWaiting=!1,this.errors=t})},invalidatedTime(t,e){this.isWaiting=!0;const a={id:t,invalidated:e};this.INVALIDATED_PLAYER_MEASURES(a).then(()=>{this.selectedPlayerMeasures.find(e=>e.id===t).invalidated=e,this.bootstrap().then(()=>{const t=this.items.find(t=>t.id===this.selectedPlayer.id);this.selectedPlayer=t}),this.isWaiting=!1}).catch(t=>{this.isWaiting=!1,console.error(t)})},async downloadResults(t){this.isWaiting=!0;const e=await Pt["a"].get(`/classifications/${this.classificationId}/results`,{responseType:"blob",headers:{"Content-Type":""+("csv"===t?"text/csv":"application/pdf"),Accept:`${"csv"===t?"text":"application"}/${t}+${this.isSplitTimeResults?"split":"lap"}`},data:{}});if("csv"===t&&Object(Bl["c"])(`klasyfikacja-${this.classificationId}-${this.classification.short}-${this.classification.namePl.replace(/\s/g,"_")}-${this.isSplitTimeResults?"split":"lap"}`,e),"pdf"===t){const t=new Blob([e],{type:"application/pdf"}),a=document.createElement("a");a.href=window.URL.createObjectURL(t),a.download=`klasyfikacja-${this.classificationId}-${this.classification.short}-${this.classification.namePl.replace(/\s/g,"_")}-${this.isSplitTimeResults?"split":"lap"}.pdf`,a.click()}this.isWaiting=!1},async downloadPodiumResults(){this.isWaiting=!0;const t=await Pt["a"].get(`/classifications/${this.classificationId}/results?repeat=${this.repeat}&place_open=${this.place_open}&place_category=${this.place_category}&all_classification=${this.all_classification}`,{responseType:"blob",headers:{"Content-Type":"application/pdf",Accept:"application/pdf+podium"},data:{}}),e=new Blob([t],{type:"application/pdf"}),a=document.createElement("a");a.href=window.URL.createObjectURL(e),a.download=`klasyfikacja-${this.classificationId}-${this.classification.short}-${this.classification.namePl.replace(/\s/g,"_")}-podium-open_${this.place_open}-category_${this.place_category}-repeat_${this.repeat}-all_classification_${this.all_classification}.pdf`,a.click(),this.isWaiting=!1},normalizeShareError(t){const e="string"===typeof t?t:t&&(t.error||t.message),a={"No players with results and email found":"Nie znaleziono uczestników z wynikami i adresem e-mail","Competition must be in unofficial or official status":"Zawody muszą być w statusie nieoficjalnym lub oficjalnym"};return e&&a[e]?a[e]:e||"Wystąpił błąd podczas wysyłania wyników"},async sendResultsEmail(){this.isWaiting=!0,this.shareError=null,this.shareSuccess=null;try{const t=await Pt["a"].post(`/classifications/${this.classificationId}/results/email`);this.shareSuccess=t&&t.message||"Wyniki zostały wysłane do uczestników"}catch(t){this.shareError=this.normalizeShareError(t)}finally{this.isWaiting=!1}},async checkSmsQuantity(){this.isWaiting=!0,this.shareError=null;try{const t=await Pt["a"].post("/sms/quantity",{competition:this.competition.id,playersClassification:this.classificationId,type:"result"});this.smsQuantity=t}catch(t){this.smsQuantity={},this.shareError=this.normalizeShareError(t)}finally{this.isWaiting=!1}},async sendResultsSms(){this.isWaiting=!0,this.shareError=null,this.shareSuccess=null;try{const t=await Pt["a"].post("/sms/send",{competition:this.competition.id,user:this.smsQuantity.user,information:this.smsQuantity.information,playersClassification:this.classificationId,playersPay:this.smsQuantity.playersPay,type:"result"});window.location=t.link}catch(t){this.shareError=this.normalizeShareError(t),this.isWaiting=!1}},showCompetitionPanel(t){this.buttonsTabs!==t?this.buttonsTabs=t:this.buttonsTabs=null},activeSaveButton(t){Array.from(document.querySelectorAll(".selected-player-gates__item .btn")).forEac
1h((t,e)=>{t.classList.add("btn-disabled")}),this.$refs[t][0].classList.remove("btn-disabled")},resultsLive(){const t={name:this.competition.name,id:this.competition.id,classificationId:this.selectedClassification.id};this.$router.push({name:"panel-competition-results-live",params:t,alias:!0})},openShareModal(){this.shareError=null,this.shareSuccess=null,this.isWaiting=!1,this.$refs.shareModal.openModal(),setTimeout(()=>{this.addCarouselListener()},500)},async downloadResultsWrap(){1===this.isShareItemActive?await this.downloadResults(this.shareFile):2===this.isShareItemActive?await this.downloadPodiumResults():3===this.isShareItemActive&&"email"===this.shareResultsType?await this.sendResultsEmail():3===this.isShareItemActive&&"sms"===this.shareResultsType&&await this.sendResultsSms()},elementInViewport(t){const e=t.getBoundingClientRect();return e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},activeClassWatcher(){const t=document.getElementsByClassName("shareCarouselItem");for(const e in t){const{id:a}=t.item(e).dataset;this.elementInViewport(t.item(e))?(t.item(e).className="shareCarouselItem active",document.querySelectorAll(".shareContentItem")[a].className="shareContentItem active",this.isShareItemActive=parseInt(a)+1):(t.item(e).className="shareCarouselItem",document.querySelectorAll(".shareContentItem")[a].className="shareContentItem")}},addCarouselListener(){const t=document.getElementById("carousel");t.addEventListener("scroll",this.activeClassWatcher)}})},Ab=Ob,Sb=(a("9909"),Object(U["a"])(Ab,wb,kb,!1,null,"46032e69",null)),zb=Sb.exports,jb=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{overflow:"hidden"}},[t.ready?e("div",[e("div",{staticClass:"container"},[e("div",{staticClass:"row mat16"},[e("div",{staticClass:"col-12 col-md-8"},[e("h2",[t._v(t._s(t.competition.name)+" - "+t._s(t.classification.namePl))])]),e("div",{staticClass:"col-12 col-md-4 d-flex justify-content-end"},[e("base-button",{attrs:{btn9:"",icon:t.isZenMode?"fas fa-compress-alt":"fas fa-expand-alt"},on:{click:function(e){return t.SET_ZEN_MODE(!t.isZenMode)}}})],1)])]),e("div",{staticClass:"container-result"},[t.items.length?e("base-table",{staticClass:"table-list",attrs:{headers:t.headers,items:t.items,sortColumnDefault:"0",sortReverseDefault:!1},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"table-list__row bg--dark"},t._l(t.headers,(function(n,i){return e("th",{key:i,staticClass:"table-list__header",class:{"table-list__header--second-cell":1===i,"table-list__header--first-cell":0===i,"d-none":1===i&&t.competition.isRemote&&4877!==t.competition.id},on:{click:function(t){return a(i)}}},[t.isSplitTime||i!==t.headers.length-2||t.competition.isRemote?[t._v(" "+t._s(n.text)+" ")]:[t._v(" "+t._s(n.text)+"(lap) ")]],2)})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a){return e("tr",{key:a.id,staticClass:"table-list__row",class:{hidden:null===a.position}},t._l(t.headers,(function(n,i){return e("td",{key:i,staticClass:"table-list__data",class:{"table-list__data--second-cell":1===i,"table-list__data--first-cell":0===i,"d-none":1===i&&t.competition.isRemote&&4877!==t.competition.id,"table-list__data--right-border":0===i&&t.competition.isRemote&&4877!==t.competition.id,"table-list__data--padding":"type"===n.value,"align-right":"isDeclaredTime"===n.value}},["isDeclaredTime"===n.value&&a.isDeclaredTime?e("p",{staticClass:"table-list__data--info-time"},[t._v(" "+t._s(t.say.declared_time)+" ")]):"isDeclaredDistance"===n.value&&a.isDeclaredDistance?e("p",{staticClass:"table-list__data--info-time"},[t._v(" "+t._s(t.say.declared_distance)+" ")]):"isDeclaredTime"===n.value&&!a.isDeclaredTime||"isDeclaredDistance"===n.value&&!a.isDeclaredDistance?e("p"):"distance"===n.value&&a[n.value]?[t._v(" "+t._s(a[n.value]+" km")+" ")]:0===i?[t._v(" "+t._s(a.position)+" ")]:[t._v(" "+t._s(a[n.value])+" ")]],2)})),0)}))}}],null,!1,4187085555)}):t._e()],1)]):e("main",[e("div",{staticClass:"d-flex flex-column mat24"},[e("h2",{staticClass:"text-center"},[t._v(" "+t._s(t.say.results_are_loading)+" ")]),t._m(0)])])])},Ib=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat16 lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])}],Pb={name:"PanelCompetitionResultsLive",mixins:[bi["a"]],props:{id:{type:Number,required:!0},classificationId:{type:Number,required:!0}},data(){return{ready:!1,isLargeScreen:!1,headersDefault:[{text:"Open",value:"position"},{text:"Nr",value:"number"},{text:"Nazwisko i imię",value:"name"},{text:"Klub",value:"clubname"},{text:"Kat",value:"category"},{text:"Miejsce",value:"categoryPosition"}],positions:[],catPositions:[],splitTime:{},lapTime:{},isSplitTime:!0,remoteConfig:{},componentKey:0,items:[],polling:null}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","isZenMode","competitions","competitionsSettings","classifications","classificationsBy","categoriesBy","checkpointsBy","playersBy","results","gatesBy"])),{},{gates(){return this.gatesBy(this.checkpoints)},classification(){return this.classifications[this.classificationId]},competitionSetting(){return this.competitionsSettings[this.id]},competition(){return this.competitions[this.id]},categories(){return this.categoriesBy(this.classification)},ageCategories(){return this.categories.filter(t=>!t.special)},specialCategories(){return this.categories.filter(t=>t.special)},checkpoints(){const t=(t,e)=>t.number-e.number;return this.checkpointsBy(this.classification).sort(t)},checkpointsHeaders(){if(!this.competition.isRemote){const t=t=>t.number>0;return this.checkpoints.filter(t)}return[]},headers(){const t=this.checkpointsHeaders.map(t=>({text:t.name,value:"checkpoint_"+t.id}));if(!this.competition.isRemote){const e=this.headersDefault.filter(t=>"Czas"!==t.text);return Object(w["b"])(e,6,t)}if(!this.remoteConfig.isTime){const t=this.headersDefault.find(t=>"Czas"===t.text);t.value="distance",t.text="Dystans";const e=this.headersDefault.find(t=>"isDeclaredTime"===t.value);e.value="isDeclaredDistance"}return Object(w["b"])(this.headersDefault,6,t)},players(){return this.playersBy(this.classification)},categoryItems(){return Object(Fe["sortBy"])(this.items,t=>t[this.headers[0].value])}}),beforeDestroy(){clearInterval(this.polling)},async created(){await this.READ_COMPETITION_CLASSIFICATIONS(this.competition.id),this.bootstrap()},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["J"]])),Object(R["b"])([g["Lb"],g["Rb"],g["xb"],g["Bb"],g["yb"],g["Eb"],g["Fb"],g["Db"],g["Gb"],g["Zb"]])),{},{async bootstrap(){this.ready=!1;const[{open:t},e,a]=await Promise.all([this.READ_CLASSIFICATION_RESULTS_POSITIONS_OPEN(this.classificationId),this.READ_CLASSIFICATION_RESULTS_SPLIT(this.classificationId),this.READ_CLASSIFICATION_RESULTS_POSITIONS(this.classificationId),this.READ_CLASSIFICATION(this.classificationId),this.READ_CLASSIFICATION_PLAYERS(this.classificationId),this.READ_CLASSIFICATION_CHECKPOINTS(this.classificationId),this.READ_COMPETITION_GATES(this.competition.id)]);if(this.competition.isRemote){const t=await this.READ_DECLARE_RESULT_CONFIG(this.id
1);this.remoteConfig=t}this.positions=t,this.splitTime=e,this.catPositions=a,this.makeTableItems(),this.pollData(),this.ready=!0},makeTableItems(){const t=this.players.filter(t=>!this.classificationId||t.classification===this.classificationId),e=t=>{if("string"===typeof t&&t.startsWith("P")){const e=t.match(/P(?:\d+Y)?(?:\d+M)?(?:(\d+)D)?T(\d+)H(\d+)M(\d+)S(\d{3})/);if(e){const[,t="0",a,n,i,s]=e,o=String(s).padStart(3,"0"),r=String(i).padStart(2,"0"),l=String(n).padStart(2,"0"),c=String(a).padStart(2,"0");return`${String(t).padStart(1,"0")} ${c}:${l}:${r}.${o}`}}return f()(t,"[P][Y][M]D[D][T]HH[H]mm[M]ss[S]SSS").format("D HH:mm:ss.SSS")},a=t=>this.catPositions&&Object.keys(this.catPositions).length>0?this.catPositions.players[t]:null;let n=0;const i=[];for(const d of t){n+=1;const t=a(d.id),u=t?t.open:null,p=this.categories.find(t=>t.id===d.category[0])?this.categories.find(t=>t.id===d.category[0]):null,m=t?t["category_age_"+d.category[0]]:null,h=p&&p.short?p.short:"-",b={id:d.id,position:u,category:h,categoryPosition:m,name:`${d.lastname} ${d.firstname}`,gender:d.gender,number:d.playerNumber,country:d.country,city:d.city,clubname:d.clubname,classificationId:d.classification,isDeclaredTime:"declared"===d.timeType,time:this.$options.filters.asStoper(d.time),distance:d.distance,isDeclaredDistance:"declared"===d.distanceType,dsq:!1};if(this.checkpointsHeaders.length){let t=0;for(const a of this.checkpointsHeaders){var o,r;let n="";const i=f.a.duration(e(null===(o=this.splitTime[b.id])||void 0===o||null===(r=o[t])||void 0===r?void 0:r.time));if(this.isSplitTime)n=this.$options.filters.asStoper(i);else{var l,c;const a=f.a.duration(e(null===(l=this.lapTime[b.id])||void 0===l||null===(c=l[t])||void 0===c?void 0:c.time));n=this.$options.filters.asStoper(a)}1!==a.number&&([n]=n.split(".")),b["checkpoint_"+a.id]=n,[s["h"],s["g"],s["i"]].includes(i.valueOf())&&(b.position="",b.dsq=!0,b["checkpoint_"+a.id]=this.$options.filters.asStoper(i)),t++}}0===d.playerNumber||b.dsq||i.push(b)}this.items=i},pollData(){let t=document.querySelectorAll(".table-list__row:not(.hidden)").length;this.polling=setInterval(()=>{Promise.all([this.READ_CLASSIFICATION_RESULTS_POSITIONS_OPEN(this.classificationId),this.READ_CLASSIFICATION_RESULTS_SPLIT(this.classificationId),this.READ_CLASSIFICATION_RESULTS_POSITIONS(this.classificationId)]).then(e=>{this.positions=e[0],this.splitTime=e[1],this.catPositions=e[2],this.makeTableItems(),setTimeout(()=>{let e=document.querySelectorAll(".table-list__row:not(.hidden)"),a=e[e.length-1];e.length>t&&(a.scrollIntoView({behavior:"smooth",block:"end"}),t=e.length)},300)})},1e4)}})},Eb=Pb,Tb=(a("4516"),Object(U["a"])(Eb,jb,Ib,!1,null,"06fbfc71",null)),Nb=Tb.exports,Rb=function(){var t=this,e=t._self._c;return e("div",{staticClass:"iframe-wrap"},t._l(t.resultsLiveLink,(function(t,a){return e("iframe",{key:a,attrs:{src:t.url,frameborder:"0"}})})),0)},Lb=[],Mb={name:"PanelCompetitionResultsLiveAll",props:{id:{type:Number,required:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["isZenMode","competitions","classificationsBy"])),{},{competition(){return this.competitions[this.id]},classifications(){return this.classificationsBy(this.competition)},resultsLiveLink(){const t=this.classificationsBy(this.competition),e=[];for(const a of t){const t=window.location.origin,n={name:this.competition.name,id:this.competition.id,classificationId:a.id},{href:i}=this.$router.resolve({name:"panel-competition-results-live",params:n,alias:!0}),s={name:a.namePl,short:a.short,url:`${t}${i}`};e.push(s)}return e}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["d"])([ce["J"]])),Object(R["b"])([g["Lb"]])),async created(){await this.READ_COMPETITION_CLASSIFICATIONS(this.competition.id),this.SET_ZEN_MODE(!0)}},Db=Mb,$b=(a("f97d"),Object(U["a"])(Db,Rb,Lb,!1,null,"9981aaa2",null)),Ub=$b.exports,Bb=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"payment-result"},[t._m(0),e("div",{staticClass:"payment-result-buttons"},[e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.goToPage("panel-competition-result")}}},[t._v("Przejdż do strony z wynikami")]),e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.goToPage("panel-competition-sms")}}},[t._v("Przejdź do wysłanych widomości")])],1)])])])])},Fb=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"payment-result-content"},[e("img",{attrs:{src:a("8a7d"),alt:""}}),e("h3",[t._v("Płatność zakończona sukcesem")]),e("p",[t._v("Wysłaliśmy wiadomości SMS do uczestników")])])}],qb={name:"panel-competition-payment-result",computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitions"])),{},{competition(){return this.competitions[this.$route.params.id]}}),methods:{goToPage(t){this.$router.push({name:t,params:this.competition,alias:!0})}}},Hb=qb,Gb=(a("4787"),Object(U["a"])(Hb,Bb,Fb,!1,null,"1231addf",null)),Wb=Gb.exports,Vb=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"mab40"},[e("PanelCompetitionSettingStoperMain",{attrs:{id:t.id}})],1)])},Kb=[],Zb={name:"PanelCompetitionSettingStoperMainFullscreen",components:{PanelCompetitionSettingStoperMain:tl},props:{id:{type:Number,required:!0}}},Yb=Zb,Qb=Object(U["a"])(Yb,Vb,Kb,!1,null,null,null),Xb=Qb.exports,Jb=(a("26e9"),function(){var t=this,e=t._self._c;return e("div",{staticStyle:{overflow:"hidden"}},[t.ready?t._e():e("main",[t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"stickyHeader"},[e("div",{ref:"stickyHeader"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"panel-competition-list-toolbar",class:{small:t.isZenMode}},[e("base-button-group",{attrs:{horizontal:"",border:!1,shadow:""}},[e("base-button",{staticStyle:{padding:"0","border-top-right-radius":"0","border-bottom-right-radius":"0"},attrs:{btn9:"",badge:t.isZenMode?"dsi dsi-collapse-wide":"dsi dsi-expand-wide"},on:{click:t.fullScreenTrigger}}
1),t.isZenMode?t._e():e("base-button",{staticStyle:{padding:"0","border-top-left-radius":"0","border-bottom-left-radius":"0"},attrs:{btn9:"",badge:"dsi dsi-cog"},on:{click:function(e){return t.$refs.optionsModal.openModal()}}})],1),e("div",{staticClass:"searchWrap",class:{big:t.isZenMode}},[e("base-input-text-with-icon",{staticClass:"minimal",attrs:{label:"Szukaj",icon:"fas fa-search",badge:"fas fa-times"},on:{"icon-click":function(e){t.search=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t.isZenMode?t._e():e("div",{staticClass:"btn-wrap"},[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-cloud-upload"},on:{click:t.openUploadModal}},[t._v(" Wgraj dane ")])],1),t.isZenMode?t._e():e("div",{staticClass:"btn-wrap"},[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:t.openDownloadModal}},[e("span",[t._v("Pobierz"),e("span",{staticClass:"d-none d-md-inline-block",staticStyle:{"margin-left":"4px"}},[t._v("jako")]),t._v("...")])])],1),t.isZenMode?t._e():e("div",[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-sort-numeric-down"},on:{click:function(e){return t.navigateTo("panel-competition-setting-numbers")}}},[t._v(" Nadaj numery ")])],1),e("div",{staticClass:"btn-add-user"},[e("base-button",{class:{big:t.isZenMode},staticStyle:{height:"40px","box-sizing":"border-box"},attrs:{btn1:""},on:{click:t.openUserModal}},[t._v(" Dodaj uczestnika ")])],1)],1)])])])]),e("div",{staticClass:"container-result"},[t.playerListItems&&t.playerListItems.length>0?e("base-table",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.onClickOutside,expression:"onClickOutside"}],staticClass:"table-list",attrs:{headers:t.headersDefault,items:t.playerListItems,search:t.search,"sort-column-default":t.tablesort.column,"sort-reverse-default":t.tablesort.reverse},on:{"update:items":function(e){t.playerListItems=e},"update-sort":t.tableSortUpdate},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"table-list__row bg--dark"},t._l(t.headersDefault,(function(n,i){return e("th",{key:i,staticClass:"table-list__header",class:{"table-list__header--first-cell":"playerNumber"===n.value,"table-list__header--min-width":"playerChip"===n.value,"table-list__header--pay":"pay"===n.value},on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a,n){return e("panel-competition-list-table-row",{key:a.id,attrs:{item:a,"headers-default":t.headersDefault,"competition-id":t.id,"competition-name":t.$attrs.name,lp:n,index:a.id,"opened-index":t.openedIndex},on:{"update:item":function(t){a=t},openUserModal:t.openUserModal,openPayLinkModal:t.openPayLinkModal,"change-accordion":e=>t.openedIndex=e,update:t.updatePlayer}})}))}},{key:"no-results",fn:function({search:a}){return[e("p",{staticClass:"bg--gray pa16"},[t._v(" "+t._s(t.say.no_search_results)+" "),e("b",[t._v(t._s(a))])])]}}],null,!1,2714261718)}):t._e()],1)]),e("modal",{ref:"optionsModal",attrs:{id:"optionsModal","body-class":"bg"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Dane wyświetlane na liście startowej")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"modal-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("h4",[t._v("Informacje podstawowe")]),e("div",{staticClass:"checkboxWrap"},t._l(t.headers,(function(a,n){return e("base-input-checkbox",{key:n,attrs:{"checkbox-value":t.headers[n].checked,name:`agreement_ids[${n}]`},model:{value:t.headers[n].checked,callback:function(e){t.$set(t.headers[n],"checked",e)},expression:"headers[index].checked"}},[t._v(t._s(a.text))])})),1)]),e("div",{staticClass:"col-12 col-md-6 pr-24"},[t.inputsAdditionalInformation&&t.inputsAdditionalInformation.length>0?e("div",[e("h4",[t._v("Informacje dodatkowe")]),e("div",{staticClass:"checkboxWrap"},t._l(t.inputsAdditionalInformation,(function(a,n){return e("base-input-checkbox",{key:n+"add",attrs:{"checkbox-value":{value:a.id,text:a.fNamePl||a.fDescriptionPl},name:`input_ids_add[${n}]`},model:{value:t.additionalHeaders,callback:function(e){t.additionalHeaders=e},expression:"additionalHeaders"}},[t._v(t._s(a.fNamePl||a.fDescriptionPl))])})),1)]):t._e(),e("div",{staticClass:"mab24"},[e("h4",[t._v("Informacje pomocnicze")]),e("p",[t._v(" Zaznaczone informacje pomocnicze pojawią się na liście startowej. Nie są widoczne dla uczestników ")]),t._l(t.inputsSupportInformation,(function(a,n){return e("div",{staticClass:"checkboxInput"},[e("base-input-checkbox",{key:n+"sup",ref:"input_ids_sup_"+n,refInFor:!0,attrs:{"checkbox-value":{value:a.id,text:a.fNamePl},name:`input_ids_sup[${n}]`},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"input.checked"}}),e("base-input-text",{key:n+"supi",attrs:{hint:"Nazwa kolumny z informacją pomocniczą"},model:{value:a.fNamePl,callback:function(e){t.$set(a,"fNamePl",e)},expression:"input.fNamePl"}})],1)}
1))],2),e("div",[e("h4",[t._v("Informacja dodatkowa dla uczestnika")]),e("p",[t._v(" Dodaj specjalną kolumnę na liście startowej, aby ponformować uczestników o sektorze, lub fali, w której startują. Informacje uzupełnij w edycji uczestnika na liście startowej. ")]),e("div",{staticClass:"checkboxInput"},[e("base-input-checkbox",{attrs:{name:"frontColumnCheck"},model:{value:t.frontColumn.checked,callback:function(e){t.$set(t.frontColumn,"checked",e)},expression:"frontColumn.checked"}}),e("base-input-text",{attrs:{hint:"Nazwa kolumny z informacją pomocniczą"},model:{value:t.frontColumn.text,callback:function(e){t.$set(t.frontColumn,"text",e)},expression:"frontColumn.text"}})],1)])])])])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.optionsModal.closeModal()}}},[t._v("Anuluj")]),e("base-button",{staticClass:"btn-long",attrs:{btn1:""},on:{click:t.saveDefaultHeaders}},[t._v("Zapisz")])]},proxy:!0}])}),e("modal",{ref:"uploadModal",attrs:{id:"uploadModal","body-class":"h-auto","disabled-backdrop":""},on:{"modal-close":t.defaultUploadModalData},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Wgraj dane")]},proxy:!0},{key:"body",fn:function(){return["list"===t.uploadDataContainer?[t.uploadListLoader?e("div",{staticClass:"loader"},[e("div",{staticClass:"lds-default"},[e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div")]),e("p",[t._v(" Sprawdzamy poprawność danych"),e("br",{staticClass:"d-none d-md-block"}),t._v(" i importujemy listę. ")])]):t.uploadSuccess?e("div",{staticClass:"up-wrap"},[e("img",{attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Lista startowa została poprawnie zaimportowana")])]),e("p",[t._v("Znależliśmy "+t._s(t.importListLength)+" uczestników")])]):t.uploadError?e("div",{staticClass:"up-wrap"},[t.uploadErrorMsg?["string"===typeof t.uploadErrorMsg?["timeout"===t.uploadErrorMsg?e("div",{staticClass:"loader"},[e("div",{staticClass:"lds-default"},[e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div")]),e("p",[t._v(" Lista jest nadal wgrywana może potrwać do 5 min."),e("br",{staticClass:"d-none d-md-block"}),t._v(" Odswież strone manulanie. ")])]):[e("img",{attrs:{src:a("9d2f")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Nie udało się zaimportować listy")])]),e("p",[t._v(t._s(t.uploadErrorMsg))])]]:Object.keys(t.uploadErrorMsg).length>0?[e("img",{attrs:{src:a("9d2f")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Nie udało się zaimportować listy")])]),t._l(t.uploadErrorMsg,(function(a,n){return e("p",[t._v(t._s(n)+" "+t._s(a))])}))]:t._e()]:e("div",[e("img",{attrs:{src:a("9d2f")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Nie udało się zaimportować listy")])]),e("p",[t._v(" Aby zaimportować listę, wybierz kolumny"),e("br",{staticClass:"d-none d-md-block"}),t._v("z "),e("b",[t._v("imieniem, nazwiskiem, datą urodzenia i płcią")])])])],2):t.uploadListData.length>0?[e("panel-upload-table",{key:t.uploadListDataKey,attrs:{data:t.uploadListData,role:t.uploadDataContainer},on:{change:e=>t.headersForUploadList=e}})]:t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploadListWrapOpen,expression:"isUploadListWrapOpen"}],staticClass:"up-wrap"},[e("img",{attrs:{src:a("a13b")}}),e("input",{ref:"uploadFile",staticClass:"input-field__input-file",attrs:{type:"file"},on:{change:function(e){return t.uploadListInputFileHandler(e)}}}),e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.$refs.uploadFile.click()}}},[t._v("Wybierz plik CSV")]),e("p",[t._v(" Sprawdź jak powinien wyglądać poprawnie"),e("br",{staticClass:"d-none d-md-block"}),t._v(" sformatowany plik z wynikami. ")]),e("p",[e("a",{attrs:{href:"https://dostartu.pl/files/demo/demo_playerslist_import.csv"}},[t._v("pobierz przykładowy plik")])])],1)]:"chip"===t.uploadDataContainer?[t.uploadListLoader?e("div",{staticClass:"loader"},[e("div",{staticClass:"lds-default"},[e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div")]),e("p",[t._v(" Sprawdzamy poprawność danych"),e("br",{staticClass:"d-none d-md-block"}),t._v(" i importujemy listę ")])]):t.uploadSuccess?e("div",{staticClass:"up-wrap"},[e("img",{attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Lista startowa została poprawnie zaimportowana")])]),e("p",[t._v("Znależliśmy "+t._s(t.importListLength)+" uczestników")])]):t.uploadError?e("div",{staticClass:"up-wrap"},[e("img",{attrs:{src:a("9d2f")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Nie udało się zaimportować listy")])]),t.uploadErrorMsg?e("p",[t._v(t._s(t.uploadErrorMsg))]):e("p",[t._v(" Aby zaimportować listę, wybierz kolumny"),e("br",{staticClass:"d-none d-md-block"}),t._v("z "),e("b",[t._v("numerem startowym i numerem chip.")])])]):t.uploadListData.length>0?[e("panel-upload-table",{key:t.uploadListDataKey,attrs:{data:t.uploadListData,"headers-data":t.chipHeadersData,role:t.uploadDataContainer},on:{change:e=>t.headersForUploadList=e}})]:t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploadListWrapOpen,expression:"isUploadListWrapOpen"}],staticClass:"up-wrap"},[e("img",{attrs:{src:a("a13b")}}),e("input",{ref:"uploadFile",staticClass:"input-field__input-file",attrs:{type:"file"},on:{change:function(e){return t.uploadListInputFileHandler(e)}}}),e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.$refs.uploadFile.click()}}},[t._v("Wybierz plik CSV")]),e("p",[t._v(" Sprawdź jak powinien wyglądać poprawnie"),e("br",{staticClass:"d-none d-md-block"}),t._v(" sformatowany plik z wynikami. ")]),e("p",[e("a",{attrs:{href:"https://dostartu.pl/files/demo/demo_playerslist_import.csv"}},[t._v("pobierz przykładowy plik")])])],1)]:[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isUploadListWrapOpen,expression:"!isUploadListWrapOpen"}],staticClass:"dl-wrap"},[e("div",{staticClass:"dl-item"},[e("div",[e("h4",[t._v("Wgraj listę startową")]),e("p",[t._v("Wgraj plik CSV z kolumnami zawierającymi imię, nazwisko, datę urodzenia i płeć.")])]),e("div",[e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.uploadWrapTrigger("list")}}},[t._v(" Wgraj listę startową ")])],1)]),e("div",{staticClass:"dl-item"},[e("div",[e("h4",[t._v("Wgraj numery chipów")]),e("p",[t._v("Wgraj plik CSV z kolumnami zawierającymi numer startowy i numer chip.")])]),e("div",[e("base-button",{attrs:{btn9:""},on:{click:function(e){return t.uploadWrapTrigger("chip")}}},[t._v(" Wgraj listę numerów chip ")])],1)])])]]},proxy:!0},{key:"footer",fn:function(){return[t.uploadSuccess?[e("div",[t._v(" ")]),e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:t.refreshTable}},[t._v("Wróć do listy startowej")])]:t.uploadError?[e("div",[t._v(" ")]),"timeout"===t.uploadErrorMsg?e("div"):e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){t.uploadError=!1}}},[t._v("Wróć do wyboru kolumn")])]:t.uploadListLoader?t._e():["list"===t.uploadDataContainer?[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.uploadModal.closeModal()}}},[t._v("Anuluj")]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.uploadSuccess&&t.uploadListData.length>0,expression:"!uploadSuccess && uploadListData.length > 0"}],staticClass:"btn-wrap"},[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.uploadListTrigger(!0)}}},[t._v("Nadpisz listę")]),e("base-button",{staticClass:"btn-long",attrs:{btn1:""},on:{click:t.uploadListTrigger}},[t._v("Wgraj LISTĘ STARTOWĄ")])],1)]:"chip"===t.uploadDataContainer?[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.uploadModal.closeModal()}}},[t._v("Anuluj")]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.uploadSuccess&&t.uploadListData.length>0,expression:"!uploadSuccess && uploadListData.length > 0"}],staticClass:"btn-wrap"},[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.uploadChipTrigger(!0)}}},[t._v("Nadpisz numery")]),e("base-button",{staticClass:"btn-long",attrs:{btn1:""},on:{click:t.uploadChipTrigger}},[t._v("Wgraj NUMERY CHIP")])],1)]:[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.uploadModal.closeModal()}}},[t._v("Anuluj")])]]]},proxy:!0}])}),e("modal",{ref:"downloadModal",attrs:{"body-class":"h-auto"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Pobierz listę startową jako...")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"dl-info-wrap",class:{"
1is-waiting":t.isWaiting}},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-8"},[e("h4",[t._v("Kodowanie pobieranych plików")]),e("p",[t._v(" Jeśli na liście pojawiają się Imiona, Nazwiska i inne nazwy w obcych alfabetach, wybierz kodowanie UTF8 ")])]),e("div",{staticClass:"form-col form-col-4"},[e("h4",{staticStyle:{"min-height":"8px"}},[t._v(" ")]),e("panel-input-select",{attrs:{options:t.unicodeForSelect,"hide-selected":!1},model:{value:t.unicodeForDownload,callback:function(e){t.unicodeForDownload=e},expression:"unicodeForDownload"}})],1)])]),e("div",{staticClass:"dl-wrap",class:{"is-waiting":t.isWaiting}},[e("div",{staticClass:"dl-item"},[e("div",[e("h4",[t._v("Plik PDF")]),e("p",[t._v("sformatowana do wydruku lista uczestników z numerami startowymi")])]),e("div",[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("pdf")}}},[t._v(" Lista alfabetyczna ")]),e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("pdf-numbers")}}},[t._v(" Lista wg. numerów ")])],1)]),e("div",{staticClass:"dl-item"},[e("div",[e("h4",[t._v("Plik XLS")]),e("p",[t._v("format MS Excel")])]),e("div",[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("xls")}}},[t._v(" Pełna lista ")]),e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("xls-headers")}}},[t._v(" Tylko widoczne kolumny ")]),e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("xls-gep")}}},[t._v(" Dla urządzeń Gepard ")])],1)]),e("div",{staticClass:"dl-item"},[e("div",[e("h4",[t._v("Plik CSV")]),e("p",[t._v("obsługiwany przez większość arkuszy kalkulacyjnych")])]),e("div",[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("csv")}}},[t._v(" Pełna lista ")]),e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.downloadCompetition("csv-del")}}},[t._v(" Usunięci uczestnicy ")])],1)])]),t.isWaiting?e("div",{staticClass:"loading"},[e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])]):t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.downloadModal.closeModal()}}},[t._v("Anuluj")])]},proxy:!0}])}),e("modal",{ref:"addNewUser",attrs:{id:"userModal","body-class":"bg  h-auto visible",size:"xl"},on:{"modal-close":t.defaultUserModalData},scopedSlots:t._u([{key:"header",fn:function(){return[t.form&&t.form.id?e("span",[t._v("Edytuj uczestnika")]):e("span",[t._v("Dodaj uczestnika")])]},proxy:!0},{key:"body",fn:function(){return[e("validation-observer",{ref:"newPlayerFormObserver",scopedSlots:t._u([{key:"default",fn:function({handleSubmit:n}
1){return[e("form",{staticClass:"modal-body",class:{"is-waiting":t.isWaiting},on:{submit:function(e){return e.preventDefault(),n(t.formSubmit)}}},[e("div",{staticClass:"form-row out-gutter"},[e("div",{staticClass:"form-col form-col-8 border-right"},[e("div",{staticClass:"form-row mab16sm"},[e("div",{staticClass:"form-col form-col-3"},[e("validation-provider",{staticClass:"scroll-margin",attrs:{name:"firstname",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{staticClass:"mab16",attrs:{label:"Imię",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.firstname,callback:function(e){t.$set(t.form,"firstname",e)},expression:"form.firstname"}})]}}],null,!0)})],1),e("div",{staticClass:"form-col form-col-9"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-6"},[e("validation-provider",{staticClass:"scroll-margin",attrs:{name:"lastname",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-autocomplete",{ref:"formLastname",staticClass:"mab16",attrs:{value:t.form.lastname,label:"Nazwisko","option-label":"lastname",action:"AUTOCOMPLETE_COMPETITION_PLAYER","action-id":t.competition.organizer,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)},input:t.changeLastname,select:function(e){return t.selectPlayer(e)}},scopedSlots:t._u([{key:"option-data",fn:function(a){return[t._v(" "+t._s(a.lastname+" "+a.firstname)),e("br"),e("small",[t._v(t._s("ur. "+t.birthdayFormatDate(a.birthTime)))])]}}],null,!0),model:{value:t.form.lastname,callback:function(e){t.$set(t.form,"lastname",e)},expression:"form.lastname"}})]}}],null,!0)})],1),e("div",{staticClass:"form-col form-col-6"},[e("validation-provider",{staticClass:"scroll-margin",attrs:{name:"gender",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-radio",{staticClass:"mab16",attrs:{name:"formGender",label:"Płeć",options:[{value:"M",title:"man"},{value:"K",title:"woman"}],value:t.form.gender,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})]}}],null,!0)})],1)])])]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-3"},[e("validation-provider",{staticClass:"scroll-margin",attrs:{name:"birthTime",rules:"required|birthdayValidator"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-date",{staticClass:"mab16",attrs:{value:t.form.birthTime,label:"Data urodzenia",placeholder:"dd.mm.yyyy",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.birthTime,callback:function(e){t.$set(t.form,"birthTime",e)},expression:"form.birthTime"}})]}}],null,!0)})],1),e("div",{staticClass:"form-col form-col-9"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-6"},[e("validation-provider",{staticClass:"scroll-margin",attrs:{name:"city",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{staticClass:"mab16",attrs:{label:"Miejscowość",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.city,callback:function(e){t.$set(t.form,"city",e)},expression:"form.city"}})]}}],null,!0)})],1),e("div",{staticClass:"form-col form-col-6"},[e("panel-input-text",{staticClass:"mab16",attrs:{label:"Kraj",error:t.errors.country},on:{"update:error":function(e){return t.$set(t.errors,"country",e)}},model:{value:t.form.country,callback:function(e){t.$set(t.form,"country",e)},expression:"form.country"}})],1)])])]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-3"},[e("panel-input-text",{staticClass:"mab16",attrs:{type:"number",label:"Telefon",error:t.errors.phone},on:{"update:error":function(e){return t.$set(t.errors,"phone",e)}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),e("div",{staticClass:"form-col form-col-9"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-6"},[e("panel-input-text",{staticClass:"mab16",attrs:{label:"Adres-email",error:t.errors.email}
1,on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),e("div",{staticClass:"form-col form-col-6"},[e("panel-input-text",{staticClass:"mab16",attrs:{label:"Klub",error:t.errors.clubname},on:{"update:error":function(e){return t.$set(t.errors,"clubname",e)}},model:{value:t.form.clubname,callback:function(e){t.$set(t.form,"clubname",e)},expression:"form.clubname"}})],1)])])]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-3"},[e("panel-input-text",{staticClass:"mab8",attrs:{label:"Telefon ICE",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1),e("div",{staticClass:"form-col form-col-9"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-6"},[e("panel-input-select",{staticClass:"mab16",attrs:{options:t.playerStatus,clearable:!1,label:"name","track-by":"name","select-label":"Wybierz status",error:t.errors.status},on:{"update:error":function(e){return t.$set(t.errors,"status",e)}},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}})],1),e("div",{staticClass:"form-col form-col-6"},[e("panel-input-switch",{staticClass:"mab16",attrs:{value:t.form.isAnonymous,name:"formisAnonymous",label:"Anonimowy",options:[{value:!0,title:"Tak"},{value:!1,title:"Nie"}],error:t.errors.isAnonymous},on:{"update:error":function(e){return t.$set(t.errors,"isAnonymous",e)}},model:{value:t.form.isAnonymous,callback:function(e){t.$set(t.form,"isAnonymous",e)},expression:"form.isAnonymous"}})],1)])])]),e("div",{staticClass:"hr__line"},[t._v(" ")]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-3"},[e("panel-input-text",{staticClass:"mab16",attrs:{label:"Numer startowy",error:t.errors.playerNumber},on:{"update:error":function(e){return t.$set(t.errors,"playerNumber",e)}},model:{value:t.form.playerNumber,callback:function(e){t.$set(t.form,"playerNumber",e)},expression:"form.playerNumber"}})],1),e("div",{staticClass:"form-col form-col-9"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-6"},[e("validation-provider",{attrs:{name:"classification",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-select",{staticClass:"mab16",attrs:{options:t.classificationsForSelect,"select-label":"Klasyfikacja","hide-selected":!1,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.placeClassification,callback:function(e){t.placeClassification=e},expression:"placeClassification"}})]}}],null,!0)})],1),e("div",{staticClass:"form-col form-col-6"},[t.specialCategories&&t.specialCategories.length>0?e("panel-input-select",{staticClass:"mab16",attrs:{options:t.specialCategories,"select-label":"Kategoria specjalna",multiple:"",searchable:"","hide-selected":!1,error:t.errors.category},on:{"update:error":function(e){return t.$set(t.errors,"category",e)}},model:{value:t.form.category,callback:function(e){t.$set(t.form,"category",e)},expression:"form.category"}}):t._e()],1)])])]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-3"},[e("panel-input-text",{staticClass:"mab24",attrs:{label:"Nr GPS",error:t.errors.playerGpsNumber},on:{"update:error":function(e){return t.$set(t.errors,"playerGpsNumber",e)}},model:{value:t.form.playerGpsNumber,callback:function(e){t.$set(t.form,"playerGpsNumber",e)},expression:"form.playerGpsNumber"}})],1),e("div",{staticClass:"form-col form-col-9"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-6"},[e("panel-input-text",{staticClass:"mab24",attrs:{label:"Numer chipa",error:t.errors.playerChip},on:{"update:error":function(e){return t.$set(t.errors,"playerChip",e)}},model:{value:t.form.playerChip,callback:function(e){t.$set(t.form,"playerChip",e)},expression:"form.playerChip"}})],1),e("div",{staticClass:"form-col form-col-6"},[t.placeClassification&&t.placeClassification.classificationPrices.length>0?e("div",{staticClass:"pay-with-refund mab24",class:{"pay-with-refund--has-btn":t.canRefundPlayer}},[t.isFormRefunded?[e("p",{staticClass:"mab8"},[t._v("Opłata za udział")]),e("div",{staticClass:"pay-with-refund__refunded"},[e("img",{staticClass:"pay-with-refund__refunded-icon",attrs:{src:a("7d9f"),alt:""}}),t._v(" Zwrot opłaty ")])]:[e("panel-input-switch",{attrs:{value:t.form.pay,name:"formStatus",label:"Opłata za udział",options:[{value:!0,title:"Opłacony"},{value:!1,title:"Nieopłacony"}],error:t.errors.pay}
1,on:{"update:error":function(e){return t.$set(t.errors,"pay",e)}},scopedSlots:t._u([{key:"option-addon",fn:function({option:n}){return[t.canRefundPlayer&&!0===n.value?e("button",{staticClass:"pay-with-refund__btn",attrs:{type:"button",title:"Zwrot opłaty startowej",disabled:t.refundLoading},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openRefundModal.apply(null,arguments)}}},[e("img",{attrs:{src:a("7d9f"),alt:"Zwrot"}})]):t._e()]}}],null,!0),model:{value:t.form.pay,callback:function(e){t.$set(t.form,"pay",e)},expression:"form.pay"}})]],2):t.placeClassification&&0===t.placeClassification.classificationPrices.length?e("div",[e("p",{staticClass:"mab8"},[t._v("Opłata za udział")]),e("span",[t._v("Klasyfikacja bezpłatna")])]):t._e()])])])]),e("div",{staticClass:"d-md-none hr__line"},[t._v(" ")])]),e("div",{staticClass:"form-col form-col-4 border-left"},[e("div",{staticClass:"ps-wrap",staticStyle:{display:"none"}},[e("div",{staticClass:"buttons-wrap"},[e("div",{staticClass:"btn",class:{"is-active":"additional-fields"===t.buttonsTabs},attrs:{id:"additional-fields"},on:{click:function(e){return t.showCompetitionPanel("additional-fields")}}},[e("span",{staticClass:"icon"},[e("img",{attrs:{src:a("447d")}})]),e("span",{staticClass:"text"},[t._v("Pola dodatkowe")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.form.id&&t.playerCycle.length>0,expression:"form.id && playerCycle.length > 0"}],staticClass:"btn",class:{"is-active":"competition-cycle"===t.buttonsTabs},attrs:{id:"competition-cycle"},on:{click:function(e){return t.showCompetitionPanel("competition-cycle")}}},[e("span",{staticClass:"icon"},[e("img",{attrs:{src:a("e7ab")}})]),e("span",{staticClass:"text"},[t._v("Zawody w cyklu")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.form.id&&t.playerShop.length>0,expression:"form.id && playerShop.length > 0"}],staticClass:"btn",class:{"is-active":"orders"===t.buttonsTabs},attrs:{id:"orders"},on:{click:function(e){return t.showCompetitionPanel("orders")}}},[e("span",{staticClass:"icon"},[e("img",{attrs:{src:a("3ab1")}})]),e("span",{staticClass:"text"},[t._v("Zamówienia")])])])]),e("perfect-scrollbar",{ref:"userModalScroll"},[e("div",{staticClass:"buttons-content-wrap",class:{"is-active":null!==t.buttonsTabs}},[e("div",{staticClass:"buttons-content",class:{"is-active":"additional-fields"===t.buttonsTabs}},[t.inputsAdditionalInformation&&t.inputsAdditionalInformation.length>0?e("div",t._l(t.inputsAdditionalInformation,(function(a,n){return e("panel-input-wrap",{key:a.id+"_"+n+"wrapAddUsr",attrs:{data:a},model:{value:t.form.playerInputs[a.id].value,callback:function(e){t.$set(t.form.playerInputs[a.id],"value",e)},expression:"form.playerInputs[input.id].value"}})})),1):t._e(),t.inputsSupportFormUser&&t.inputsSupportFormUser.length>0?e("div",t._l(t.inputsSupportFormUser,(function(a,n){return e("panel-input-wrap",{key:a.id+"_"+n+"wrapAddSuppUsr",attrs:{data:a},model:{value:t.form.playerInputs[a.id].value,callback:function(e){t.$set(t.form.playerInputs[a.id],"value",e)},expression:"form.playerInputs[input.id].value"}})})),1):t._e(),t.competition.frontColumn?e("div",[e("panel-input-area",{staticClass:"mab24",attrs:{label:t.competition.frontColumn,rows:4},model:{value:t.form.frontInfo,callback:function(e){t.$set(t.form,"frontInfo",e)},expression:"form.frontInfo"}})],1):t._e(),e("panel-input-area",{staticClass:"mab24",attrs:{label:"Notatka",rows:4},model:{value:t.form.notes,callback:function(e){t.$set(t.form,"notes",e)},expression:"form.notes"}}),t.form.confirmedQrAt?e("div",[e("span",{staticClass:"text"},[t._v("Data odbioru pakietu: "),e("b",[t._v(t._s(t.form.confirmedQrAt))])]),t.form.pickupPointIdentifier?e("span",{staticClass:"text"},[t._v(" | Punkt: "),e("b",[t._v(t._s(t.form.pickupPointIdentifier))])]):t._e()]):t._e()],1),e("div",{staticClass:"buttons-content",class:{"is-active":"competition-cycle"===t.buttonsTabs}},[e("span",{staticClass:"text"},[t._v("Zawody w cyklu")])]),e("div",{staticClass:"buttons-content",class:{"is-active":"orders"===t.buttonsTabs}},[e("span",{staticClass:"text"}
1,[t._v("Zamówienia")])])])])],1),t.isMobile&&t.form&&t.form.id?e("div",{staticClass:"form-col form-col-"},[t.isQRCodeVisible?e("base-button",{class:{"is-waiting":t.isQRWaiting},attrs:{btn9:"",icon:"fa fa-qrcode",loading:t.isQRWaiting},on:{click:t.openQRModal}},[t._v("Pokaż kod QR")]):t._e(),e("base-button",{staticClass:"btn-short btn-outline-primary btn-remove-user",class:{"is-waiting":t.isWaiting},attrs:{btn9:""},on:{click:function(e){return t.deleteUserFromList(t.form.id)}}},[t._v("Usuń uczestnika")])],1):t._e()]),e("button",{staticClass:"d-none",attrs:{type:"submit"}},[t._v("for keyboard action")]),t.isWaiting?e("div",{staticClass:"loading"},[e("div",{staticClass:"lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])]):t._e()])]}}])})]},proxy:!0},{key:"footer",fn:function(){return[t.isMobile?[e("div",{staticClass:"btn-wrap"},[e("base-button",{staticClass:"btn-short",class:{"is-waiting":t.isWaiting},attrs:{btn9:""},on:{click:function(e){return t.$refs.addNewUser.closeModal()}}},[t._v("Anuluj")]),e("base-button",{staticClass:"btn-long",class:{"is-waiting":t.isWaiting},attrs:{btn1:""},on:{click:t.formSubmit}},[t._v("Zapisz")])],1)]:[e("div",{staticClass:"btn-wrap"},[t.form&&t.form.id?e("base-button",{staticClass:"btn-short btn-outline-primary",class:{"is-waiting":t.isWaiting},attrs:{btn9:""},on:{click:function(e){return t.deleteUserFromList(t.form.id)}}},[t._v("Usuń uczestnika")]):t._e(),e("base-button",{staticClass:"btn-short",class:{"is-waiting":t.isWaiting},attrs:{btn9:""},on:{click:function(e){return t.$refs.addNewUser.closeModal()}}},[t._v("Anuluj")])],1),e("div",{staticClass:"btn-wrap"},[t.isQRCodeVisible&&t.form&&t.form.id?e("base-button",{class:{"is-waiting":t.isQRWaiting},attrs:{btn9:"",icon:"fa fa-qrcode",loading:t.isQRWaiting},on:{click:t.openQRModal}},[t._v("Pokaż kod QR")]):t._e(),e("base-button",{staticClass:"btn-long",class:{"is-waiting":t.isWaiting},attrs:{btn1:""},on:{click:t.formSubmit}},[t._v("Zapisz")])],1)]]},proxy:!0}])}),e("modal",{ref:"playerQRModal",attrs:{id:"playerQRModal","body-class":"h-auto"},on:{"modal-close":function(e){t.playerQRCode=""}},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Kod QR")]},proxy:!0},{key:"body",fn:function(){return[Object.keys(t.form).length>0?e("div",{staticClass:"qrCodeWrapper"},[e("div",{staticClass:"row"},[e("div",{staticClass:"qrCodeContent col-12 col-md-6"},[e("div",[e("p",[t._v("Numer startowy")]),e("b",{staticClass:"x-large"},[t._v(t._s(t.form.playerNumber))])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("p",[t._v("Uczestnik")]),e("b",{staticClass:"large"},[t._v(t._s(t.form.firstname)+" "+t._s(t.form.lastname))])]),e("div",{staticClass:"col-12 col-md-6 text-md-right"},[e("p",[t._v("Wiek")]),e("b",{staticClass:"large"},[t._v(t._s(t.form.playerAge))])])]),e("div",[e("p",[t._v("Klasyfikacja")]),e("b",[t._v(t._s(t.placeClassification.namePl||"-"))])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("p",[t._v("Nr chipa")]),e("b",[t._v(t._s(t.form.playerChip||"-"))])]),e("div",{staticClass:"col-12 col-md-6 text-md-right"},[e("p",[t._v("Nr GPS")]),e("b",[t._v(t._s(t.form.playerGpsNumber||"-"))])])])]),t.playerQRCode?e("div",{staticClass:"col-12 col-md-6"},[e("img",{staticClass:"playerQRCode img-fluid",attrs:{src:t.playerQRCode}})]):t._e()])]):t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.playerQRModal.closeModal()}}},[t._v("Zamknij")])]},proxy:!0}])}),e("modal",{ref:"payLinkModal",attrs:{id:"payLinkModal","body-class":"h-auto"},on:{"modal-close":function(e){t.playerPayLink=""}},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Link do płatności online")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"downloadLink"},[e("div",{staticClass:"downloadLinkWrap"},[e("div",{staticClass:"downloadLinkInput"},[t._v(" "+t._s(t.playerPayLink)+" ")]),e("div",{staticClass:"btn",class:{success:t.playerPayCopied},on:{click:t.copyPayLinkTrigger}},[t.playerPayCopied?[e("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M14.5 18.7929L21.1464 12.1464C21.3417 11.9512 21.6583 11.9512 21.8536 12.1464C22.0488 12.3417 22.0488 12.6583 21.8536 12.8536L14.8536 19.8536C14.6583 20.0488 14.3417 20.0488 14.1464 19.8536L11.1464 16.8536C10.9512 16.6583 10.9512 16.3417 11.1464 16.1464C11.3417 15.9512 11.6583 15.9512 11.8536 16.1464L14.5 18.7929Z",fill:"white"}})]),t._v(" Skopiowany ")]:[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.686 12.8601C11.8818 12.6653 11.8827 12.3488 11.6879 12.153C10.7787 11.2388 10.779 9.76187 11.6885 8.84801L13.7771 6.74933C14.74 5.78184 16.3001 5.763 17.286 6.70698C17.3177 6.73733 17.3485 6.76859 17.3784 6.80073C18.2373 7.72367 18.1854 9.16814 17.2624 10.027L14.9982 12.1341C14.7961 12.3222 14.7847 12.6386 14.9728 12.8407C15.1609 13.0429 15.4773 13.0543 15.6795 12.8661L17.9437 10.7591C19.2709 9.52395 19.3456 7.44673 18.1105 6.11948C18.0675 6.07327 18.0232 6.02832 17.9776 5.98467C16.5982 4.66396 14.4154 4.69031 13.0683 6.04392L10.9797 8.1426C9.682 9.44651 9.68166 11.5538 10.9789 12.8581C11.1736 13.0539 11.4902 13.0548 11.686 12.8601ZM12.1529 11.14C11.9571 11.3348 11.9562 11.6514 12.151 11.8472C13.0596 12.7607 13.0584 
114.237 12.1483 15.149L9.98051 17.3215C9.07574 18.2282 7.60864 18.2343 6.69608 17.335C5.7869 16.4387 5.77643 14.9751 6.67269 14.0659L8.85614 11.851C9.05 11.6544 9.04774 11.3378 8.85108 11.1439C8.65443 10.9501 8.33786 10.9523 8.144 11.149L5.96054 13.3639C4.67656 14.6664 4.69156 16.7632 5.99438 18.0475C7.29835 19.3325 9.39522 19.3238 10.6884 18.0278L12.8562 15.8553C14.1553 14.5534 14.157 12.446 12.86 11.142C12.6653 10.9462 12.3487 10.9453 12.1529 11.14Z",fill:"#fff"}})]),t._v(" Skopiuj link ")]],2)])])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"btn-short",attrs:{btn9:""},on:{click:function(e){return t.$refs.payLinkModal.closeModal()}}},[t._v("Zamknij")])]},proxy:!0}])}),e("modal",{ref:"refundModal",attrs:{id:"refundModal","body-class":"h-auto"},on:{"modal-close":t.resetRefundModal},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Zwrot opłaty startowej")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"refund-modal"},[e("div",{staticClass:"refund-modal__col"},[e("div",{staticClass:"refund-modal__field"},[e("p",{staticClass:"refund-modal__label"},[t._v("Uczestnik")]),e("p",{staticClass:"refund-modal__value refund-modal__value--name"},[t._v(" "+t._s(t.refundModal.firstname)+" "+t._s(t.refundModal.lastname)+" ")])]),e("div",{staticClass:"refund-modal__field"},[e("p",{staticClass:"refund-modal__label"},[t._v("Kwota opłaty startowej")]),e("p",{staticClass:"refund-modal__value refund-modal__value--amount"},[t._v(" "+t._s(t.formatRefundAmount(t.refundModal.amount))+" ")])])]),e("div",{staticClass:"refund-modal__col"},[e("p",{staticClass:"refund-modal__text"},[t._v(" Czy na pewno chcesz zwrócić opłatę startową uczestnikowi? ")]),e("p",{staticClass:"refund-modal__text"},[t._v(" To tylko informacja w systemie Dostartu, aby była spójność z kwotą sumaryczną opłat. Zwrot należy wykonać w panelu Przelewy24. ")])])])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"btn-short",attrs:{btn9:"",disabled:t.refundSubmitting},on:{click:function(e){return t.$refs.refundModal.closeModal()}}},[t._v("Anuluj")]),e("base-button",{staticClass:"btn-long ml-auto",class:{"is-waiting":t.refundSubmitting},attrs:{btn1:"",disabled:t.refundSubmitting||null==t.refundModal.amount},on:{click:t.confirmRefund}},[t._v("Zwróć OPŁATĘ STARTOWĄ")])]},proxy:!0}])})],1)}),t_=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex flex-column mat24"},[e("h2",{staticClass:"text-center"},[t._v("Trwa wczytywanie listy startowej.")]),e("div",{staticClass:"mat16 lds-ellipsis lds-ellipsis--center"},[e("div"),e("div"),e("div")])])}],e_=(a("ace4"),a("5cc6"),a("907a"),a("735e"),a("986a"),a("1d02"),a("3c5d"),a("219c"),a("a4a1")),a_=a("e9e1"),n_=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"table-list__row",class:{"table-list__row--paid":(t.playerPay||t.playerFree)&&!t.isRefunded,"table-list__row--not__paid":!t.playerPay&&!t.playerFree&&!t.isRefunded,"table-list__row--refunded":t.isRefunded,"table-list__row--active":t.hover},on:{mouseover:function(e){t.hover=!0},mouseleave:function(e){t.hover=!1}}},t._l(t.headersDefault,(function(n,i){return e("td",{key:i,staticClass:"table-list__data",class:{"table-list__data--first-cell":"playerNumber"===n.value,"table-list__data--min-width":"playerChip"===n.value,"table-list__data--max-width":"playerGpsNumber"===n.value,"table-list__data--lp":"ordinalNumber"===n.value,"table-list__data--pay":"pay"===n.value},on:{click:function(e){return t.userDetails(t.item,n.value)}}},["ordinalNumber"===n.value?[t._v(" "+t._s(t.lp+1)+" ")]:"playerNumber"===n.value?[t.hover||t.index===t.openedIndex||t.isMobile?e("form",{on:{submit:function(e){return e.preventDefault(),t.updatePlayer({id:t.item.id,playerNumber:t.playerNumber})}}},[e("div",{staticClass:"inputWrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.playerNumber,expression:"playerNumber"}],domProps:{value:t.playerNumber},on:{input:function(e){e.target.composing||(t.playerNumber=e.target.value)}}}),e("button",{directives:[{name:"show",rawName:"v-show",value:!t.isMobile,expression:"!isMobile"}],class:{accepted:t.state_number.accepted,wrong:t.state_number.wrong}},[t.state_number.submitted?e("i",{staticClass:"fas fa-spinner"}):t.state_number.accepted?e("i",{staticClass:"fas fa-check"}):t.state_number.wrong?e("i",{staticClass:"fas fa-exclamation-triangle"}):e("i",{staticClass:"fas fa-check-circle"})])])]):t.item["playerNumber"]?e("span",[t._v(t._s(t.item["playerNumber"]))]):e("span",[t._v("-")])]:"payLink"===n.value?[t.playerFree?e("span"):e("div",{staticClass:"btn"},[e("img",{staticStyle:{"margin-right":"4px"},attrs:{src:a("7262")}}),t._v(" Kopiuj link ")])]:"pay"===n.value?e("div",{staticClass:"flex-wrap",on:{click:function(t){t.stopPropagation()}}},[t.playerFree?e("div",{staticClass:"btn",staticStyle:{cursor:"default"}},[t._m(0,!0)]):t.isRefunded?e("div",{staticClass:"btn refunded",staticStyle:{cursor:"default"}},[t._m(1,!0)]):[t.isMobile?e("panel-input-switch-mini",{attrs:{value:t.playerPay},on:{input:t.onPayInput}}):e("div",{staticClass:"btn",class:{active:t.hover||t.index===t.openedIndex,yes:t.playerPay,no:!t.playerPay},on:{click:t.togglePay}},[t.playerPay?e("span",{staticClass:"yes"},[e("i",{staticClass:"fas fa-check-circle"}),t._v(" Opłacony")]):e("span",{staticClass:"no"},[e("i",{staticClass:"fas fa-times-circle"}),t._v(" Nieopłacony")])])]],2):"payNumber"===n.value?e("div",{staticClass:"flex-wrap",on:{click:function(t){t.stopPropagation()}}},[t.isMobile?e("panel-input-switch-mini",{attrs:{value:t.playerpayNumber},on:{input:t.onPayNumberInput}}):e("div",{staticClass:"btn",class:{active:t.hover||t.index===t.openedIndex,yes:t.playerpayNumber,no:!t.playerpayNumber},on:{click:t.togglePayNumber}},[t.playerpayNumber?e("span",{staticClass:"yes"},[e("i",{staticClass:"fas fa-check-circle"}),t._v(" Opłacony")]):e("span",{staticClass:"no"},[e("i",{staticClass:"fas fa-times-circle"}),t._v(" Nieopłacony")])])],1):"isAnonymous"===n.value?e("div",{staticClass:"flex-wrap",on:{click:function(t){t.stopPropagation()}}},[t.isMobile?e("panel-input-switch-mini",{attrs:{value:t.playerisAnonymous},on:{input:t.onIsAnonymousInput}}):e("div",{staticClass:"btn",class:{active:t.hover||t.index===t.openedIndex,yes:t.playerisAnonymous,no:!t.playerisAnonymous},on:{click:t.toggleIsAnonymous}},[t.playerisAnonymous?e("span",{staticClass:"yes"},[e("i",{staticClass:"fas fa-check-circle"}),t._v(" Anonimowy")]):e("span",{staticClass:"no"},[e("i",{staticClass:"fas fa-times-circle"}),t._v(" Nieanonimowy")])])],1):"playerChip"===n.value?[t.hover||t.index===t.openedIndex||t.isMobile?e("form",{on:{submit:function(e){return e.preventDefault(),t.updatePlayer({id:t.
1item.id,playerChip:t.playerChip})}}},[e("div",{staticClass:"inputWrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.playerChip,expression:"playerChip"}],domProps:{value:t.playerChip},on:{input:function(e){e.target.composing||(t.playerChip=e.target.value)}}}),e("button",{directives:[{name:"show",rawName:"v-show",value:!t.isMobile,expression:"!isMobile"}],class:{accepted:t.state_chip.accepted,wrong:t.state_chip.wrong}},[t.state_chip.submitted?e("i",{staticClass:"fas fa-spinner"}):t.state_chip.accepted?e("i",{staticClass:"fas fa-check"}):t.state_chip.wrong?e("i",{staticClass:"fas fa-exclamation-triangle"}):e("i",{staticClass:"fas fa-check-circle"})])])]):e("span",{staticClass:"ellipis"},[t._v(t._s(t.item["playerChip"]))])]:"playerGpsNumber"===n.value?[t.hover||t.index===t.openedIndex||t.isMobile?e("form",{on:{submit:function(e){e.preventDefault(),t.updatePlayer({id:t.item.id,playerGpsNumber:Number(t.playerGpsNumber)})}}},[e("div",{staticClass:"inputWrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.playerGpsNumber,expression:"playerGpsNumber"}],staticStyle:{"max-width":"68px"},domProps:{value:t.playerGpsNumber},on:{input:function(e){e.target.composing||(t.playerGpsNumber=e.target.value)}}}),e("button",{directives:[{name:"show",rawName:"v-show",value:!t.isMobile,expression:"!isMobile"}],class:{accepted:t.state_gps.accepted,wrong:t.state_gps.wrong}},[t.state_gps.submitted?e("i",{staticClass:"fas fa-spinner"}):t.state_gps.accepted?e("i",{staticClass:"fas fa-check"}):t.state_gps.wrong?e("i",{staticClass:"fas fa-exclamation-triangle"}):e("i",{staticClass:"fas fa-check-circle"})])])]):e("span",{staticClass:"ellipis"},[t._v(t._s(t.item["playerGpsNumber"]))])]:"number"===typeof n.value?[e("div",{domProps:{innerHTML:t._s(t.playerInputs(n.value))}})]:"status"===n.value?[0===t.playerStatus||1===t.playerStatus?[e("div",{on:{click:function(t){t.stopPropagation()}}},[t.isMobile?e("panel-input-switch-mini",{attrs:{value:t.playerStatus,"true-value":0,"false-value":1},on:{input:t.onStatusInput}}):e("div",{staticClass:"btn",class:{active:t.hover||t.index===t.openedIndex,yes:0===t.playerStatus,no:1===t.playerStatus},on:{click:t.toggleStatus}},[0===t.playerStatus?e("span",{staticClass:"yes"},[e("i",{staticClass:"fas fa-check-circle"}),t._v(" Udział")]):1===t.playerStatus?e("span",{staticClass:"no"},[e("i",{staticClass:"fas fa-times-circle"}),t._v(" Brak udziału")]):t._e()])],1)]:2===t.playerStatus||3===t.playerStatus?[e("span",{staticClass:"no"},[t._v(t._s(t.playerStatusInfo[t.playerStatus]))])]:[t._v("-")]]:"classification"===n.value||"ageCategory"===n.value?[""===t.item[n.value]||null===t.item[n.value]?e("span",{staticClass:"no"},[e("i",{staticClass:"fas fa-exclamation-triangle"})]):e("span",[t._v(t._s(t.item[n.value]))])]:"gender"===n.value?[t.genderIssue?e("span",{staticClass:"issue"},[e("i",{staticClass:"fas fa-exclamation-triangle"})]):t._e(),t._v(" "+t._s(t.item[n.value])+" ")]:"frontColumn"===n.value?[t._v(" "+t._s(t.item["frontInfo"])+" ")]:["string"===typeof t.item[n.value]?[t._v(t._s(t.item[n.value].toLowerCase()))]:[t._v(t._s(t.item[n.value]))]]],2)})),0)},i_=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"yes"},[e("i",{staticClass:"fas fa-check-circle"}),t._v(" Bezpłatne")])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"refunded"},[e("img",{staticClass:"refund-icon",attrs:{src:a("7d9f"),alt:""}}),t._v(" Zwrot opłaty ")])}],s_=function(){var t=this,e=t._self._c;return e("div",[e("label",{staticClass:"switch"},[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.isChecked},on:{change:t.onChange}}),e("span",{staticClass:"slider"})]),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])])},o_=[],r_=a("1047"),l_={mixins:[r_["a"]],props:{value:{type:null,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{isChecked(){return this.value===this.trueValue}}),methods:{onChange(t){this.$emit("input",t.target.checked?this.trueValue:this.falseValue)}}},c_=l_,d_=(a("ae23"),Object(U["a"])(c_,s_,o_,!1,null,"140bd224",null)),u_=d_.exports,p_={
1name:"PanelCompetitionListTableRow",components:{PanelInputSwitchMini:u_},props:{item:{type:Object,required:!0},headersDefault:{type:Array,required:!0},index:{type:Number,required:!0},openedIndex:{type:[Number,Boolean],required:!1,default:-1},competitionId:{type:Number,required:!0},competitionName:{type:String,required:!0},lp:{type:Number,required:!0}},data(){return{hover:!1,pendingCount:0,requestSeq:{status:0,pay:0,payNumber:0,isAnonymous:0,playerNumber:0,playerChip:0,playerGpsNumber:0},state_number:{submitted:!1,accepted:!1,wrong:!1},state_chip:{submitted:!1,accepted:!1,wrong:!1},state_gps:{submitted:!1,accepted:!1,wrong:!1},playerFree:0===this.item.placeClassification.classificationPrices.length,playerPay:this.item.pay,playerpayNumber:this.item.payNumber,playerisAnonymous:this.item.isAnonymous,playerNumber:this.item.playerNumber?this.item.playerNumber:"",playerChip:this.item.playerChip?this.item.playerChip:"",playerStatus:this.item.status?this.item.status.value:null,playerStatusInfo:["","","DNF","DQ"],playerGpsNumber:this.item.playerGpsNumber}},computed:{isMobile(){return["sm","md"].includes(this.$mq)},isRefunded(){return null!=this.item.refundAmount},genderIssue(){return"M"===this.item.gender&&"a"===this.item.firstname.slice(-1).toLowerCase()||"K"===this.item.gender&&"a"!==this.item.firstname.slice(-1).toLowerCase()}},watch:{item:{deep:!0,handler(t){this.pendingCount>0||this.syncFromItem(t)}}},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["sd"]])),{},{syncFromItem(t){this.playerFree=0===t.placeClassification.classificationPrices.length,this.playerPay=t.pay,this.playerpayNumber=t.payNumber,this.playerisAnonymous=t.isAnonymous,this.playerNumber=t.playerNumber?t.playerNumber:"",this.playerChip=t.playerChip?t.playerChip:"",this.playerStatus=t.status?t.status.value:null,this.playerGpsNumber=t.playerGpsNumber},togglePay(){this.playerPay=!this.playerPay,this.updatePlayer({id:this.item.id,pay:this.playerPay})},onPayInput(t){this.playerPay=t,this.updatePlayer({id:this.item.id,pay:t})},togglePayNumber(){this.playerpayNumber=!this.playerpayNumber,this.updatePlayer({id:this.item.id,payNumber:this.playerpayNumber})},onPayNumberInput(t){this.playerpayNumber=t,this.updatePlayer({id:this.item.id,payNumber:t})},toggleIsAnonymous(){this.playerisAnonymous=!this.playerisAnonymous,this.updatePlayer({id:this.item.id,isAnonymous:this.playerisAnonymous})},onIsAnonymousInput(t){this.playerisAnonymous=t,this.updatePlayer({id:this.item.id,isAnonymous:t})},toggleStatus(){this.playerStatus=0===this.playerStatus?1:0,this.updatePlayer({id:this.item.id,status:this.playerStatus})},onStatusInput(t){this.playerStatus=t,this.updatePlayer({id:this.item.id,status:t})},requestField(t){return["status","pay","payNumber","isAnonymous","playerNumber","playerChip","playerGpsNumber"].find(e=>void 0!==t[e])},applyResponseFields(t,e){void 0!==t.pay&&(this.playerPay=e.pay),void 0!==t.payNumber&&(this.playerpayNumber=e.payNumber),void 0!==t.isAnonymous&&(this.playerisAnonymous=e.isAnonymous),void 0!==t.status&&(this.playerStatus=e.status),void 0!==t.playerNumber&&(this.playerNumber=e.playerNumber?e.playerNumber:""),void 0!==t.playerChip&&(this.playerChip=e.playerChip?e.playerChip:""),void 0!==t.playerGpsNumber&&(this.playerGpsNumber=e.playerGpsNumber)},playerInputs(t){let e=this.item.playerInputs.find(e=>e.input===t)?this.item.playerInputs.find(e=>e.input===t).value:"";return"1"===e?e='<div class="btn"><span class="yes"><i class="fas fa-check-circle"></i></span></div>':"0"===e&&(e='<div class="btn"><span class="no"><i class="fas fa-times-circle"></i></span></div>'),e},userDetails(t,e){const a=["playerNumber","pay","playerChip","status","playerGpsNumber","isAnonymous","payNumber"];if(a.includes(e)){const t=this.index!==this.openedIndex&&this.index;t&&this.$emit("change-accordion",t)}else"payLink"!==e||this.playerFree?this.$emit("openUserModal",t):this.$emit("openPayLinkModal",t)},async updatePlayer(t){(t.playerNumber||""===t.playerNumber)&&(this.state_number.submitted=!0),t.playerChip&&(this.state_chip.submitted=!0),t.playerGpsNumber&&(this.state_gps.submitted=!0);const e=this.requestField(t);let a=null;e&&(this.requestSeq[e]+=1,a=this.requestSeq[e]),this.pendingCount+=1;try{const n=await this.UPDATE_PLAYERS(t);if(e&&a!==this.requestSeq[e])return;this.applyResponseFields(t,n),this.$emit("update",n)}catch(n){if(e&&a!==this.requestSeq[e])return;t.playerGpsNumber&&(this.state_gps.wrong=!0),t.playerNumber&&(this.state_number.wrong=!0),t.playerChip&&(this.state_chip.wrong=!0),t.playerNumber&&(this.playerNumber=this.item.playerNumber?this.item.playerNumber:""),t.playerChip&&(this.playerChip=this.item.playerChip?this.item.playerChip:"")}finally{this.pendingCount-=1,setTimeout(()=>{this.state_number.accepted=!1,this.state_chip.accepted=!1,this.state_number.wrong=!1,this.state_chip.wrong=!1,this.state_gps.accepted=!1,this.state_gps.wrong=!1},2e3),this.state_number.submitted=!1,this.state_chip.submitted=!1,this.state_gps.submitted=!1}}})},m_=p_,f_=(a("3448"),Object(U["a"])(m_,n_,i_,!1,null,"4db24ee0",null)),h_=f_.exports,b_=a("c28b"),__=a.n(b_),v_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textarea-field",class:{"textarea-field--error":t.error}},[t.label&&t.label.length?e("p",{staticClass:"mab8"},[t._v(" "+t._s(t.label)),t.optional?e("span",{staticClass:"positive"},[t._v("(opcjonalnie)")]):t._e()]):t._e(),e("textarea",{staticClass:"input-field__textarea",attrs:{rows:t.rows},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}
1),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])])},g_=[],y_={mixins:[r_["a"]],props:{rows:{type:Number,required:!0},hint:{type:String,default:""},label:{type:String,default:""},value:{type:[String,Number],default:""},optional:{type:Boolean,default:!1},error:{type:String,default:null}},computed:Object(v["a"])({},Object(R["c"])(["say"]))},C_=y_,w_=(a("ca8a"),Object(U["a"])(C_,v_,g_,!1,null,"61f6f814",null)),k_=w_.exports,x_=function(){var t,e,a=this,n=a._self._c;return n("div",["fi"===a.data.fType?n("panel-input-text",{staticClass:"mab24",attrs:{label:a.data.fNamePl,value:a.$attrs.value,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}}):"fl"===a.data.fType?n("panel-input-area",{staticClass:"mab24",attrs:{label:a.data.fNamePl,value:a.$attrs.value,rows:2,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}}):"fr"===a.data.fType?n("panel-input-radio",{key:`${a.data.fType}_${a.data.id}_key`,staticClass:"mab24",attrs:{name:`${a.data.fType}_${a.data.id}`,label:a.data.fNamePl,value:a.$attrs.value,options:a.radioOptions,error:a.localErrors,wrap:null===(t=a.options)||void 0===t||null===(e=t.fr)||void 0===e?void 0:e.wrap},on:{input:a.radioOnInput,"update:error":function(t){a.localErrors=t}}}):"fs"===a.data.fType?n("panel-input-select",{staticClass:"mab24",attrs:{"select-label":a.data.fNamePl,label:"","track-by":"",options:a.data.fDescriptionPl,"hide-selected":!1,value:a.$attrs.value,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}}):"fj"===a.data.fType?n("panel-input-text",{staticClass:"mab24",attrs:{label:a.data.fNamePl,hint:a.data.fDescriptionPl,value:a.$attrs.value,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}}):"fh"===a.data.fType?n("panel-input-date",{staticClass:"mab24",attrs:{label:a.data.fNamePl,mode:"time","model-config":{type:"string",mask:"hh.mm"},placeholder:"hh.mm",value:a.$attrs.value,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}}):"fd"===a.data.fType?n("panel-input-date",{staticClass:"mab24",attrs:{label:a.data.fNamePl,placeholder:"dd.mm.yyyy",value:a.$attrs.value,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}}):"fc"===a.data.fType?n("panel-input-checkbox",{staticClass:"mab24",attrs:{"checkbox-value":{value:a.data.id,text:a.data.fNamePl||a.data.fDescriptionPl},name:`input_ids_add[${a.data.id}]`,value:a.$attrs.value,error:a.localErrors},on:{input:function(t){return a.$emit("input",t)},"update:error":function(t){a.localErrors=t}}},[a._v(" "+a._s(a.data.fNamePl||a.data.fDescriptionPl)+" ")]):a._e()],1)},O_=[],A_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-radio-field",attrs:{role:"group","aria-labelledby":t.name},on:{change:function(e){return t.$emit("input",e.target.value)}}},[e("p",{staticClass:"mab8",attrs:{id:t.name}},[t._v(t._s(t.label))]),e("div",{staticClass:"panel-radio-field__wrap",class:{"input-field--error":t.error}},[t._l(t.options,(function(a){return[e("div",{staticClass:"panel-radio-wrapper",class:{w100:t.wrap}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],key:`${t.name}_${a.value}`,attrs:{id:`${t.name}_${a.value}`,type:"radio",name:t.name},domProps:{value:a.value,checked:t._q(t.innerValue,a.value)},on:{change:function(e){t.innerValue=a.value}}}),e("label",{attrs:{for:`${t.name}_${a.value}`}},[t._v(t._s(t.say[a.title]||a.title))])])]}))],2),e("span",{staticClass:"panel-input-error input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])])},S_=[],z_={mixins:[r_["a"]],props:{options:{type:Array,required:!0},name:{type:String,required:!0},value:{type:null,default:""},wrap:{type:Boolean,default:!1}},data(){return{innerValue:null}},watch:{innerValue(t){this.$emit("input",t)},value(t){this.innerValue=t}},created(){null===this.value&&void 0===this.value||(this.innerValue="1"===this.value||this.value)},computed:Object(v["a"])({},Object(R["c"])(["say"]))},j_=z_,I_=(a("bec5"),Object(U["a"])(j_,A_,S_,!1,null,"04cf78ba",null)),P_=I_.exports,E_=function(){var t=this,e=t._self._c;return e("div",[t.selectLabel.length>0?e("p",{staticClass:"mab8"}
1,[t._v(t._s(t.selectLabel))]):t._e(),e("multiselect",{class:{"input-field--error":t.error},attrs:{options:t.options,"track-by":t.trackBy,label:t.label,"show-labels":!1,searchable:t.searchable,multiple:t.multiple,limit:t.limit,placeholder:t.placeholder,"max-height":t.maxHeight,"hide-selected":t.hideSelected,"limit-text":t.limitText},scopedSlots:t._u([{key:"tag",fn:function({option:a}){return[e("span",{staticClass:"custom__tag"},[t._v(t._s(a[t.label])+", ")])]}},{key:"option",fn:function({option:a}){return[e("div",{staticClass:"option__desc"},[e("span",{staticClass:"option__title"},[t._v(t._s(t.label?a[t.label]:a))])])]}}]),model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}},[t.multiple?e("template",{slot:"caret"},[t.innerValue&&t.innerValue.length>0?e("span",{staticClass:"caret-count"},[t._v(t._s(t.innerValue.length))]):e("div",{staticClass:"multiselect__select"})]):t._e()],2),e("span",{staticClass:"panel-input-error input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])],1
1)},T_=[],N_=a("8e5f"),R_=a.n(N_),L_={components:{Multiselect:R_.a},props:{selectLabel:{type:String,default:""},value:{type:null,default:""},options:{type:Array,default:()=>[]},label:{type:String,default:"namePl"},trackBy:{type:String,default:"namePl"},searchable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},hideSelected:{type:Boolean,default:!0},limit:{type:Number,default:3},maxHeight:{type:Number,default:200},placeholder:{type:String,default:""},limitText:{type:Function,default(){return""}},error:{type:[String,Object],default:null}},data(){return{innerValue:null}},computed:Object(v["a"])({},Object(R["c"])(["say"])),watch:{innerValue(t){this.$emit("input",t),this.$emit("update:error",null)},value(t){this.innerValue=t}},created(){this.value&&(this.innerValue=this.value)}},M_=L_,D_=(a("8498"),a("893d"),a("e95af"),Object(U["a"])(M_,E_,T_,!1,null,"62643ceb",null)),$_=D_.exports,U_=function(){var t=this,e=t._self._c;return e("div",[t.label.length?e("p",{staticClass:"mab8"},[t._v(" "+t._s(t.label)+" ")]):t._e(),e("DatePicker",{attrs:{mode:t.mode,"model-config":t.modelConfig,popover:{visibility:"hidden"},is24hr:""},scopedSlots:t._u([{key:"default",fn:function({inputValue:n,inputEvents:i,togglePopover:s}){return[e("div",{staticClass:"input-wrap",class:{"input-field--error":t.error}},[e("input",t._g({attrs:{placeholder:t.placeholder},domProps:{value:n}},i)),e("div",{staticClass:"input-icon",on:{click:function(t){return s()}}},[e("img",{attrs:{src:a("6bca")}})])])]}}]),model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}}),e("span",{staticClass:"panel-input-error input-error",class:{"input-error--show":t.error}}
1,[t._v(t._s(t.say[t.error]))])],1)},B_=[],F_=a("404b"),q_=a.n(F_),H_={components:{DatePicker:q_.a},props:{label:{type:String,default:""},placeholder:{type:String,default:""},mode:{type:String,default:"date"},modelConfig:{type:Object,default:()=>({type:"string",mask:"DD.MM.YYYY"})},value:{type:null,default:""},error:{type:String,default:null}},data(){return{innerValue:null}},watch:{innerValue(t){this.$emit("update:error",null),this.$emit("input",t)},value(t){this.innerValue=t}},created(){this.value&&(this.innerValue=this.value)},computed:Object(v["a"])({},Object(R["c"])(["say"]))},G_=H_,W_=(a("d5dd"),Object(U["a"])(G_,U_,B_,!1,null,"17af2c97",null)),V_=W_.exports,K_={name:"PanelInputWrap",props:{data:{type:Object,required:!0},errors:{type:String,default:""},options:{type:Object,default:()=>{}}},components:{PanelInputText:jh,PanelInputArea:k_,PanelInputRadio:P_,PanelInputSelect:$_,PanelInputDate:V_,PanelInputCheckbox:tb},computed:{localErrors:{get(){return this.errors},set(t){return t}},radioOptions(){const t=[];if(this.$props.data.fDescriptionPl&&this.$props.data.fDescriptionPl.length)for(const e of this.$props.data.fDescriptionPl)t.push({value:e,title:e});else t.push({value:!0,title:"Tak"}),t.push({value:"0",title:"Nie"});return t}},methods:{radioOnInput(t){this.$props.data.fDescriptionPl&&this.$props.data.fDescriptionPl.length?this.$emit("input",t):this.$emit("input","true"===t||"0")}}},Z_=K_,Y_=Object(U["a"])(Z_,x_,O_,!1,null,null,null),Q_=Y_.exports,X_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-radio-field",attrs:{role:"group","aria-labelledby":t.name}},[e("p",{staticClass:"mab8",attrs:{id:t.name}},[t._v(t._s(t.label))]),e("div",{staticClass:"panel-radio-field__wrap"},[t._l(t.options,(function(a){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],key:a.value,attrs:{id:`${t.name}_${a.value}`,type:"radio",name:t.name},domProps:{value:a.value,checked:t._q(t.innerValue,a.value)},on:{change:function(e){t.innerValue=a.value}}}),e("label",{key:a.title,attrs:{for:`${t.name}_${a.value}`}},[e("span",[t._v(t._s(t.say[a.title]||a.title))]),t._t("option-addon",null,{option:a,checked:t.innerValue===a.value})],2)]}))],2),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])])},J_=[],tv={mixins:[r_["a"]],props:{options:{type:Array,required:!0},name:{type:String,required:!0},value:{type:null,default:null}},data(){return{innerValue:null}},watch:{innerValue(t){this.$emit("input",t)},value(t){this.innerValue=t}},created(){(this.value||!1===this.value)&&(this.innerValue=this.value)},computed:Object(v["a"])({},Object(R["c"])(["say"]))},ev=tv,av=(a("1b11"),Object(U["a"])(ev,X_,J_,!1,null,"275c5a10",null)),nv=av.exports,iv=function(){var t=this,e=t._self._c;return e("div",[t.label.length?e("p",{staticClass:"mab8"},[t._v(" "+t._s(t.label)+" ")]):t._e(),e("div",{staticClass:"input-field panel-input-autocomplete",class:{"input-field--error":t.error,focused:t.focused}},[e("v-select",{ref:"vselect",staticClass:"autocompleter-competition__input",attrs:{label:t.optionLabel,options:t.suggestions,"no-drop":0===this.suggestions.length,"append-to-body":!0,value:t.value,filterable:!1,"clear-search-on-select":t.clearSearchOnSelect,"clear-search-on-blur":t.clearSearchOnBlur,clearable:t.clearable},on:{search:t.onSearch,input:t.onSelect,"search:blur":function(e){t.focused=!t.focused},"search:focus":function(e){t.focused=!t.focused}},scopedSlots:t._u([{key:"option",fn:function(e){return[t._t("option-data",null,null,e)]}}],null,!0)}),t.$refs.vselect&&t.$refs.vselect.stateClasses["vs--open"]?e("span",{staticClass:"close",on:{click:function(e){return t.$refs.vselect.blur()}}},[e("i",{staticClass:"fas fa-times"})]):t._e()],1),e("span",{staticClass:"panel-input-error input-error",class:{"input-error--show":t.error&&!t.withoutErrorMessage}},[t._v(t._s(t.say[t.error]))])])},sv=[],ov={components:{VSelect:Ur.a},mixins:[r_["a"]],props:{action:{type:String,required:!0,validator:t=>[g["j"]].includes(t)},actionId:{type:Number,required:!0},onlyPoland:{type:Boolean,default:!1},clearSearchOnSelect:{type:Boolean,default:!1},clearSearchOnBlur:{type:Function,default:()=>!1},clearable:{type:Boolean,default:!1},optionLabel:{type:String,default:"label"}},data(){return{suggestions:[],session:0,focused:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say"])),{},{isMobile(){return["sm","md"].includes(this.$mq)}}),mounted(){""!==this.value&&(this.$refs.vselect.search=this.value)},methods:{onSearch(t,e){this.$emit("input",t),t!==this.value&&(e(!0),this.autocomplete(e,t,this))},onSelect(t){this.$refs.vselect.search=t.lastname,this.$emit("select",t)},autocomplete:qe.a.debounce(async(t,e,a)=>{let n;a.session+=1;const{session:i}=a;if(e){const t=await a.$store.dispatch(a.action,{id:a.actionId,search:e});t&&(n=t)}else n=[];t(!1),i===a.session&&(a.suggestions=n)},250)}},rv=ov,lv=(a("4830"),Object(U["a"])(rv,iv,sv,!1,null,"12ffc116",null)),cv=lv.exports,dv=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"welcome"},["list"===t.role?e("p",[e("b",[t._v("Wybierz kolumny z imieniem, nazwiskiem, datą urodzenia i płcią.")]),t._v("Opcjonalnie wskaż inne kolumny np. numer startowy.")]):"chip"===t.role?e("p",[e("b",[t._v("Wybierz kolumny z numerem startowym i numerem chip.")])]):t._e()]),e("div",{staticClass:"wrap"},[e("swiper",{ref:"carousel",class:{"fog fog-left":t.isNavLeft,"fog fog-right":t.isNavRight},attrs:{options:t.swiperOption},on:{slideChange:t.slideChanged}},[t._l(t.data[0].length,(function(a){return e("swiper-slide",{key:a},[e("div",{staticClass:"item"},[e("div",{staticClass:"header"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.headers[a-1],expression:"headers[index - 1]"}],staticClass:"select",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.headers,a-1,e.target.multiple?n:n[0])}}},t._l(t.headersData,(function(a,n){return e("option",{key:n,domProps:{value:a.value}},[t._v(t._s(a.name))])})),0)]),e("div",{staticClass:"body"},t._l(t.data,(function(n){return e("div",{staticClass:"body-item"},[t._v(" "+t._s(n[a-1])+" ")])})),0)])])})),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isNavLeft,expression:"isNavLeft"}],staticClass:"nav-btn button-prev",attrs:{slot:"button-prev"},slot:"button-prev"},[e("svg",{attrs:{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M1.70711 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H1.70711L4.85355 8.14645C5.04882 8.34171 5.04882 8.65829 4.85355 8.85355C4.65829 9.04882 4.34171 9.04882 4.14645 8.85355L0.146447 4.85355C-0.0488155 4.65829 -0.0488155 4.34171 0.146447 4.14645L4.14645 0.146447C4.34171 -0.0488155 4.65829 -0.0488155 4.85355 0.146447C5.04882 0.341709 5.04882 0.658291 4.85355 0.853553L1.70711 4Z",fill:"white"}})])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isNavRight,expression:"isNavRight"}],staticClass:"nav-btn button-next",attrs:{slot:"button-next"},slot:"button-next"},[e("svg",{attrs:{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10.2929 5H0.5C0.223858 5 0 4.77614 0 4.5C0 4.22386 0.223858 4 0.5 4H10.2929L7.14645 0.853553C6.95118 0.658291 6.95118 0.341709 7.14645 0.146447C7.34171 -0.0488155 7.65829 -0.0488155 7.85355 0.146447L11.8536 4.14645C12.0488 4.34171 12.0488 4.65829 11.8536 4.85355L7.85355 8.85355C7.65829 9.04882 7.34171 9.04882 7.14645 8.85355C6.95118 8.65829 6.95118 8.34171 7.14645 8.14645L10.2929 5Z",fill:"white"}})])])],2)],1)])},uv=[],pv={name:"PanelUploadTable",components:{Swiper:Ws["Swiper"],SwiperSlide:Ws["SwiperSlide"]},props:{data:{type:Array,required:!0},headersData:{type:Array,required:!1,default:()=>[{name:"Pomiń kolumnę",value:"hidden"},{name:"Imię",value:"firstname"},{name:"Nazwisko",value:"lastname"},{name:"Płeć (K/M)",value:"gender"},{name:"Data urodzenia (DD.MM.YYYY)",value:"birthdate"},{name:"Miasto",value:"city"},{name:"Email",value:"email"},{name:"Telefon",value:"phone"},{name:"Klub",value:"clubname"},{name:"Skrót klasyfikacji",value:"classification"},{name:"Numer startowy",value:"playerNumber"},{name:"Kategoria dodatkowa (Tak/Nie)",value:"special_category"},{name:"Opłacony (Tak/Nie)",value:"pay"}]},role:{type:String,default:""}},data(){return{swiperOption:{initialSlide:this.data[0].length>3?1:0,slidesPerView:this.data[0].length>3?4:this.data[0].length,centeredSlides:this.data[0].length>3,navigation:{nextEl:".button-next",prevEl:".button-prev"}},isNavLeft:!1,isNavRight:this.data[0].length>3,headers:[],activeIndex:1}},watch:{headers:function(){this.$emit("change",this.headers)}},computed:{dataLength(){return this.data[0].length}},created(){this.data[0].forEach(t=>{"list"===this.$props.role?this.headers.push("hidden"):this.headers.push("null")})},methods:{slideChanged(){const t=this.dataLength>5?this.dataLength-2:this.dataLength;this.activeIndex=this.$refs.carousel.$swiper.activeIndex,this.activeIndex>1&&this.activeIndex<this.dataLength?this.isNavLeft=!0:this.isNavLeft=!1,this.activeIndex>=t?this.isNavRight=!1:this.isNavRight=!0}}},mv=pv,fv=(a("374a"),Object(U["a"])(mv,dv,uv,!1,null,"07addd22",null)),hv=fv.exports,bv=a("7677");Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"})),Object(Pc["c"])("birthdayValidator",{message:"required_field",validate(t){const e=Object(Ht["a"])(new Date(t))?new Date(t):new Date(t.split(".")[2],t.split(".")[1],t.split(".")[0]);return Object(bv["a"])(new Date("1900"),e)&&Object(bv["a"])(e,new Date)}});var _v={name:"PanelCompetitionList",directives:{clickOutside:__.a.directive},components:{Modal:$t["a"],PerfectScrollbar:e_["PerfectScrollbar"],BaseInputCheckbox:a_["default"],PanelCompetitionListTableRow:h_,PanelInputArea:k_,PanelInputWrap:Q_,PanelInputText:jh,PanelInputRadio:P_,PanelInputDate:V_,PanelInputSelect:$_,PanelInputSwitch:nv,PanelInputAutocomplete:cv,PanelUploadTable:hv,ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},mixins:[$n["a"]],props:{id:{type:Number,required:!0}},data(){return{headersForUploadList:[],uploadListDataKey:0,uploadListLoader:!1,isUploadListWrapOpen:!1,uploadListData:[],importListLength:0,uploadSuccess:!1,uploadError:!1,uploadErrorMsg:null,uploadDataContainer:null,chipHeadersData:[{name:"Wybierz",value:null},{name:"Numer startowy",value:"playerNumber"},{name:"Numer chip",value:"playerChip"}],isWaiting:!1,isQRWaiting:!1,ready:!1,loading:!1,search:"",headersDefault:[{text:"lp.",value:"ordinalNumber"},{text:"Nazwisko",value:"lastname"},{text:"Imię",value:"firstname"},{text:"Nr start.",value:"playerNumber"},{text:"Płeć",value:"gender"},{text:"Wiek",value:"playerAge"},{text:"Kategoria",value:"ageCategory"},{text:"Klasyfikacja",value:"classification"},{text:"Udział",value:"status"},{text:"Link do płatności",value:"payLink"},{text:"Opłata",value:"pay"}],headers:[{text:"lp.",value:"ordinalNumber",checked:!0},{text:"Nazwisko",value:"lastname",checked:!0},{text:"Imię",value:"firstname",checked:!0},{text:"Nr start.",value:"playerNumber",checked:!0},{text:"Chip",value:"playerChip",checked:!1}
1,{text:"Gps",value:"playerGpsNumber",checked:!1},{text:"Płeć",value:"gender",checked:!0},{text:"Data urodzenia",value:"birthTime",checked:!1},{text:"Wiek",value:"playerAge",checked:!0},{text:"Kategoria",value:"ageCategory",checked:!0},{text:"Klasyfikacja",value:"classification",checked:!0},{text:"Zapłacona suma",value:"payment",checked:!1},{text:"Data Opłaty",value:"payedTime",checked:!1},{text:"Numer telefonu",value:"phone",checked:!1},{text:"Numer tel. ICE",value:"icePhone",checked:!1},{text:"Państwo",value:"country",checked:!1},{text:"Miasto",value:"city",checked:!1},{text:"Adres e-mail",value:"email",checked:!1},{text:"Klub",value:"clubname",checked:!1},{text:"Data rejestracji",value:"addedTime",checked:!1},{text:"Adres",value:"address",checked:!1},{text:"Udział",value:"status",checked:!0},{text:"Link do płatności",value:"payLink"},{text:"Opłata",value:"pay",checked:!0},{text:"Notatka",value:"notes",checked:!1},{text:"Anonimowy",value:"isAnonymous",checked:!1},{text:"Data odbioru pakietu",value:"confirmedQrAt",checked:!1},{text:"Punkt odbioru",value:"pickupPointIdentifier",checked:!1}],inputs:null,frontColumn:{competition:this.id,checked:!1,text:this.$attrs.competition.frontColumn?this.$attrs.competition.frontColumn:null,value:"frontColumn"},additionalHeaders:[],supportHeaders:[],clickedId:null,openedIndex:-1,form:{firstname:"",lastname:"",gender:null,birthTime:null,city:"",country:"POL",phone:"",email:"",clubname:"",playerNumber:"",playerChip:"",category:null,icePhone:"",playerGpsNumber:"",pay:!1,playerAge:null,playerInputs:{},frontInfo:"",notes:null,isAnonymous:!1,classification:"",status:null,refundAmount:null},placeClassification:null,playerCycle:[],playerShop:[],buttonsTabs:"additional-fields",panelPlayers:null,errors:{},tableUpdateKey:0,unicodeForDownload:{namePl:"utf-8"},unicodeForSelect:[{namePl:"utf-8"},{namePl:"latin"}],genderIssue:!1,tablesort:{column:"1",reverse:!1},playerPayLink:"",playerQRCode:"",playerPayCopied:!1,playerStatus:[{value:0,name:"Udział"},{value:1,name:"Brak udziału"},{value:2,name:"Nie Ukończył"},{value:3,name:"Dyskwalifikacja"}],playerListItems:[],refundLoading:!1,refundSubmitting:!1,refundModal:{playerId:null,firstname:"",lastname:"",amount:null,currency:"PLN"}}},watch:{"form.firstname":Object(Fe["debounce"])((function(t){this.form.id||this.autoGender(t),this.genderIssueTrigger()}),500),"form.gender":Object(Fe["debounce"])((function(){this.genderIssueTrigger()}),500),"form.birthTime":Object(Fe["debounce"])((function(){this.birthTimeIssueTrigger()}),500)},async created(){if(await Promise.all([this.READ_PANEL_COMPETITION_PLAYERS(this.id),this.READ_PANEL_COMPETITION_PLAYERS_INPUTS(this.id),this.READ_COMPETITION_CLASSIFICATIONS(this.id)]).then(t=>{this.panelPlayers=t[0],this.inputs=t[1],this.makePlayerList()}),this.competition&&null!==this.competition.cycle&&this.headers.push({text:"Opłata za numer",value:"payNumber",checked:!1}),ke.a.get("ds-default-panelcompetitionlist-headers")){const t=JSON.parse(ke.a.get("ds-default-panelcompetitionlist-headers"));this.headersDefault=t;for(const e of this.headers)e.checked=!1;this.competition&&null===this.competition.cycle&&this.headersDefault.find(t=>"payNumber"===t.value)&&(this.headersDefault=this.headersDefault.filter(t=>"payNumber"!==t.value));for(const e of t)this.headers.find(t=>t.value===e.value)&&(this.headers.find(t=>t.value===e.value).checked=e.checked)}if(ke.a.get("ds-default-panelcompetitionlist-headers-additional")){const t=JSON.parse(ke.a.get("ds-default-panelcompetitionlist-headers-additional"));for(const e of t){const t=this.inputsAdditionalInformation.find(t=>t.id===e.value);t&&(this.headersDefault=[...this.headersDefault,e]),this.additionalHeaders.push(e)}}if(ke.a.get("ds-default-panelcompetitionlist-headers-support")){const t=JSON.parse(ke.a.get("ds-default-panelcompetitionlist-headers-support"));for(const e of t){const t=this.inputsSupportInformation.find(t=>t.id===e.value);t&&(t.checked=!0,this.headersDefault=[...this.headersDefault,e]),this.supportHeaders.push(e)}}if(ke.a.get("ds-default-panelcompetitionlist-headers-frontColumn")){const t=JSON.parse(ke.a.get("ds-default-panelcompetitionlist-headers-frontColumn")),e=t.find(t=>t.competition===this.$attrs.competition.id);e&&(this.headersDefault=[...this.headersDefault,e],this.frontColumn=e)}this.ready=!0},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","isZenMode","competitions","classifications","classificationsBy","categories","competitionsSettings"])),{},{isMobile(){return["sm","md"].includes(this.$mq)},competition(){return this.competitions[this.id]},isQRCodeVisible(){var t;return null===(t=this.competitionsSettings[this.id])||void 0===t?void 0:t.canQR},classificationsForSelect(){const t=this.classificationsBy(this.competition);return t},specialCategories(){const t=this.placeClassification?this.placeClassification.classificationSetting:0,e=this.categories,a=Object.values(e),n=a.filter(e=>e.special&&e.classification===t);return n},inputsAdditionalInformation(){const t=this.inputs?this.inputs:[];return t},inputsSupportInformation(){const t=[{competition:this.id,fNamePl:"",fType:"fc",isPublic:!1,checked:!1}
1,{competition:this.id,fNamePl:"",fType:"fc",isPublic:!1,checked:!1}],e=this.inputs.filter(t=>"fc"===t.fType&&!t.isPublic);if(e.length>0)for(const n of e)n.oldName=n.fNamePl;const a=e.length>0?[...new Set([...e,...t].map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):t;return a.length=2,a},inputsSupportFormUser(){const t=this.inputs?this.inputs.filter(t=>"fc"===t.fType&&!t.isPublic):[];return t},isFormRefunded(){return null!=this.form.refundAmount},canRefundPlayer(){return Boolean(this.form.id&&this.form.pay&&null==this.form.refundAmount)}}),methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["K"],g["sd"],g["hb"],g["tc"],g["uc"],g["Lb"],g["ld"],g["J"],g["rd"],g["gb"],g["yc"],g["zc"],g["vc"]])),Object(R["d"])([ce["J"]])),{},{makePlayerList(){let t=0;const e=[];for(const a in this.panelPlayers){t+=1;const n=this.panelPlayers[a],i=this.playerItemDetails(n);e.push(i)}this.playerListItems=e},navigateTo(t){this.$router.push({name:t,params:this.competition,alias:!0})},tableSortUpdate(t){this.tablesort.column=t.sortColumn.toString(),this.tablesort.reverse=t.sortReverse},fullScreenTrigger(){this.$refs.stickyHeader.classList.toggle("fixed-scroll"),document.body.classList.toggle("pt-scroll"),this.SET_ZEN_MODE(!this.isZenMode)},changeLastname(t){this.form.lastname=t},updatePlayer(t){const e=this.playerListItems.findIndex(e=>e.id===t.id);if(-1===e)return;const a=this.playerListItems[e].key,n=this.playerItemDetails(t);n.key=a,this.$set(this.playerListItems,e,n)},tableKey:Object(Fe["debounce"])((function(){this.tableUpdateKey+=1}),100),guid(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))},playerItemDetails(t){const e=[];let a=null;const n=Array.isArray(t.category)?t.category:[];for(let i=0;i<n.length;i++){const t=n[i];this.categories[t]&&this.categories[t].special&&e.push(this.categories[t])}return null!==t.status&&(a=this.playerStatus.filter(e=>e.value===t.status)[0]),{id:t.id,playerNumber:t.playerNumber,lastname:t.lastname,firstname:t.firstname,gender:t.gender,birthTime:f()(t.birthTime).format("DD.MM.YYYY"),playerAge:t.playerAge,ageCategory:this.categories[t.ageCategory]?this.categories[t.ageCategory].short:"",category:e,classification:this.classifications[t.classification]?this.classifications[t.classification].short:"",placeClassification:this.classifications[t.classification]?this.classifications[t.classification]:null,pay:t.pay,payNumber:t.payNumber,payedTime:t.payedTime?f()(t.payedTime).format("DD.MM.YYYY"):null,payment:t.payment?`${t.payment.amount} ${t.payment.currency}`:"",refundAmount:null!=t.refundAmount?t.refundAmount:null,refundedAt:t.refundedAt||null,refund:t.refund||!1,phone:t.phone,icePhone:t.icePhone,country:t.country,city:t.city,email:t.email,clubname:t.clubname,playerChip:t.playerChip,addedTime:t.addedTime?f()(t.addedTime).format("DD.MM.YYYY"):null,address:t.address,playerGpsNumber:t.playerGpsNumber,status:a,playerInputs:t.playerInputs,token:t.token,frontInfo:t.frontInfo,notes:t.notes,isAnonymous:t.isAnonymous,confirmedQrAt:t.confirmedQrAt?f()(t.confirmedQrAt).format("YYYY-MM-DD HH:mm"):null,pickupPointIdentifier:t.pickupPointIdentifier||null,key:this.guid()}},genderIssueTrigger(){"M"===this.form.gender&&"a"===this.form.firstname.slice(-1).toLowerCase()||"K"===this.form.gender&&"a"!==this.form.firstname.slice(-1).toLowerCase()?this.genderIssue=!0:this.genderIssue=!1},birthTimeIssueTrigger(){if(this.form.birthTime){const t=f()(new Date(this.form.birthTime.split(".").reverse().join("-"))).toDate(),e=f()().diff(t,"years");this.errors.birthTime=e>99?"wrong_format_date":null}},autoGender(t){if(t){const e="a"===t.slice(-1).toLowerCase();this.form.gender=e?"K":"M"}},async updateCompetition(){const t=Object(v["a"])(Object(v["a"])({},this.$attrs.competition),{},{frontColumn:this.frontColumn.text});await this.UPDATE_COMPETITION(t)},async createPlayerInputs(t,e=!1){const a=await this.CREATE_PANEL_COMPETITION_PLAYERS_INPUTS(t),n=this.inputsSupportInformation.findIndex(t=>t.fNamePl===a.fNamePl);this.inputsSupportInformation[n]=a,this.inputsSupportInformation[n].checked=e,e&&this.supportHeaders.push({competition:a.competition,text:a.fNamePl,value:a.id})},async updatePlayerInputs(t,e=null){const a={competition:t.competition,id:t.id,fNamePl:t.fNamePl,fType:t.fType,isPublic:!1},n=await this.UPDATE_PANEL_COMPETITION_PLAYERS_INPUTS(a),i=this.inputsSupportInformation.findIndex(t=>t.fNamePl===n.fNamePl),s=this.supportHeaders.findIndex(t=>t.text===n.fNamePl);null!==e&&(this.inputsSupportInformation[i].checked=e),!1===e&&-1!==s?this.supportHeaders.splice(s,1):!0===e&&this.supportHeaders.push({competition:n.competition,text:n.fNamePl,value:n.id}),this.inputsSupportInformation[i].oldName=n.fNamePl},async removePlayerInput(t){await this.DELETE_PANEL_COMPETITION_PLAYERS_INPUTS(t);const e=await this.READ_PANEL_COMPETITION_PLAYERS_INPUTS(this.$attrs.competition.id);this.inputs=e},defaultUploadModalData(){this.uploadListLoader=!1,this.isUploadListWrapOpen=!1,this.uploadListData=[],this.importListLength=0,this.uploadSuccess=!1,this.uploadError=!1,this.uploadErrorMsg=null,this.uploadDataContainer=null},defaultUserModalData(){this.errors={},this.placeClassification=null,this.playerCycle=[],this.playerShop=[],this.playerIdToRemove=null,this.form={firstname:"",lastname:"",gender:null,birthTime:null,city:"",country:"POL",phone:"",email:"",clubname:"",playerNumber:"",playerChip:"",category:null,ageCategory:null,icePhone:"",playerGpsNumber:"",pay:!1,playerAge:null,playerInputs:{},frontInfo:"",notes:null,isAnonymous:!1,classification:"",status:null,confirmedQrAt:null,pickupPointIdentifier:null,refundAmount:null}},async saveDefaultHeaders(){for(const n of this.inputsSupportInformation)await this.changeSupportsInput
1s(n);let t=this.headers.filter(t=>t.checked);if(ke.a.set("ds-default-panelcompetitionlist-headers",JSON.stringify(t),{expires:365}),this.additionalHeaders.length>0)for(const n of this.additionalHeaders){const e=this.inputsAdditionalInformation.find(t=>t.id===n.value);e&&(t=[...t,n])}if(ke.a.set("ds-default-panelcompetitionlist-headers-additional",JSON.stringify(this.additionalHeaders),{expires:365}),this.supportHeaders.length>0)for(const n of this.supportHeaders){const e=this.inputsSupportInformation.find(t=>t.id===n.value);e&&(t=[...t,n])}ke.a.set("ds-default-panelcompetitionlist-headers-support",JSON.stringify(this.supportHeaders),{expires:365});let e=[];if(ke.a.get("ds-default-panelcompetitionlist-headers-frontColumn")){const t=JSON.parse(ke.a.get("ds-default-panelcompetitionlist-headers-frontColumn"));e.push(...t)}if(this.frontColumn.checked)t=[...t,this.frontColumn],e.push(this.frontColumn);else{const t=e.filter(t=>t.competition!==this.$attrs.competition.id);e=t}const a=[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t));ke.a.set("ds-default-panelcompetitionlist-headers-frontColumn",JSON.stringify(a),{expires:365}),null!==this.frontColumn.text&&this.frontColumn.text!==this.$attrs.competition.frontColumn&&this.updateCompetition(),this.headersDefault=t,this.$refs.optionsModal.closeModal()},callDebounceSupportsInputs:Object(Fe["debounce"])((function(t){this.changeSupportsInputs(t)}),500),async changeSupportsInputs(t){const{id:e,fNamePl:a,checked:n}=t;if(a.length>0)if(e){const t=this.inputsSupportInformation.find(t=>t.id===e);t.fNamePl=a,await this.updatePlayerInputs(t,n)}else{const t={competition:this.id,fNamePl:a,fType:"fc",isPublic:!1};await this.createPlayerInputs(t,n)}else if(e){const t=this.supportHeaders.findIndex(t=>t.value===e);-1!==t&&this.supportHeaders.splice(t,1),await this.removePlayerInput(e)}},showCompetitionPanel(t){this.buttonsTabs=t},onClickOutside(){this.openedIndex=-1},openUploadModal(){this.$refs.uploadModal.openModal()},openDownloadModal(){this.$refs.downloadModal.openModal()},async openQRModal(){this.isQRWaiting=!0;try{await Pt["a"].get(`panel/players/${this.form.id}/qr`,{responseType:"blob"}).then(t=>{this.playerQRCode=URL.createObjectURL(t)})}catch(t){return}finally{this.isQRWaiting=!1,this.$refs.playerQRModal.openModal()}},openPayLinkModal(t){const e=this.$router.resolve({name:"minisite-pay",params:{name:this.competition.name,id:this.competition.id,token:t.token},alias:!0});this.playerPayLink=`${window.location.protocol}//${window.location.hostname}${e.href}`,this.$refs.payLinkModal.openModal()},copyPayLinkTrigger(){navigator.clipboard.writeText(this.playerPayLink).then(()=>{this.playerPayCopied=!0,setTimeout(()=>this.playerPayCopied=!1,3e3)},()=>{})},formatRefundAmount(t){return null==t||Number.isNaN(Number(t))?"—":new Intl.NumberFormat("pl-PL",{style:"currency",currency:this.refundModal.currency||"PLN"}).format(Number(t))},resetRefundModal(){this.refundModal={playerId:null,firstname:"",lastname:"",amount:null,currency:"PLN"},this.refundLoading=!1,this.refundSubmitting=!1},async openRefundModal(){if(this.canRefundPlayer&&!this.refundLoading){this.refundLoading=!0;try{const t=await this.READ_PANEL_PLAYER_PRICE(this.form.id),e=t&&t.payment?t.payment:null,a=e&&null!=e.amount?Number(e.amount):null;if(null==a||Number.isNaN(a))return void(this.errors={pay:"Brak danych o opłacie do zwrotu"});this.refundModal={playerId:this.form.id,firstname:this.form.firstname,lastname:this.form.lastname,amount:a,currency:e.currency||"PLN"},this.$refs.refundModal.openModal()}catch(t){this.errors=t}finally{this.refundLoading=!1}}},async confirmRefund(){if(!this.refundSubmitting&&null!=this.refundModal.amount){this.refundSubmitting=!0;try{const t=await this.UPDATE_PLAYERS({id:this.refundModal.playerId,refundAmount:this.refundModal.amount});if(this.form.refundAmount=t&&null!=t.refundAmount?t.refundAmount:this.refundModal.amount,t&&t.id&&Array.isArray(t.category))this.updatePlayer(t);else{const t=this.playerListItems.findIndex(t=>t.id===this.refundModal.playerId);if(-1!==t){const e=Object(v["a"])(Object(v["a"])({},this.playerListItems[t]),{},{refundAmount:this.form.refundAmount});this.$set(this.playerListItems,t,e)}}
1if(this.panelPlayers)if(Array.isArray(this.panelPlayers)){const t=this.panelPlayers.findIndex(t=>t.id===this.refundModal.playerId);-1!==t&&this.$set(this.panelPlayers,t,Object(v["a"])(Object(v["a"])({},this.panelPlayers[t]),{},{refundAmount:this.form.refundAmount}))}else this.panelPlayers[this.refundModal.playerId]&&this.$set(this.panelPlayers,this.refundModal.playerId,Object(v["a"])(Object(v["a"])({},this.panelPlayers[this.refundModal.playerId]),{},{refundAmount:this.form.refundAmount}));this.$refs.refundModal.closeModal()}catch(t){this.errors=t}finally{this.refundSubmitting=!1}}},openUserModal(t){const e=this.classificationsBy(this.competition),a=e.filter(t=>t.isDefault);a.length>0&&!this.form.id&&(this.placeClassification=a[0]);for(const n of this.inputsAdditionalInformation)this.form.playerInputs[n.id]={value:null};for(const n of this.inputsSupportFormUser)this.form.playerInputs[n.id]={value:null};if(t){const{id:e,firstname:a,lastname:n,gender:i,birthTime:s,city:o,country:r,phone:l,email:c,clubname:d,playerChip:u,icePhone:p,playerGpsNumber:m,pay:f,playerAge:h,placeClassification:b,playerInputs:_,frontInfo:v,isAnonymous:g,notes:y,category:C,ageCategory:w,status:k,confirmedQrAt:x,pickupPointIdentifier:O,refundAmount:A}=t;if(this.placeClassification=b,_.length>0)for(const t of _)this.form.playerInputs[t.input]={id:t.id,input:t.input,value:t.value};this.form={id:e,firstname:a,lastname:n,gender:i,birthTime:s,city:o,country:r,phone:l,email:c,clubname:d,playerNumber:0===t.playerNumber?"":t.playerNumber.toString(),playerChip:u,category:C,ageCategory:w,icePhone:p,playerGpsNumber:m,pay:f,playerAge:h,playerInputs:this.form.playerInputs,frontInfo:v,notes:y,isAnonymous:g,classification:"",status:k,confirmedQrAt:x,pickupPointIdentifier:O,refundAmount:null!=A?A:null},this.READ_PLAYER_CYCLE(e),this.READ_PLAYER_SHOP(e)}this.$refs.addNewUser.openModal(),this.$nextTick(()=>{["sm","md"].includes(this.$mq)&&this.$refs.userModalScroll.ps.destroy(),this.$refs.formLastname.$el.querySelector(".vs__search").focus()})},birthdayFormatDate(t){const e=new Date(t);return Object(Gt["a"])(e,"dd.MM.yyyy")},selectPlayer(t){this.form.id&&(this.playerIdToRemove=this.form.id);const{firstname:e,lastname:a,gender:n,birthTime:i,city:s,country:o,phone:r,email:l,clubname:c,icePhone:d,playerGpsNumber:u,category:p,ageCategory:m,status:f}=t,h=this.specialCategories.map(t=>t.id),b=p.filter(t=>h.includes(t));this.form={firstname:e,lastname:a,gender:n,birthTime:i,city:s,country:o,phone:r,email:l,clubname:c,playerNumber:"",category:b,ageCategory:m,icePhone:d,playerGpsNumber:u,pay:!1,playerInputs:{},frontInfo:"",notes:null,isAnonymous:!1,classification:"",status:f};for(const _ of this.inputsAdditionalInformation)this.form.playerInputs[_.id]={value:""};for(const _ of this.inputsSupportFormUser)this.form.playerInputs[_.id]={value:""}},async formSubmit(){this.$refs.newPlayerFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.newPlayerFormObserver.fields))if(this.$refs.newPlayerFormObserver.fields[e].invalid){const t=this.$refs.newPlayerFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.newPlayerFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.addNewPlayer()})},async addNewPlayer(){this.isWaiting=!0;const t=Object(v["a"])({},this.form),{playerInputs:e}=this.form;t.classification=this.placeClassification?this.placeClassification.id:"",t.playerInputs=[],t.birthTime&&(t.birthTime=f()(new Date(t.birthTime.split(".").reverse().join("-"))).toDate()),t.category&&t.category.length>0?t.category=t.category.map(t=>t.id):t.category=[],t.status&&Object.keys(t.status).length>0&&(t.status=t.status.value);for(const n in e)if(""!==e[n].value||null!==e[n].value){const a={input:parseFloat(n),value:e[n].value};e[n].id&&(a.id=e[n].id),t.playerInputs.push(a)}if(this.playerIdToRemove){await this.DELETE_PLAYER(this.playerIdToRemove);const t=this.playerListItems.findIndex(t=>t.id===this.playerIdToRemove);this.playerListItems.splice(t,1)}try{if(this.form.id){const e=await this.UPDATE_PLAYERS(t);this.updatePlayer(e)}else{const e=await this.CREATE_PLAYER(t);this.playerListItems.push(this.playerItemDetails(e))}const e=await this.READ_PANEL_COMPETITION_PLAYERS(this.id);this.panelPlayers=e,this.tableUpdateKey+=1,this.$refs.addNewUser.closeModal()}catch(a){return void(this.errors=a)}finally{this.isWaiting=!1}},async downloadCompetition(t){this.isWaiting=!0;const e={Lang:this.unicodeForDownload.namePl};"csv"===t?(e["Content-Type"]="text/csv",e.Accept="text/csv"):"csv-del"===t?(e["Content-Type"]="text/csv+del",e.Accept="text/csv+del"):"xls"===t?(e["Content-Type"]="text/xls",e.A
1ccept="text/xls"):"xls-gep"===t?(e["Content-Type"]="text/xls+gep",e.Accept="text/xls+gep"):"xls-headers"===t?(e["Content-Type"]="text/xls",e.Accept="text/xls",e.Headers=this.headers.filter(t=>t.checked).map(t=>t.value).join(",")):"pdf"===t?(e["Content-Type"]="application/pdf",e.Accept="application/pdf",e.Headers=this.headers.filter(t=>t.checked).map(t=>t.value).join(",")):"pdf-numbers"===t&&(e["Content-Type"]="application/pdf",e.Accept="application/pdf",e.Headers=this.headers.filter(t=>t.checked).map(t=>t.value).join(","),e.Sort="playerNumber");try{const a=await Pt["a"].get(`/panel/competitions/${this.competition.id}/playersInterface`,{responseType:"blob",headers:e,data:{}}),n=this.competition.name.replace(/ /g,"_"),i=`${n}-${this.competition.id}-${t}`;if("pdf"===t||"pdf-numbers"===t){const t=new Blob([a],{type:"application/pdf"}),e=document.createElement("a");e.href=window.URL.createObjectURL(t),e.download=i+".pdf",e.click()}"xls"!==t&&"xls-gep"!==t&&"xls-headers"!==t||Object(Bl["d"])(""+i,a),"csv"!==t&&"csv-del"!==t||Object(Bl["c"])(""+i,a)}finally{this.isWaiting=!1}},async deleteUserFromList(t){this.isWaiting=!0,await this.DELETE_PLAYER(t);const e=this.playerListItems.findIndex(e=>e.id===t);this.playerListItems.splice(e,1),this.tableUpdateKey+=1,this.$refs.addNewUser.closeModal(),this.isWaiting=!1},legacyPanel(){const t=this.$router.resolve({name:"panel-competition-list",params:this.competition,alias:!0});window.open(t.href,"_blank")},uploadWrapTrigger(t){this.uploadDataContainer=t,this.isUploadListWrapOpen=!this.isUploadListWrapOpen},async uploadListInputFileHandler(t){this.isUploadListWrapOpen=!1,this.uploadListLoader=!0;const{files:e}=t.target,[a]=await this.createBase64FileList(e),n=await Pt["a"].post(`/panel/competition/${this.competition.id}/upload/list`,a);this.uploadListData=n,this.uploadListDataKey+=1,this.uploadListLoader=!1},async uploadListTrigger(t=!1){if(this.uploadErrorMsg=null,this.headersForUploadList.includes("birthdate")){this.uploadListLoader=!0;try{const e={headers:this.headersForUploadList,overwrite:t},a=await Pt["a"].post(`/panel/competition/${this.competition.id}/upload/list2`,e);this.importListLength=a,this.uploadSuccess=!0}catch(e){e.response?(console.log(e.response.data),console.log(e.response.status),console.log(e.response.headers)):e.request?console.log(e.request):(console.log("Error",e),e.status&&500===e.status?this.uploadErrorMsg=e.detail:this.uploadErrorMsg=e),this.uploadError=!0}finally{this.uploadListLoader=!1}}else this.uploadError=!0},async uploadChipTrigger(t=!1){if(this.headersForUploadList.includes("playerChip")){this.uploadListLoader=!0;try{const e={headers:this.headersForUploadList,overwrite:t},a=await Pt["a"].post(`/panel/competition/${this.competition.id}/upload/additionalList`,e);this.importListLength=a,this.uploadSuccess=!0}catch(e){e.response?(console.log(e.response.data),console.log(e.response.status),console.log(e.response.headers)):e.request?console.log(e.request):console.log("Error",e.message),this.uploadError=!0}finally{this.uploadListLoader=!1}}else this.uploadError=!0},async refreshTable(){this.$refs.uploadModal.closeModal(),this.ready=!1,await Promise.all([this.READ_PANEL_COMPETITION_PLAYERS(this.id),this.READ_PANEL_COMPETITION_PLAYERS_INPUTS(this.id),this.READ_COMPETITION_CLASSIFICATIONS(this.id)]).then(t=>{this.panelPlayers=t[0],this.inputs=t[1]}),this.ready=!0}})},vv=_v,gv=(a("8a67"),a("19ad"),a("8fbe"),Object(U["a"])(vv,Jb,t_,!1,null,"4d9bc923",null)),yv=gv.exports,Cv=function(){var t=this,e=t._self._c;return t.ready?e("div",{staticClass:"container"},[e("div",{staticClass:"row mat24"},[e("div",{staticClass:"col-lg-9 col-12 dashboard"},[e("div",{staticClass:"dashboard-wrapper"},[!1===t.competitionSetting.canInsuranceOn?e("div",{staticClass:"insurance"},[t._m(0),t._m(1)]):t.competitionSetting.insurancesOn?e("div",{staticClass:"insurance"},[t._m(2),t._m(3),e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.save("off")}}},[t._v("Wyłącz ubezpieczenia")])],1):e("div",{staticClass:"insurance"},[t._m(4),t._m(5),e("base-button",{attrs:{btn1:""},on:{click:function(e){return t.save("on")}}},[t._v("Włącz ubezpieczenia")])],1)])]),t._m(6)])]):t._e()},wv=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-status"},[e("img",{attrs:{src:a("933e"),alt:""}}),e("h2",[t._v("Ubezpieczenia nieaktywne")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-content"},[e("p",[e("b",[t._v("Daj uczestnikom możliwość ubezpieczenia startu w zawodach.")])]),e("p",[t._v("Chcesz uruchomić w swoich zawodach możliwość wykupienia przez uczestników ubezpieczenia rezygnacji z uczestnictwa oraz następstwa nieszczęśliwych wypadków?")]),e("p",[t._v("Dla uczestników to jeden dodatkowy krok w formularzu rejestracyjnym.")]),e("p",{staticClass:"text-green"},[t._v("Włącz płatności automatyczne Dotpay, aby móc uruchomić ubezpieczenia.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-status active"},[e("img",{attrs:{src:a("201b7"),alt:""}}),e("h2",{staticClass:"text-green"},[t._v("Ubezpieczenia aktywne")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-content"},[e("p",[e("b",[t._v("Daj uczestnikom możliwość ubezpieczenia startu w zawodach.")])]),e("p",[t._v("Chcesz uruchomić w swoich zawodach możliwość wykupienia przez uczestników ubezpieczenia rezygnacji z uczestnictwa oraz następstwa nieszczęśliwych wypadków?")]),e("p",[t._v("Dla uczestników to jeden dodatkowy krok w formularzu rejestracyjnym.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-status"},[e("img",{attrs:{src:a("933e"),alt:""}}),e("h2",[t._v("Ubezpieczenia nieaktywne")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"insurance-content"},[e("p",[e("b",[t._v("Daj uczestnikom możliwość ubezpieczenia startu w zawodach.")])]),e("p",[t._v("Chcesz uruchomić w swoich zawodach możliwość wykupienia przez uczestników ubezpieczenia rezygnacji z uczestnictwa oraz następstwa nieszczęśliwych wypadków?")]),e("p",[t._v("Dla uczestników to jeden dodatkowy krok w formularzu rejestracyjnym.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"insurance-box"},[e("p",[t._v("Ubezpieczenia dostarcza")]),e("img",{attrs:{src:a("3652"),alt:""}})])])}],kv={name:"PanelCompetitionInsurance",props:{id:{type:Number,required:!0},competition:{type:Object,required:!0}},data(){return{ready:!0}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitionsSettings"])),{},{competitionSetting(){return this.competitionsSettings[this.id]}}),methods:{async save(t){await Jl()({method:"put",url:`panel/competitions/${this.id}
1/settings`,data:Object(v["a"])(Object(v["a"])({},this.competitionSetting),{},{insurancesOn:"on"===t})}),this.competitionSetting.insurancesOn="on"===t}}},xv=kv,Ov=(a("8f75"),Object(U["a"])(xv,Cv,wv,!1,null,"557b41d8",null)),Av=Ov.exports,Sv=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-settings"},[t.ready?[e("div",{ref:"messages"},[t.successMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.successMessage))])])]):t._e(),t.errorMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.errorMessage))])])]):t._e()],1),e("div",{staticClass:"lang-switcher mab16"},t._l(t.langs,(function(a){return e("button",{key:a,staticClass:"lang-switcher__btn",class:{"lang-switcher__btn--active":t.activeLang===a},attrs:{type:"button"},on:{click:function(e){t.activeLang=a}}},[t._v(" "+t._s(a.toUpperCase())+" ")])})),0),e("panel-competition-regulation-form",{key:t.activeLang,attrs:{saving:t.saving,removing:t.removing},on:{save:t.saveSettings,remove:t.removeStatute},model:{value:t.forms[t.activeLang],callback:function(e){t.$set(t.forms,t.activeLang,e)},expression:"forms[activeLang]"}})]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},zv=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],jv=(a("13d5"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"regulation-form"},[e("panel-competition-form-box",{staticClass:"regulation-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"form-input__label"},[t._v("Regulamin zawodów")]),e("panel-input-base-radio",{attrs:{name:"statuteType",option:{value:"file",title:"Wgraj plik"}},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}}),e("div",{staticClass:"regulation-form__nested",class:{"regulation-form__nested--disabled":"file"!==t.form.type}},[e("base-input-file",{attrs:{"is-multiple":!1,accept:".pdf",converter:"base64",hint:"Wybierz plik",disabled:"file"!==t.form.type},model:{value:t.form.file,callback:function(e){t.$set(t.form,"file",e)},expression:"form.file"}}),t.showFileCurrent?e("div",{staticClass:"regulation-form__file-current mat16"},[e("a",{attrs:{href:t.previewHref,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.currentFileName))]),e("div",{staticClass:"mat8"},[e("base-button",{attrs:{btn2:"",short:"",loading:t.removing,disabled:t.saving||t.removing},on:{click:t.onRemove}},[t._v(" Usuń plik ")])],1)]):t._e()],1),e("panel-input-base-radio",{attrs:{name:"statuteType",option:{value:"link",title:"Regulamin pod linkiem"}},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}}),e("div",{staticClass:"regulation-form__nested",class:{"regulation-form__nested--disabled":"link"!==t.form.type}},[e("panel-input-text",{attrs:{hint:"http://"},model:{value:t.form.link,callback:function(e){t.$set(t.form,"link",e)},expression:"form.link"}})],1)],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Dodaj regulamin w pliku PDF lub podaj link do regulaminu na zewnętrznej stronie. "),e("br"),e("br"),t._v(" Link może prowadzić do strony html lub bezpośrednio do pliku z regulaminem. "),e("br"),e("br"),t._v(" Maksymalny rozmiar pliku: 2,5 MB (PDF). ")])])]),e("div",{staticClass:"regulation-form__actions mat24 mab24"},[e("base-button",{attrs:{btn1:"",loading:t.saving,disabled:t.saving||t.removing},on:{click:t.onSave}},[t._v("Zapisz")])],1)],1)}),Iv=[],Pv={name:"PanelCompetitionRegulationForm",components:{PanelCompetitionFormBox:kh,PanelInputBaseRadio:Kh["default"],PanelInputText:jh},props:{value:{type:Object,required:!0},saving:{type:Boolean,default:!1},removing:{type:Boolean,default:!1}},computed:{form:{get(){return this.value},set(t){this.$emit("input",t)}},current(){return this.form&&this.form.current||{}},showFileCurrent(){return"file"===this.current.type&&Boolean(this.current.path)},currentFileName(){const t=String(this.current.path||"");if(!t)return"";const e=t.split(/[/\\]/);return e[e.length-1]||t},previewHref(){const{path:t}=this.current;return t?/^https?:\/\//i.test(t)||"/"===t.charAt(0)?t:"/"+t:"#"}},methods:{onSave(){this.$emit("save")},onRemove(){this.$emit("remove")}}},Ev=Pv,Tv=(a("b6de"),Object(U["a"])(Ev,jv,Iv,!1,null,"e29f8226",null)),Nv=Tv.exports;const Rv={pl:"statuteLinkPl",en:"statuteLinkEn",de:"statuteLinkDe",cz:"statuteLinkCz",fr:"statuteLinkFr",lt:"statuteLinkLt",ua:"statuteLinkUa"};function Lv(t){const e=String(t||"pl").toLowerCase();return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function Mv(t){return Rv[String(t||"pl").toLowerCase()]||Rv.pl}function Dv(t){return"statuteFile"+Lv(t)}function $v(t,e="pl"){return Pt["a"].get(`panel/competitions/${t}/files/statute`,{params:{lang:e}})}function Uv(t,e,a="pl"){return Pt["a"].post(`panel/competitions/${t}/files/statute`,e,{params:{lang:a}})}function Bv(t,e="pl"){return Pt["a"].delete(`panel/competitions/${t}/files/statute`,{params:{lang:e}})}function Fv(t,e,a){return Pt["a"].put("panel/competitions/"+t,{[Mv(e)]:a})}const qv=["pl","en","de","cz","fr","lt","ua"];function Hv(){return{type:"file",file:[],link:"",current:{exists:!1,path:null,type:null}}}function Gv(){return qv.reduce((t,e)=>(t[e]=Hv(),t),{})}function Wv(t){return/^https?:\/\//i.test(String(t||"").trim())}function Vv(t){const e=String(t||"").trim();return!(!e||Wv(e))&&(!(!/statute_files\//i.test(e)&&!/^\/?files\//i.test(e))||/\.pdf$/i.test(e)&&-1!==e.indexOf("/"))}function Kv(t){const e=String(t||"").trim();return e?/^[a-z][a-z0-9+.-]*:/i.test(e)?e:"http://"+e:""}function Zv(t){if(!t||"string"!==typeof t)return t;const e="base64,",a=t.indexOf(e);return a>=0?t.slice(a+e.length):t}function Yv(t){return"string"===typeof t?t.replace(/^"+|"+$/g,"").trim():t&&"object"===typeof t?"string"===typeof t.path?t.path.trim():"string"===typeof t.url?t.url.trim():"":""}function Qv(t){if(null==t)return"";const e=String(t).trim();return e&&"null"!==e&&"undefined"!==e?e:""}function Xv(t,e){const a=Qv(t);return Vv(a)?"file":a?"link":"file"===e||"link"===e?e:"file"}function Jv(t,e,a){return void 0!==a?Qv(a):t?Qv(t[Mv(e)])||Qv(t[Dv(e)]):""}function tg(t){return!0===t||1===t||"1"===t||!(!t||"object"!==typeof t)&&(!0===t.exists||1===t.exists||"1"===t.exists)}
1function eg(t,e,a,n){const i=Hv(),s=Jv(e,a,n),o=!0===t?s:Yv(t),r=tg(t)||Boolean(o),l=!t||"object"!==typeof t||"file"!==t.type&&"link"!==t.type?null:t.type,c=s||o,d=Boolean(c)||r,u=d?Xv(c||s,l):null;return i.current={exists:d,path:c||null,type:u},d&&"link"===u?(i.type="link",i.link=c):i.type="file",i}var ag={name:"PanelCompetitionSettingRegulation",components:{PanelCompetitionRegulationForm:Nv,PanelInfoBox:ub},props:{competition:{type:Object,required:!0}},data(){return{ready:!1,saving:!1,removing:!1,langs:qv,activeLang:"pl",forms:Gv(),successMessage:"",errorMessage:""}},computed:{competitionId(){return this.competition.id},activeForm(){return this.forms[this.activeLang]||Hv()}},async created(){await this.loadAll(),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])({readPanelCompetition:g["sc"]})),{},{scrollToMessages(){this.$nextTick(()=>{const t=this.$refs.messages;t&&"function"===typeof t.scrollIntoView?t.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,behavior:"smooth"})})},normalizeError(t){return t?"string"===typeof t?t:t.error?t.error:t.message?t.message:"Wystąpił błąd":"Wystąpił błąd"},formFromSources(t,e,a){return eg(e,this.competition,t,a)},async fetchFileInfo(t){try{return await $v(this.competitionId,t)}catch(e){return null}},async loadLang(t,e){const a=await this.fetchFileInfo(t);this.$set(this.forms,t,this.formFromSources(t,a,e))},async loadAll(){this.errorMessage="";const t=await Promise.all(qv.map(async t=>{const e=await this.fetchFileInfo(t);return{lang:t,data:e}})),e=Gv();t.forEach(t=>{e[t.lang]=this.formFromSources(t.lang,t.data)}),this.forms=e},async saveSettings(){const t=this.activeForm,e=this.activeLang;this.saving=!0,this.successMessage="",this.errorMessage="";try{let a;if("file"===t.type){const n=Array.isArray(t.file)?t.file[0]:null;if(n&&n.content){const t=Yv(await Uv(this.competitionId,{name:n.name,content:Zv(n.content),mime:n.mime||"application/pdf"},e));if(!t)throw new Error("Nie udało się wgrać pliku");await Fv(this.competitionId,e,t),a=t}else{if(!t.current||!t.current.exists||"file"!==t.current.type)return void(this.errorMessage="Wybierz plik PDF");a=t.current.path}}else{const n=Kv(t.link);if(!n)return void(this.errorMessage="Podaj link do regulaminu");await Fv(this.competitionId,e,n),a=n}await this.readPanelCompetition(this.competitionId),await this.loadLang(e,a),this.successMessage="Regulamin został zapisany"}catch(a){this.errorMessage=this.normalizeError(a)}finally{this.saving=!1,this.scrollToMessages()}},async removeStatute(){const t=this.activeLang;this.removing=!0,this.successMessage="",this.errorMessage="";try{try{await Bv(this.competitionId,t)}catch(e){}await Fv(this.competitionId,t,""),await this.readPanelCompetition(this.competitionId),await this.loadLang(t,""),this.successMessage="Regulamin został usunięty"}catch(e){this.errorMessage=this.normalizeError(e)}finally{this.removing=!1,this.scrollToMessages()}}})},ng=ag,ig=(a("9a90"),Object(U["a"])(ng,Sv,zv,!1,null,"1fc3ec55",null)),sg=ig.exports,og=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-statement ml-md-30"},[t.ready?[e("panel-competition-form-box",[e("div",{staticClass:"row w100"},[e("div",{staticClass:"col-12 col-md-8"},[e("h5",{staticClass:"mab16"},[t._v("Zgody uczestników")]),e("p",[t._v(" Formularz zgód możesz pobrać w zbiorczym pliku PDF, przygotowanym do wydruku. Indywidualne formularze zgód będą wysyłane do uczestników w mailu potwierdzającym rejestrację w zawodach. ")])]),e("div",{staticClass:"col-12 col-md-4"},[e("base-button",{attrs:{btn2:"",icon:"fas fa-download",disabled:t.loadingPdf,loading:t.loadingPdfBulk},on:{click:t.downloadBulkPdf}},[t._v(" Pobierz zbiorczy plik ")]),e("div",{staticClass:"mat16"},[e("base-button",{attrs:{btn2:"",icon:"fas fa-download",disabled:t.loadingPdf,loading:t.loadingPdfEmpty},on:{click:t.downloadEmptyPdf}},[t._v(" Pobierz pustą kartę ")])],1)],1)]),e("div",{staticClass:"row w100 mat16"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"mab16"},[t._v("Kolejność uczestników w pliku PDF")]),e("div",{staticClass:"radio-wrap-column"},t._l(t.orderOptions,(function(a){return e("panel-input-base-radio",{key:a.value,attrs:{name:"statementOrder",option:a},model:{value:t.order,callback:function(e){t.order=e},expression:"order"}})})),1)])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"row w100"},[e("div",{staticClass:"col-12 col-md-8"},[e("p",{staticClass:"mab16"},[t._v("Format wydruku")]),e("div",{staticClass:"radios2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.perpage,expression:"perpage"}],attrs:{id:"perpage_1",type:"radio"},domProps:{value:1,checked:t._q(t.perpage,1)},on:{change:function(e){t.perpage=1}}}),e("label",{attrs:{for:"perpage_1"}},[t._v(" 1 formularz na stronie A4 "),e("span",{staticClass:"optional"}
1,[t._v("(zawiera zamówienia ze sklepu)")])]),e("br"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.perpage,expression:"perpage"}],attrs:{id:"perpage_2",type:"radio"},domProps:{value:2,checked:t._q(t.perpage,2)},on:{change:function(e){t.perpage=2}}}),e("label",{attrs:{for:"perpage_2"}},[t._v("2 formularze na stronie A4")])])]),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"form-hint-wrap"},[e("p",{staticClass:"form-hint"},[t._v(" Formularz zawierający zamówienia ze sklepu zajmuje całą stronę A4. "),e("br"),e("br"),t._v(" Formularze bez wykazu zakupionych produktów będą umieszczane po dwa na stronie A4. ")])])])])]),e("div",{staticClass:"lang-switcher mat16 mab16"},t._l(t.langs,(function(a){return e("button",{key:a,staticClass:"lang-switcher__btn",class:{"lang-switcher__btn--active":t.activeLang===a},attrs:{type:"button"},on:{click:function(e){t.activeLang=a}}},[t._v(" "+t._s(a.toUpperCase())+" ")])})),0),e("panel-competition-form-box",[e("div",{staticClass:"row w100"},[e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"row mab24 statement-preview"},[e("div",{staticClass:"col-3"},[e("p",{staticClass:"txt--s1"},[t._v("Adam")]),e("p",{staticClass:"txt--s2"},[t._v("Kowalski")])]),e("div",{staticClass:"col-3"},[e("p",{staticClass:"txt--s1"},[t._v("Data urodzenia")]),e("p",{staticClass:"txt--s2"},[t._v("10.10.1990")])]),e("div",{staticClass:"col-3"},[e("p",{staticClass:"txt--s1"},[t._v("Miasto")]),e("p",{staticClass:"txt--s2"},[t._v("Warszawa")])]),e("div",{staticClass:"col-3"},[e("p",{staticClass:"txt--s1"},[t._v("Płeć"),e("span",{staticClass:"pull-right"},[t._v("Nr")])]),e("p",{staticClass:"txt--s2"},[t._v("M"),e("span",{staticClass:"pull-right"},[t._v("123")])])])]),e("p",{staticClass:"mab16"},[t._v("Dodatkowe informacje")]),e("div",{staticClass:"row"},t._l(t.activeStatement.fields,(function(a,n){return e("div",{key:`${t.activeLang}-field-${n}`,staticClass:"col-6 col-md-3 mab8"},[e("base-input-select",{staticClass:"statement-field-select",attrs:{value:a,options:t.fieldOptions,"label-select":"label",reduce:t=>t.value,"is-panel":"",clearable:!1,searchable:!1,placeholder:"Brak"},on:{input:function(e){return t.setField(n,e)}}})],1)})),0)]),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"form-hint-wrap"},[e("p",{staticClass:"form-hint"},[t._v("Wybierz dodatkowe informacje widoczne na wydruku zgody.")])])])])]),t._l(t.activeStatement.contents,(function(a,n){return e("panel-competition-form-box",{key:`${t.activeLang}-content-${n}`,staticClass:"mat16"},[e("div",{staticClass:"row w100"},[e("div",{staticClass:"col-12 col-md-8"},[e("panel-input-area",{attrs:{value:a,label:"Treść z miejscem na podpis",rows:t.contentRows(a)},on:{input:function(e){return t.setContent(n,e)}}})],1),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"form-hint-wrap"},[e("p",{staticClass:"form-hint mat24"},[t._v(" Pod treścią zgody znajduje się miejsce na podpis uczestnika. "),e("br"),e("br"),t._v(" Upewnij się, czy wpisana treść mieści się na wydruku. ")]),e("base-button",{staticClass:"mat16",attrs:{btn2:"",icon:"fas fa-trash"},on:{click:function(e){return t.removeContent(n)}}},[t._v(" Usuń ")])],1)])])])})),e("div",{staticClass:"row mat16 mab24"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"add-new-content-wrap"},[e("base-button",{attrs:{btn2:""},on:{click:t.addContent}},[t._v("Dodaj treść zgody")])],1)])]),e("div",{staticClass:"row mat16 mab64 align-items-center"},[e("div",{staticClass:"col-12 col-md-5"},[e("base-button",{attrs:{btn2:"",icon:"fas fa-trash",disabled:t.loadingDefault,loading:t.loadingDefault},on:{click:t.restoreDefault}},[t._v(" Przywróć domyślną treść zgód ")])],1),e("div",{staticClass:"col-12 col-md-4 offset-md-3"},[e("base-button",{attrs:{btn1:"",disabled:t.saving,loading:t.saving},on:{click:t.save}},[t._v("Zapisz")])],1)])]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},rg=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}];a("3c65");const lg=8;function cg(t){const e=[...t||[]];while(e.length<lg)e.push("");return e.slice(0,lg)}function dg(t){return"1"===t||1===t||!0===t?1:2}function ug(t){const e={},a=[];return Object.keys(t||{}
1).forEach(n=>{const i=/^statement([A-Z][a-z]*)$/.exec(n);if(!i)return;const s=i[1];a.push(s);const o=t[n]||{};e[s]={fields:cg(o.fields),contents:Array.isArray(o.contents)?[...o.contents]:[""]}}),a.sort((t,e)=>"Pl"===t?-1:"Pl"===e?1:0),{statements:e,langs:a}}var pg={name:"PanelCompetitionSettingStatement",components:{PanelCompetitionFormBox:kh,PanelInputBaseRadio:Kh["default"],PanelInputArea:k_},props:{id:{type:Number,required:!0},competition:{type:Object,required:!0}},data(){return{ready:!1,saving:!1,loadingDefault:!1,loadingPdfBulk:!1,loadingPdfEmpty:!1,activeLang:"Pl",langs:[],statements:{},fieldOptions:[],order:"lastname",perpage:1,orderOptions:[{value:"lastname",title:"Alfabetycznie"},{value:"playerNumber",title:"Zgodnie z numeracją"}]}},computed:{loadingPdf(){return this.loadingPdfBulk||this.loadingPdfEmpty},activeStatement(){return this.statements[this.activeLang]||{fields:cg([]),contents:[""]}}},created(){this.load()},methods:{async load(){try{const[t,e]=await Promise.all([Jl.a.get(`panel/competitions/${this.id}/statement`),Jl.a.get(`panel/competitions/${this.id}/statement/fields`)]),{statements:a,langs:n}=ug(t);this.statements=a,this.langs=n.length?n:["Pl"],this.activeLang=this.langs.includes("Pl")?"Pl":this.langs[0],t.statementPl&&(this.perpage=dg(t.statementPl.shop));const i=(null===e||void 0===e?void 0:e.standard)||[],s=(null===e||void 0===e?void 0:e.custom)||[];this.fieldOptions=[...i,...s],this.fieldOptions.some(t=>""===t.value)||this.fieldOptions.unshift({value:"",label:"Brak"})}catch(t){console.error("load statement error:",t)}finally{this.ready=!0}},setField(t,e){const a=this.statements[this.activeLang];a&&this.$set(a.fields,t,null==e?"":e)},setContent(t,e){const a=this.statements[this.activeLang];a&&this.$set(a.contents,t,e)},addContent(){const t=this.statements[this.activeLang];t&&t.contents.push("")},removeContent(t){const e=this.statements[this.activeLang];e&&e.contents.splice(t,1)},contentRows(t){return t&&t.length>400?14:6},buildSavePayload(){const t={};
1return this.langs.forEach(e=>{const a=this.statements[e];a&&(t["statement"+e]={fields:[...a.fields],contents:[...a.contents]})}),t},async save(){this.saving=!0;try{const t=await Jl.a.put(`panel/competitions/${this.id}/statement`,this.buildSavePayload()),{statements:e,langs:a}=ug(t);this.statements=e,this.langs=a.length?a:this.langs,this.langs.includes(this.activeLang)||(this.activeLang=this.langs.includes("Pl")?"Pl":this.langs[0])}catch(t){console.error("save statement error:",t)}finally{this.saving=!1}},async restoreDefault(){this.loadingDefault=!0;try{const t=await Jl.a.post(`panel/competitions/${this.id}/statement/default`);t.statementPl&&(this.$set(this.statements,"Pl",{fields:cg(t.statementPl.fields),contents:Array.isArray(t.statementPl.contents)?[...t.statementPl.contents]:[""]}),this.langs.includes("Pl")||(this.langs=["Pl",...this.langs]),this.activeLang="Pl")}catch(t){console.error("restore default statement error:",t)}finally{this.loadingDefault=!1}},async downloadBulkPdf(){this.loadingPdfBulk=!0;try{const t=await Jl.a.get("panel/statements/competition/"+this.id,{params:{order:this.order,perpage:this.perpage},responseType:"blob"});this.triggerBlobDownload(t,`statements-${this.competition.name||this.id}.pdf`)}catch(t){console.error("download bulk statement pdf error:",t)}finally{this.loadingPdfBulk=!1}},async downloadEmptyPdf(){this.loadingPdfEmpty=!0;try{const t=await Jl.a.get(`panel/statements/competition/${this.id}/empty`,{params:{perpage:this.perpage},responseType:"blob"});this.triggerBlobDownload(t,`statements-empty-${this.competition.name||this.id}.pdf`)}catch(t){console.error("download empty statement pdf error:",t)}finally{this.loadingPdfEmpty=!1}},triggerBlobDownload(t,e){const a=t instanceof Blob?t:new Blob([t],{type:"application/pdf"}),n=window.URL.createObjectURL(a),i=document.createElement("a");i.href=n,i.setAttribute("download",e),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(n)}}},mg=pg,fg=(a("bdea"),Object(U["a"])(mg,og,rg,!1,null,"93fe08e4",null)),hg=fg.exports,bg=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-settings"},[t.ready?[e("div",{ref:"messages"},[t.successMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.successMessage))])])]):t._e(),t.errorMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.errorMessage))])])]):t._e()],1),e("div",{staticClass:"lang-switcher mab16"},t._l(t.langs,(function(a){return e("button",{key:a,staticClass:"lang-switcher__btn",class:{"lang-switcher__btn--active":t.activeLang===a},attrs:{type:"button"},on:{click:function(e){t.activeLang=a}}},[t._v(" "+t._s(a.toUpperCase())+" ")])})),0),e("panel-competition-confirmation-form",{key:t.activeLang,attrs:{saving:t.saving,"sending-test":t.sendingTest},on:{save:t.saveSettings,"send-test":t.sendTest},model:{value:t.forms[t.activeLang],callback:function(e){t.$set(t.forms,t.activeLang,e)},expression:"forms[activeLang]"}})]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},_g=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],vg=function(){var t=this,e=t._self._c;return e("div",{staticClass:"confirmation-form"},[e("panel-competition-form-box",{staticClass:"confirmation-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("panel-input-area",{ref:"messageArea",attrs:{label:"Treść e-maila z potwierdzeniem rejestracji",rows:12},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("div",{staticClass:"confirmation-form__container"},[e("base-button",{staticClass:"confirmation-form__test",attrs:{btn2:"",short:"",icon:"fas fa-envelope",loading:t.sendingTest,disabled:t.saving||t.sendingTest},on:{click:t.onSendTest}},[t._v(" Wyślij na własny adres ")]),e("p",{staticClass:"tags-title mat24"}
1,[t._v("Znaczniki personalizacji")]),e("p",{staticClass:"tags-desc"},[t._v("Kliknij znacznik, aby wstawić go do treści:")]),e("ul",{staticClass:"tags-list"},t._l(t.availableTags,(function(a){return e("li",{key:a.key},[e("button",{staticClass:"tag-btn",attrs:{type:"button"},on:{click:function(e){return t.insertTag(a.key)}}},[t._v("["+t._s(a.key)+"]")]),e("span",{staticClass:"tag-label"},[t._v(t._s(a.label))])])})),0)],1)])]),e("div",{staticClass:"confirmation-form__actions mat24 mab24"},[e("base-button",{attrs:{btn1:"",loading:t.saving,disabled:t.saving||t.sendingTest},on:{click:t.onSave}},[t._v("Zapisz")])],1)],1)},gg=[],yg={name:"PanelCompetitionConfirmationForm",components:{PanelCompetitionFormBox:kh,PanelInputArea:k_},props:{value:{type:String,default:""},saving:{type:Boolean,default:!1},sendingTest:{type:Boolean,default:!1}},data(){return{availableTags:[{key:"firstname",label:"imię"},{key:"lastname",label:"nazwisko"},{key:"date",label:"data startu"},{key:"time",label:"godzina startu"},{key:"classification",label:"klasyfikacja"},{key:"category",label:"kategoria"},{key:"regulations",label:"link do regulaminu"}]}},computed:{content:{get(){return this.value||""},set(t){this.$emit("input",null==t?"":String(t))}}},methods:{insertTag(t){var e,a;const n=`[${t}]`,i=null===(e=this.$refs.messageArea)||void 0===e||null===(a=e.$el)||void 0===a?void 0:a.querySelector("textarea");if(i){var s,o;const t=null!==(s=i.selectionStart)&&void 0!==s?s:i.value.length,e=null!==(o=i.selectionEnd)&&void 0!==o?o:i.value.length,a=this.content;this.content=a.slice(0,t)+n+a.slice(e),this.$nextTick(()=>{i.focus();const e=t+n.length;i.setSelectionRange(e,e)})}else this.content+=n},onSave(){this.$emit("save")},onSendTest(){this.$emit("send-test")}}},Cg=yg,wg=(a("c257"),Object(U["a"])(Cg,vg,gg,!1,null,"32dadab9",null)),kg=wg.exports;function xg(t){return"registerMailContent"+Lv(t)}function Og(t){return null==t?"":String(t).replace(/<br\s*\/?>/gi,"\n").replace(/\r\n/g,"\n").replace(/\r/g,"\n")}function Ag(t){return null==t?"":String(t).replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\n/g,"<br />")}function Sg(t,e,a){return Pt["a"].put("panel/competitions/"+t,{[xg(e)]:a})}function zg(t,e){return Pt["a"].post("/send-test-register/"+t,{information:e})}const jg=["pl","en","de","cz","fr","lt","ua"];function Ig(){return jg.reduce((t,e)=>(t[e]="",t),{})}function Pg(t){if(null==t)return"";const e=String(t);return"null"===e||"undefined"===e?"":e}var Eg={name:"PanelCompetitionSettingConfirmation",components:{PanelCompetitionConfirmationForm:kg,PanelInfoBox:ub},props:{competition:{type:Object,required:!0}},data(){return{ready:!1,saving:!1,sendingTest:!1,langs:jg,activeLang:"pl",forms:Ig(),successMessage:"",errorMessage:""}},computed:{competitionId(){return this.competition.id}},async created(){await this.loadAll(),this.ready=!0},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])({readPanelCompetition:g["sc"]})),{},{scrollToMessages(){this.$nextTick(()=>{const t=this.$refs.messages;t&&"function"===typeof t.scrollIntoView?t.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,behavior:"smooth"})})},normalizeError(t){return t?"string"===typeof t?t:t.error?t.error:t.message?t.message:"Wystąpił błąd":"Wystąpił błąd"},contentFromCompetition(t){return this.competition?Og(Pg(this.competition[xg(t)])):""},loadAll(){const t=Ig();jg.forEach(e=>{t[e]=this.contentFromCompetition(e)}),this.forms=t},async saveSettings(){const t=this.activeLang;this.saving=!0,this.successMessage="",this.errorMessage="";try{await Sg(this.competitionId,t,Ag(this.forms[t])),await this.readPanelCompetition(this.competitionId),this.$set(this.forms,t,this.contentFromCompetition(t)),this.successMessage="Treść e-maila została zapisana"}catch(e){this.errorMessage=this.normalizeError(e)}finally{this.saving=!1,this.scrollToMessages()}},async sendTest(){this.sendingTest=!0,this.successMessage="",this.errorMessage="";try{await zg(this.competitionId,Ag(this.forms[this.activeLang])),this.successMessage="Wiadomość testowa została wysłana"}catch(t){this.errorMessage=this.normalizeError(t)}finally{this.sendingTest=!1,this.scrollToMessages()}}})},Tg=Eg,Ng=(a("5210"),Object(U["a"])(Tg,bg,_g,!1,null,"46c879ea",null)),Rg=Ng.exports,Lg=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat40"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row admin-header"},[t._m(0),e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"buttons-wrap"},[e("base-input-text",{staticClass:"admin-header__search",attrs:{icon:"fas fa-search",label:"Szukaj..."}
1,model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),e("base-button-group",{staticClass:"admin-header__views",attrs:{horizontal:""}},[e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:!0},on:{click:function(e){return t.$router.push({name:"panel-provision-admin",alias:!0})}}},[t._v(" Płatności ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-provision-agreements-admin",alias:!0})}}},[t._v(" Umowy ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:t.filter444446},on:{click:t.toggleFilter444446}},[t._v(" 444446 ")])],1)],1)])])]),t.ready?e("div",{staticClass:"row container-list",class:{"action-open":t.actionOpen}},[e("div",{staticClass:"col-12"},[e("div",{ref:"list"},[e("base-table",{key:t.table,staticClass:"list",attrs:{headers:t.tableHeaders,items:t.items,sortColumnDefault:"0",sortReverseDefault:!0},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"list__row"},t._l(t.tableHeaders,(function(n,i){return e("th",{key:i,staticClass:"list__row-header",on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:n}){return t._l(n,(function(n){return e("tr",{key:n.id,staticClass:"list__row",class:{"list__row--overtime":n.overDate,"list__row--payed":n.payed,"list__row--notpayed":!n.payed}},t._l(t.tableHeaders,(function(i,s){return e("td",{key:s,staticClass:"list__row-data",class:{"list__row-data--name":"competitionName"===i.value,"list__row-data--loading":t.loading,"list__row-data--date":n[i.value]===n.paymentDate,"list__row-data--payed list__row-data--name":n[i.value]===n.payed},on:{click:function(e){"more"===i.value&&t.menuClickHandler(e,n.id)}}},["more"===i.value?[e("div",{ref:n.id,refInFor:!0,staticClass:"more-btn"},[e("i",{staticClass:"fas fa-ellipsis-v"}),t.menuCompetitionId===n.id?e("div",{staticClass:"more-btn__content",class:{"more-btn__content--from-up":t.isMenuCompetitionIdInBottom}},[n.competitionProvisionInvoiceId?e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.getAnInvoice(n.competitionProvisionInvoiceId)}}},[e("i",{staticClass:"fas fa-file-download"}),t._v(" Pobierz fakturę ")]):e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.createAnInvoice(n.competition)}}},[e("i",{staticClass:"fas fa-file-invoice"}),t.errors.createInvoice&&t.errors.createInvoice[n.competition]?e("span",{staticStyle:{color:"red"}},[t._v(t._s(t.errors.createInvoice[n.competition]))]):[t._v("Wystaw fakturę")]],2),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.sendPaymentMessage(n.id)}}},[e("svg",{staticClass:"mar8",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.5 5H4.5C3.11929 5 2 6.11929 2 7.5V16.5096C2 17.8903 3.11929 19.0096 4.5 19.0096H19.5C20.8807 19.0096 22 17.8903 22 16.5096V7.5C22 6.11929 20.8807 5 19.5 5ZM20.1444 6.1451C19.9492 6.05207 19.7307 6 19.5 6H4.5C4.26933 6 4.05081 6.05207 3.85557 6.1451L12 12.8523L20.1444 6.1451ZM3.1431 17.1498C3.14773 17.1451 3.15247 17.1405 3.15732 17.1359L8.9772 11.6584L3.18215 6.88597C3.16951 6.87556 3.15752 6.86466 3.14617 6.85332C3.05247 7.04913 3 7.26844 3 7.5V16.5096C3 16.7386 3.05132 16.9557 3.1431 17.1498ZM3.84675 17.8603C4.04422 17.956 4.26584 18.0096 4.5 18.0096H19.5C19.7342 18.0096 19.9558 17.956 20.1533 17.8603L14.2446 12.2992L12.3179 13.886C12.1332 14.038 11.8668 14.038 11.6821 13.886L9.75538 12.2992L3.84675 17.8603ZM21 16.5096C21 16.7386 20.9487 16.9557 20.8569 17.1498C20.8523 17.1451 20.8475 17.1405 20.8427 17.1359L15.0228 11.6584L20.8179 6.88597C20.8305 6.87556 20.8425 6.86466 20.8538 6.85333C20.9475 7.04914 21 7.26844 21 7.5V16.5096Z",fill:"#455A64"}})]),e("span",{staticClass:"sended",staticStyle:{display:"none"}},[t._v("Wiadomość wysłana")]),e("span",{staticClass:"send"},[t._v("Wyślij wiadmość o płatności")])]),n.payed?e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.sendPaymentStatus(n.id,!1)}}},[e("svg",{staticClass:"mar8",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2.5 2.53125C4.02083 1.01042 5.85417 0.25 8 0.25C10.1458 0.25 11.9688 1.01042 13.4688 2.53125C14.9896 4.03125 15.75 5.85417 15.75 8C15.75 10.1458 14.9896 11.9792 13.4688 13.5C11.9688 15 10.1458 15.75 8 15.75C5.85417 15.75 4.02083 15 2.5 13.5C1 11.9792 0.25 10.1458 0.25 8C0.25 5.85417 1 4.03125 2.5 2.53125ZM3.5625 12.4375C4.79167 13.6458 6.27083 14.25 8 14.25C9.72917 14.25 11.1979 13.6458 12.4062 12.4375C13.6354 11.2083 14.25 9.72917 14.25 8C14.25 6.27083 13.6354 4.80208 12.4062 3.59375C11.1979 2.36458 9.72917 1.75 8 1.75C6.27083 1.75 4.79167 2.36458 3.5625 3.59375C2.35417 4.80208 1.75 6.27083 1.75 8C1.75 9.72917 2.35417 11.2083 3.5625 12.4375ZM11.1875 6.0625L9.25 8L11.1875 9.9375C11.3542 10.125 11.3542 10.3021 11.1875 10.4688L10.4688 11.1875C10.3021 11.3542 10.125 11.3542 9.9375 11.1875L8 9.25L6.0625 11.1875C5.875 11.3542 5.69792 11.3542 5.53125 11.1875L4.8125 10.4688C4.64583 10.3021 4.64583 10.125 4.8125 9.9375L6.75 8L4.8125 6.0625C4.64583 5.875 4.64583 5.69792 4.8125 5.53125L5.53125 4.8125C5.69792 4.64583 5.875 4.64583 6.0625 4.8125L8 6.75L9.9375 4.8125C10.125 4.64583 10.3021 4.64583 10.4688 4.8125L11.1875 5.53125C11.3542 5.69792 11.3542 5.875 11.1875 6.0625Z",fill:"#455A64"}})]),t._v(" Oznacz jako nieopłacony ")]):e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.sendPaymentStatus(n.id,!0)}}},[e("svg",{staticClass:"mar8",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.8536 9.14645C15.6583 8.95118 15.3417 8.95118 15.1464 9.14645L10.5 13.7929L8.85355 12.1464C8.65829 11.9512 8.34171 11.9512 8.14645 12.1464C7.95118 12.3417 7.95118 12.6583 8.14645 12.8536L10.1464 14.8536C10.3417 15.0488 10.6583 15.0488 10.8536 14.8536L15.8536 9.85355C16.0488 9.65829 16.0488 9.34171 15.8536 9.14645Z",fill:"#455A64"}})]),t._v(" Oznacz jako opłacony ")]),e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$router.push({name:"panel-competition-dashboard",params:{name:n.competitionName,id:n.competition},alias:!0})}}},[e("svg",{staticClass:"mar8",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 3.5C10 3.77614 10.2239 4 10.5 4H18.5C19.3284 4 20 4.67157 20 5.5V18.5C20 19.3284 19.3284 20 18.5 20H10.5C10.2239 20 10 20.2239 10 20.5C10 20.7761 10.2239 21 10.5 21H18.5C19.8807 21 21 19.8807 21 18.5V5.5C21 4.11929 19.8807 3 18.5 3H10.5C10.2239 3 10 3.22386 10 3.5ZM3.5 12H14.2929L11.1464 15.1464C10.9512 15.3417 10.9512 15.6583 11.1464 15.8536C11.3417 16.0488 11.6583 16.0488 11.8536 15.8536L15.8536 11.8536C16.0488 11.6583 16.0488 11.3417 15.8536 11.1464L11.8536 7.14645C11.6583 6.95118 11.3417 6.95118 11.1464 7.14645C10.9512 7.34171 10.9512 7.65829 11.1464 7.85355L14.2929 11H3.5C3.22386 11 3 11.2239 3 11.5C3 11.7761 3.22386 12 3.5 12Z",fill:"#455A64"}})]),t._v(" Przejdź do zawodów ")]),n.competitionPayAgreements?e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.getAnCompet
1itionPayAgreements(n.competitionPayAgreements)}}},[e("svg",{staticClass:"mar8",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 3.5C10 3.77614 10.2239 4 10.5 4H18.5C19.3284 4 20 4.67157 20 5.5V18.5C20 19.3284 19.3284 20 18.5 20H10.5C10.2239 20 10 20.2239 10 20.5C10 20.7761 10.2239 21 10.5 21H18.5C19.8807 21 21 19.8807 21 18.5V5.5C21 4.11929 19.8807 3 18.5 3H10.5C10.2239 3 10 3.22386 10 3.5ZM3.5 12H14.2929L11.1464 15.1464C10.9512 15.3417 10.9512 15.6583 11.1464 15.8536C11.3417 16.0488 11.6583 16.0488 11.8536 15.8536L15.8536 11.8536C16.0488 11.6583 16.0488 11.3417 15.8536 11.1464L11.8536 7.14645C11.6583 6.95118 11.3417 6.95118 11.1464 7.14645C10.9512 7.34171 10.9512 7.65829 11.1464 7.85355L14.2929 11H3.5C3.22386 11 3 11.2239 3 11.5C3 11.7761 3.22386 12 3.5 12Z",fill:"#455A64"}})]),t._v(" Przejdź do umowy ")]):t._e(),n.organizerBankAccount?e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.copyTextTrigger(n.organizerBankAccount)}}},[t.copied?e("span",[t._v("Skopiowano")]):[t._v(" Konto: "),e("input",{attrs:{readonly:""},domProps:{value:n.organizerBankAccount}})]],2):t._e()]):t._e()])]:n[i.value]===n.payed?[n.overDate?e("span",[e("img",{staticClass:"icon",attrs:{src:a("450a")}}),t._v(" Opóźniona ")]):n.payed?e("span",[e("img",{staticClass:"icon",attrs:{src:a("8a7d")}}),t._v(" Opłacona ")]):e("span",[e("svg",{staticClass:"icon",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2.5 2.53125C4.02083 1.01042 5.85417 0.25 8 0.25C10.1458 0.25 11.9688 1.01042 13.4688 2.53125C14.9896 4.03125 15.75 5.85417 15.75 8C15.75 10.1458 14.9896 11.9792 13.4688 13.5C11.9688 15 10.1458 15.75 8 15.75C5.85417 15.75 4.02083 15 2.5 13.5C1 11.9792 0.25 10.1458 0.25 8C0.25 5.85417 1 4.03125 2.5 2.53125ZM3.5625 12.4375C4.79167 13.6458 6.27083 14.25 8 14.25C9.72917 14.25 11.1979 13.6458 12.4062 12.4375C13.6354 11.2083 14.25 9.72917 14.25 8C14.25 6.27083 13.6354 4.80208 12.4062 3.59375C11.1979 2.36458 9.72917 1.75 8 1.75C6.27083 1.75 4.79167 2.36458 3.5625 3.59375C2.35417 4.80208 1.75 6.27083 1.75 8C1.75 9.72917 2.35417 11.2083 3.5625 12.4375ZM11.1875 6.0625L9.25 8L11.1875 9.9375C11.3542 10.125 11.3542 10.3021 11.1875 10.4688L10.4688 11.1875C10.3021 11.3542 10.125 11.3542 9.9375 11.1875L8 9.25L6.0625 11.1875C5.875 11.3542 5.69792 11.3542 5.53125 11.1875L4.8125 10.4688C4.64583 10.3021 4.64583 10.125 4.8125 9.9375L6.75 8L4.8125 6.0625C4.64583 5.875 4.64583 5.69792 4.8125 5.53125L5.53125 4.8125C5.69792 4.64583 5.875 4.64583 6.0625 4.8125L8 6.75L9.9375 4.8125C10.125 4.64583 10.3021 4.64583 10.4688 4.8125L11.1875 5.53125C11.3542 5.69792 11.3542 5.875 11.1875 6.0625Z",fill:"#455A64"}})]),t._v(" Nieopłacona ")])]:"competitionCommision"===i.value?[e("input",{directives:[{name:"model",rawName:"v-model",value:n[i.value],expression:"item[header.value]"}],staticClass:"input",domProps:{value:n[i.value]},on:{change:function(e){return t.setCompetitionCommision(n.competition,n[i.value])},input:function(e){e.target.composing||t.$set(n,i.value,e.target.value)}}})]:n[i.value]===n.competitionPayAgreements?[n.competitionPayAgreements?e("span",[e("img",{staticClass:"icon",attrs:{src:a("8a7d")}})]):e("span",[e("img",{staticClass:"icon",attrs:{src:a("450a")}})])]:[t._v(" "+t._s(n[i.value])+" ")]],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[a.length?e("div",[t._v(" Brak wyników wyszukiwania "),e("b",[t._v(t._s(a))])]):t._e()]}}])})],1)])]):e("div",{staticClass:"mat32"},[t._m(1)]),t.ready?e("div",{staticClass:"row admin__pages",staticStyle:{display:"none"}},[e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isPreviousPage},on:{click:function(e){t.isPreviousPage&&t.prevPage()}}},[t.isLoadingPrev?e("div",{staticClass:"admin__pages-loading"},[t._m(2)]):t._e(),t._v(" Poprzednie ")]),e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isNextPage},on:{click:function(e){t.isNextPage&&t.nextPage()}}},[t.isLoadingNext?e("div",{staticClass:"admin__pages-loading"},[t._m(3)]):t._e(),t._v(" Następne ")])]):t._e()])},Mg=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-4"},[e("h1",[t._v("Lista płatności")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])}],Dg={name:"PanelProvisionListAdmin",data(){return{menuCompetitionId:null,isMenuCompetitionIdInBottom:!1,search:"",ready:!1,loading:!1,table:0,filter444446:!1,tableHeaders:[{text:"Płatnośc do",value:"paymentDate"},{text:"Nazwa zawodów",value:"competitionName"},{text:"Nazwa organizatora",value:"organizer"},{text:"Telefon",value:"phone"},{text:"Suma opłat",value:"lastCountedPayments"},{text:"Ubezpieczenia",value:"lastCountedInsurance"},{text:"Prowizja",value:"lastCountedProvision"},{text:"Prowizja za zawody",value:"competitionCommision"},{text:"Prowizja ORG",value:"organizerCommision"},{text:"Płatność",value:"payed"},{text:"Umowa",value:"competitionPayAgreements"},{text:"",value:"more"}],page:1,itemsPerPage:50,data:[],isLoadingNext:!1,isLoadingPrev:!1,errors:{createInvoice:{}},isPaymentMessageSend:!1,copied:!1,actionOpen:!1}},watch:{search(){this.debouncedSearchQuery()},menuCompetitionId(t){const e=this.$refs.list.getBoundingClientRect().top,a=this.$refs.list.getBoundingClientRect().top;t&&(this.isMenuCompetitionIdInBottom=a-e>200)}},mounted(){document.addEventListener("click",this.closeMenu)},beforeDestroy(){document.removeEventListener("click",this.closeMenu)},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","organizers","competitions"])),{},{isAdmin(){return this.user.roles.includes("ROLE_ADMIN")},isOperator(){return this.user.operator},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")},apiParams(){return{page:this.page,itemsPerPage:this.itemsPerPage,name:this.search}},items(){const t=[];for(const a of this.data){var e;const n={id:a.id,competition:a.competition,competitionName:a.competitionName,competitionPayAgreements:a.competitionPayAgreements,organizerBankAccount:a.organizerBankAccount,competitionProvisionInvoiceId:a.competitionProvisionInvoiceId,competitionCommision:a.competitionCommision||0,organizerCommision:a.organizerCommision||0,lastCountedInsurance:new Intl.NumberFormat("pl-PL",{style:"currency",currency:"PLN"}).format(a.lastCountedInsurance),lastCountedPayments:new Intl.NumberFormat("pl-PL",{style:"currency",currency:"PLN"}).format(a.lastCountedPayments),lastCountedProvision:new Intl.NumberFormat("pl-PL",{style:"currency",currency:"PLN"}).format(a.lastCountedProvision),overDate:a.overDate,payed:a.payed,paymentDate:null===(e=a.paymentDate)||void 0===e?void 0:e.split("T")[0],phone:a.organizerPhone,organizer:a.organizerName,dotpayId:a.dotpayId};t.push(n)}return this.filter444446?t.filter(t=>"444446"===t.dotpayId):t},isPreviousPage(){return this.page>1},isNextPage(){return!0}}),async created(){this.debouncedSearchQuery=Object(Fe["debounce"])(this.searchQuery,500),this.getData()},methods:{async getData(){if(this.isAdmin){const t=await Jl()({method:"get",url:"/competitions/provision"});this.data=t}else{const t=await Jl()({method:"get",url:`/organizers/${this.isOperator}/provision`});this.data=t}this.ready=!0},async searchQuery(){this.ready=!1,this.page=1;const t=await Jl()({method:"get",url:"/competitions/provision/search?search="+this.search});this.data=t,this.ready=!0},menuClickHandler(t,e){t.stopPropagation(),this.menuCompetitionId===e||(this.actionOpen=!0,this.menuCompetitionId=e)},closeMenu(){this.actionOpen=!1,this.menuCompetitionId=null},sendPaymentMessage(t){Jl()({method:"post",url:`/competitions/provision/${t}/send`}),this.$refs[t][0].querySelector(".send").style.display="none",this.$refs[t][0].querySelector(".sended").style.display="inline-block"},sendPaymentStatus(t,e){Jl()({method:"put",url:"/competitions/provision/"+t,data:{payed:e}}),this.menuCompetitionId=null,this.items.find(e=>e.id===t).payed=e},async createAnInvoice(t){try{const e=await Jl()({method:"post",url:"/create-invoice/"+t}),a=this.items.find(e=>e.competition===t);a&&(a.competitionProvisionInvoiceId=e.provisionInvoiceId,this.table+=1)}catch(e){console.error("Error creating invoice:",e),this.errors.createInvoice[t]=e.error,this.table+=1}},async getAnInvoice(t){window.open(`${s["a"]}/invoice/${t}/download`,"_blank")}
1,async getAnCompetitionPayAgreements(t){window.open("https://dostartu.pl/"+t,"_blank")},copyTextTrigger(t){void 0!==navigator.clipboard&&navigator.clipboard.writeText(t).then(()=>{this.copied=!0,setTimeout(()=>this.copied=!1,3e3)},()=>{})},toggleFilter444446(){this.filter444446=!this.filter444446},async setCompetitionCommision(t,e){try{const a=await Jl()({method:"put",url:`/competitions/${t}/count/provision`,data:{competitionCommision:e}});if(a){const e=this.data.findIndex(e=>e.competition===t);-1!==e&&this.$set(this.data,e,Object(v["a"])(Object(v["a"])({},this.data[e]),a))}}catch(a){console.error("Error setting competition commission:",a)}}}},$g=Dg,Ug=(a("ef15"),Object(U["a"])($g,Lg,Mg,!1,null,"561346d4",null)),Bg=Ug.exports,Fg=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat40"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row admin-header"},[t._m(0),e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"buttons-wrap"},[e("base-button-group",{staticClass:"admin-header__views",staticStyle:{"margin-left":"auto"},attrs:{horizontal:""}},[e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-provision-admin",alias:!0})}}},[t._v(" Płatności ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:!0},on:{click:function(e){return t.$router.push({name:"panel-provision-agreements-admin",alias:!0})}}},[t._v(" Umowy ")])],1)],1)])])]),t.ready?e("div",{staticClass:"row container-list",class:{"action-open":t.actionOpen}},[e("div",{staticClass:"col-12"},[e("div",{ref:"list"},[e("base-table",{staticClass:"list",attrs:{headers:t.tableHeaders,items:t.items,multiSortEnabled:!0,multiSortDefault:t.defaultMultiSort,ignoreEmptySort:!0,sortReverseDefault:!0},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",{staticClass:"list__row"},t._l(t.tableHeaders,(function(n,i){return e("th",{key:i,staticClass:"list__row-header",on:{click:function(t){return a(i)}}},[t._v(" "+t._s(n.text)+" ")])})),0)]}},{key:"body",fn:function({displayedItems:n}){return t._l(n,(function(n){return e("tr",{key:n.id,staticClass:"list__row",class:{"list__row--overtime":n.overDate,"list__row--payed":n.payed,"list__row--notpayed":!n.payed}},t._l(t.tableHeaders,(function(i,s){return e("td",{key:s,staticClass:"list__row-data",class:{"list__row-data--name":"competitionName"===i.value,"list__row-data--loading":t.loading,"list__row-data--date":n[i.value]===n.paymentDate,"list__row-data--payed":n[i.value]===n.payed},on:{click:function(e){"more"===i.value&&t.menuClickHandler(e,n.id)}}},["more"===i.value?[e("div",{ref:n.id,refInFor:!0,staticClass:"more-btn"},[e("i",{staticClass:"fas fa-ellipsis-v"}),t.menuCompetitionId===n.id?e("div",{staticClass:"more-btn__content",class:{"more-btn__content--from-up":t.isMenuCompetitionIdInBottom}},[e("div",{staticClass:"more-btn__content-btn",on:{click:function(e){return t.$router.push({name:"panel-setting-new-info-payments",params:{name:n.organizer,id:n.id},alias:!0})}}},[e("svg",{staticClass:"mar8",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 3.5C10 3.77614 10.2239 4 10.5 4H18.5C19.3284 4 20 4.67157 20 5.5V18.5C20 19.3284 19.3284 20 18.5 20H10.5C10.2239 20 10 20.2239 10 20.5C10 20.7761 10.2239 21 10.5 21H18.5C19.8807 21 21 19.8807 21 18.5V5.5C21 4.11929 19.8807 3 18.5 3H10.5C10.2239 3 10 3.22386 10 3.5ZM3.5 12H14.2929L11.1464 15.1464C10.9512 15.3417 10.9512 15.6583 11.1464 15.8536C11.3417 16.0488 11.6583 16.0488 11.8536 15.8536L15.8536 11.8536C16.0488 11.6583 16.0488 11.3417 15.8536 11.1464L11.8536 7.14645C11.6583 6.95118 11.3417 6.95118 11.1464 7.14645C10.9512 7.34171 10.9512 7.65829 11.1464 7.85355L14.2929 11H3.5C3.22386 11 3 11.2239 3 11.5C3 11.7761 3.22386 12 3.5 12Z",fill:"#455A64"}})]),t._v(" Przejdź do ustawień organizatora ")])]):t._e()])]:"payAgreements"===i.value?[n.payAgreements?e("span",[e("img",{staticClass:"icon",attrs:{src:a("8a7d")}}),t._v(" "),e("a",{attrs:{href:"https://dostartu.pl/"+n.payAgreements,target:"_blank"}},[t._v("Podpisana")])]):e("span",[e("svg",{staticClass:"icon",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2.5 2.53125C4.02083 1.01042 5.85417 0.25 8 0.25C10.1458 0.25 11.9688 1.01042 13.4688 2.53125C14.9896 4.03125 15.75 5.85417 15.75 8C15.75 10.1458 14.9896 11.9792 13.4688 13.5C11.9688 15 10.1458 15.75 8 15.75C5.85417 15.75 4.02083 15 2.5 13.5C1 11.9792 0.25 10.1458 0.25 8C0.25 5.85417 1 4.03125 2.5 2.53125ZM3.5625 12.4375C4.79167 13.6458 6.27083 14.25 8 14.25C9.72917 14.25 11.1979 13.6458 12.4062 12.4375C13.6354 11.2083 14.25 9.72917 14.25 8C14.25 6.27083 13.6354 4.80208 12.4062 3.59375C11.1979 2.36458 9.72917 1.75 8 1.75C6.27083 1.75 4.79167 2.36458 3.5625 3.59375C2.35417 4.80208 1.75 6.27083 1.75 8C1.75 9.72917 2.35417 11.2083 3.5625 12.4375ZM11.1875 6.0625L9.25 8L11.1875 9.9375C11.3542 10.125 11.3542 10.3021 11.1875 10.4688L10.4688 11.1875C10.3021 11.3542 10.125 11.3542 9.9375 11.1875L8 9.25L6.0625 11.1875C5.875 11.3542 5.69792 11.3542 5.53125 11.1875L4.8125 10.4688C4.64583 10.3021 4.64583 10.125 4.8125 9.9375L6.75 8L4.8125 6.0625C4.64583 5.875 4.64583 5.69792 4.8125 5.53125L5.53125 4.8125C5.69792 4.64583 5.875 4.64583 6.0625 4.8125L8 6.75L9.9375 4.8125C10.125 4.64583 10.3021 4.64583 10.4688 4.8125L11.1875 5.53125C11.3542 5.69792 11.3542 5.875 11.1875 6.0625Z",fill:"#455A64"}})]),t._v(" Niepodpisana ")])]:"approved"===i.value?[e("base-input-switch",{attrs:{checked:n.approved},on:{input:function(e){return t.updateApproved(e,n.id)}}})]:"notes"===i.value?[e("VDropdown",{attrs:{distance:6},scopedSlots:t._u([{key:"default",fn:function(){return[(n.notes||"").trim().length>0?e("span",{staticClass:"tooltip-trigger"},[e("svg",{staticClass:"svgicon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[e("path",{attrs:{d:"M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"}})])]):e("span",{staticClass:"tooltip-trigger"},[e("svg",{staticClass:"svgicon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[e("path",{attrs:{d:"M448 348.106V80c0-26.51-21.49-48-48-48H48C21.49 32 0 53.49 0 80v351.988c0 26.51 21.49 48 48 48h268.118a48 48 0 0 0 33.941-14.059l83.882-83.882A48 48 0 0 0 448 348.106zm-128 80v-76.118h76.118L320 428.106zM400 80v223.988H296c-13.255 0-24 10.745-24 24v104H48V80h352z"}})])])]},proxy:!0},{key:"popper",fn:function(){return[e("div",{staticClass:"tooltip-wrapper"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:n.notes,expression:"item.notes"}],attrs:{placeholder:"Dodaj notatkę"},domProps:{value:n.notes},on:{input:function(e){e.target.composing||t.$set(n,"notes",e.target.value)}}}),e("button",{on:{click:function(e){return t.updateNote(n.notes,n.id)}}},[e("i",{staticClass:"fas fa-check"})])])]},proxy:!0}],null,!0)})]:[t._v(" "+t._s(n[i.value])+" ")]],2)})),0)}))}},{key:"no-results",fn:function({search:a}){return[a.length?e("div",[t._v(" Brak wyników wyszukiwania "),e("b",[t._v(t._s(a))])]):t._e()]}}])})],1)])]):e("div",{staticClass:"mat32"},[t._m(1)]),t.ready?e("div",{staticClass:"row admin__pages",staticStyle:{display:"none"}},[e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isPreviousPage},on:{click:function(e){t.isPreviousPage&&t.prevPage()}}},[t.isLoadingPrev?e("div",{staticClass:"admin__pages-loading"},[t._m(2)]):t._e(),t._v(" Poprzednie ")]),e("div",{staticClass:"admin__pages-btn",class:{"admin__pages-btn--disabled":!t.isNextPage},on:{click:function(e){t.isNextPage&&t.nextPage()}}},[t.isLoadingNext?e("div",{staticClass:"admin__pages-loading"},[t._m(3)]):t._e(),t._v(" Następne ")])]):t._e()])},qg=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-4"},[e("h1",[t._v("Lista umów")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div")])}],Hg=a("003c"),Gg={name:"PanelProvisionListAdmin",directives:{tooltip:Hg["e"],"close-popper":Hg["d"]},components:{VDropdown:Hg["a"],VTooltip:Hg["c"],VMenu:Hg["b"]},data(){return{menuCompetitionId:null,isMenuCompetitionIdInBottom:!1,search:"",ready:!1,loading:!1,tableHeaders:[{text:"Data ostatniej umowy",value:"lastAgreementDate"},{text:"Nazwa organizatora",value:"organizer"},{text:"Adres e-mail",value:"email"},{text:"Telefon",value:"phone"},{text:"Suma prowizji",value:"allPayments"},{text:"Prowizja",value:"provision"},{text:"Umowa",value:"payAgreements"},{text:"Potwierdzony",value:"approved"}
1,{text:"Notatka",value:"notes"},{text:"",value:"more"}],defaultMultiSort:[{column:"lastAgreementDate",reverse:!1},{column:"organizer",reverse:!0}],page:1,itemsPerPage:50,data:[],isLoadingNext:!1,isLoadingPrev:!1,errors:{},isPaymentMessageSend:!1,actionOpen:!1}},watch:{search(){this.debouncedSearchQuery()},menuCompetitionId(t){const e=this.$refs.list.getBoundingClientRect().top,a=this.$refs.list.getBoundingClientRect().top;t&&(this.isMenuCompetitionIdInBottom=a-e>200)}},mounted(){document.addEventListener("click",this.closeMenu)},beforeDestroy(){document.removeEventListener("click",this.closeMenu)},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","organizers","competitions"])),{},{isAdmin(){return this.user.roles.includes("ROLE_ADMIN")},isOperator(){return this.user.operator},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")},apiParams(){return{page:this.page,itemsPerPage:this.itemsPerPage,name:this.search}},items(){const t=[];for(const e of this.data){const a=e[0],n={id:a.id,organizer:"Organizator"===a.name?`${a.name} #${a.id}`:a.name,email:a.email,phone:a.phone,provision:a.percent,allPayments:new Intl.NumberFormat("pl-PL",{style:"currency",currency:"PLN"}).format(a.countedProvision),agreement:a.signature,payAgreements:a.payAgreements,lastAgreementDate:e.lastAgreementDate,approved:a.approved,notes:a.notes};t.push(n)}return t},isPreviousPage(){return this.page>1},isNextPage(){return!0}}),async created(){this.debouncedSearchQuery=Object(Fe["debounce"])(this.searchQuery,500),this.getData()},methods:{async getData(){if(this.isAdmin){const t=await Jl()({method:"get",url:"/admin/provision-agreements"});this.data=t}this.ready=!0},async searchQuery(){this.ready=!1,this.page=1;const t=await Jl()({method:"get",url:"/admin/provision-agreements/search?search="+this.search});this.data=t,this.ready=!0},menuClickHandler(t,e){t.stopPropagation(),this.menuCompetitionId===e||(this.actionOpen=!0,this.menuCompetitionId=e)},closeMenu(){this.actionOpen=!1,this.menuCompetitionId=null},sendPaymentMessage(t){Jl()({method:"post",url:`/competitions/provision/${t}/send`}),this.$refs[t][0].querySelector(".send").style.display="none",this.$refs[t][0].querySelector(".sended").style.display="inline-block"},sendPaymentStatus(t,e){Jl()({method:"put",url:"/competitions/provision/"+t,data:{payed:e}}),this.menuCompetitionId=null,this.items.find(e=>e.id===t).payed=e},async updateApproved(t,e){try{await Jl()({method:"put",url:"panel/organizers/"+e,data:{approved:t}}),this.items.find(t=>t.id===e).approved=t}catch(a){console.error(a)}},async updateNote(t,e){try{await Jl()({method:"put",url:"panel/organizers/"+e,data:{notes:t}});const a=this.items.findIndex(t=>t.id===e);-1!==a&&this.$set(this.items,a,Object(v["a"])(Object(v["a"])({},this.items[a]),{},{notes:t}))}catch(a){console.error(a)}}}},Wg=Gg,Vg=(a("b6a6"),a("8778"),Object(U["a"])(Wg,Fg,qg,!1,null,"7e18d7ee",null)),Kg=Vg.exports,Zg=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container mat40"},[t._m(0),t.ready?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[t._m(2),t.data.length>0?e("div",{staticClass:"provisions"},t._l(t.data,(function(a){return e("div",{key:a.id,staticClass:"provision-item",class:{expired:a.overDate}},[e("div",[e("div",{staticClass:"provision-name"},[e("b",[t._v(t._s(a.competitionName))])])]),e("div",[e("b",[t._v(t._s(a.lastCountedProvision)+" zł")])]),e("div",[a.competitionProvisionInvoiceId?e("div",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.getAnInvoice(a.competitionProvisionInvoiceId)}}},[e("i",{staticClass:"fas fa-file-download"}),t._v(" Pobierz fakturę ")]):t._e()]),a.payed?e("div",[t._v(" ")]):a.overDate?e("div",[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0581 3.26606C12.2459 2.91131 12.754 2.91131 12.9418 3.26606L21.9418 20.2661C22.1181 20.5991 21.8767 21 21.5 21H3.49995C3.12317 21 2.88176 20.5991 3.05806 20.2661L12.0581 3.26606ZM12.5 14C12.7761 14 13 13.7761 13 13.5V9.5C13 9.22386 12.7761 9 12.5 9C12.2238 9 12 9.22386 12 9.5V13.5C12 13.7761 12.2238 14 12.5 14ZM13 17V16H12V17H13ZM20.6695 20H4.33041L12.5 4.56863L20.6695 20Z",fill:"#979797"}})]),t._v(" Termin płatności upłynął "+t._s(a.paymentDate.split("T")[0])+" ")]):e("div",[t._v("Termin płatności "+t._s(a.paymentDate.split("T")[0]))]),a.payed?e("div",[t._v("opłacono "+t._s(a.paymentDate.split("T")[0]))]):t._e(),e("div",[t._v("  ")])])})),0):t._e()])]):e("div",{staticClass:"mat32"},[t._m(1)])])},Yg=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row admin-header"},[e("div",{staticClass:"col-12 col-md-4"},[e("h1",[t._v("Moje opłaty")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"info-box"},[e("h4",[t._v("Inne metody płatności")]),e("p",[t._v("Jeśli preferujesz inną metodę płatności,"),e("br"),t._v(" skontaktuj się z nami "),e("a",{staticStyle:{"font-weight":"bold"},attrs:{href:"tel:+48502678564"}}
1,[t._v("502 678 564")])])])}],Qg={name:"PanelProvisionList",data(){return{ready:!1,loading:!1,data:[],errors:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","organizers","competitions"])),{},{isAdmin(){return this.user.roles.includes("ROLE_ADMIN")},isOperator(){return this.user.operator},isOrganizer(){return this.user.organizer},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")}}),async created(){const t=this.isOperator?`/operators/${this.isOperator}/provision`:`/organizers/${this.isOrganizer}/provision`,e=await Jl()({method:"get",url:t});this.data=e,this.ready=!0},methods:{async getAnInvoice(t){window.open(`${s["a"]}/invoice/${t}/download`,"_blank")}}},Xg=Qg,Jg=(a("fa49"),Object(U["a"])(Xg,Zg,Yg,!1,null,"fbf17c3c",null)),ty=Jg.exports,ey=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container mat40 changelog-page"},[e("div",{staticClass:"changelog-page__header"},[t._m(0),t.lastUpdate?e("div",{staticClass:"changelog-page__stats"},[e("span",[t._v("Ostatnia aktualizacja:")]),e("strong",[t._v(t._s(t.lastUpdate))])]):t._e()]),t.ready?0===t.entries.length?e("div",{staticClass:"changelog-page__empty"},[t._v(" Brak opublikowanych zmian. ")]):e("div",{staticClass:"changelog-page__list"},t._l(t.entries,(function(a,n){return e("changelog-entry-item",{key:a.id,attrs:{entry:a,variant:"dark","is-first":0===n,"is-last":n===t.entries.length-1}})})),1):e("div",{staticClass:"mat32"},[t._m(1)])])},ay=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"changelog-page__intro"},[e("h1",[t._v("Lista zmian w systemie Dostartu (changelog)")]),e("p",[t._v(" Śledź na bieżąco aktualizacje platformy DO:ST:AR:TU. Wdrażamy usprawnienia, naprawiamy błędy i dbamy o najwyższą wydajność systemu obsługi zgłoszeń. ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])}],ny={name:"PanelChangelog",components:{ChangelogEntryItem:ae},data(){return{ready:!1,entries:[]}},computed:{lastUpdate(){return Kt(this.entries[0]&&this.entries[0].releasedAt)}},async created(){try{const t=await fe();this.entries=Array.isArray(t)?t:[],this.entries[0]&&null!=this.entries[0].id&&Yt(this.entries[0].id)}catch(t){this.entries=[]}finally{this.ready=!0}}},iy=ny,sy=(a("1ad2"),Object(U["a"])(iy,ey,ay,!1,null,"93e784ea",null)),oy=sy.exports,ry=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-settings"},[e("panel-competition-form-box",{staticClass:"mab24 info"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"form__headline mab16"},[t._v("Klasyfikacje, kategorie, opłaty i limity")]),e("p",[t._v("Po rejestracji wysyłamy do uczestnika wiadomość e-mail potwierdzającą jego zapis do zawodów."),e("br"),t._v("W tym miejscu możesz zmienić treść tej wiadomości.")])])]),e("PanelCompetitionClassificationsForm",{attrs:{validation:t.errors},on:{"update:validation":function(e){t.errors=e}}})],1)},ly=[],cy=function(){var t=this,e=t._self._c;return e("div",[e("panel-competition-form-box",{staticClass:"info mab24"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-8 col-md-10"},[e("div",{staticClass:"form__headline"},[t._v("Konfiguracja zaawansowana")])]),e("div",{staticClass:"col-4 col-md-2"},[t.advanced?e("base-button",{staticClass:"mal4 w100",attrs:{btn2:"",short:"",icon:"fa fa-caret-up"},on:{click:function(e){t.advanced=!t.advanced}}},[t._v("Zwiń")]):e("base-button",{staticClass:"mal4 w100",attrs:{btn2:"",short:"",icon:"fa fa-caret-down"},on:{click:function(e){t.advanced=!t.advanced}}},[t._v("Rozwiń")])],1)])]),t.advanced?e("div",{staticClass:"row"},[e("div",{staticClass:"line"}),e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"row justify-content-start"},[e("div",{staticClass:"col-12 mab16"},[e("p",[t._v("Limity liczone według")])]),e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4 col-md-3 col-lg-2"},[e("panel-input-text",{staticClass:"mar16",model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}
1)],1),e("div",{staticClass:"col-8 col-md-9 col-lg-10"},[e("p",[t._v("Limit uczestników dla całych zawodów "),e("span",{staticClass:"optional"},[t._v("(opcjonalnie)")])])])])])]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"field-helper"},[t._v(" Limity pozwalją ograniczyć ilość uczestników w zawodach. Po osiągnięciu limitu, możliwość rejestracji zostanie automatycznie zablokowana. ")])]),e("div",{staticClass:"row mat16 mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("PanelInputBaseRadio",{attrs:{name:"formGender",option:{value:"qwe",title:"Zarejestrowanych uczestników"}},model:{value:t.form.limit,callback:function(e){t.$set(t.form,"limit",e)},expression:"form.limit"}}),e("PanelInputBaseRadio",{attrs:{name:"formGender",option:{value:"qwer",title:"Opłaconych uczestników"}},model:{value:t.form.limit,callback:function(e){t.$set(t.form,"limit",e)},expression:"form.limit"}}),e("div",{staticClass:"indent1 mat8 pat8"},[e("PanelInputBaseRadio",{attrs:{name:"limite",option:{value:"qwe1",title:"Miękki limit"}},model:{value:t.form.limite,callback:function(e){t.$set(t.form,"limite",e)},expression:"form.limite"}}),e("PanelInputBaseRadio",{attrs:{name:"limite",option:{value:"qwer2",title:"Twardy limit"}},model:{value:t.form.limite,callback:function(e){t.$set(t.form,"limite",e)},expression:"form.limite"}})],1),e("div",{staticClass:"indent2"},[e("div",{staticClass:"row justify-content-start"},[e("div",{staticClass:"col-12 mab8"},[e("p",[t._v("Oczekiwanie na potwierdzenie płatności")])]),e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4 col-md-3 col-lg-2"},[e("panel-input-text",{staticClass:"mar16",model:{value:t.form.paylimit,callback:function(e){t.$set(t.form,"paylimit",e)},expression:"form.paylimit"}})],1),e("div",{staticClass:"col-8 col-md-9 col-lg-10"},[e("p",[t._v("Czas (w minutach), po którym płatność online zostanie przedawniona (3 minuty - 99 minut) "),e("span",{staticClass:"optional"},[t._v("(opcjonalnie)")])])])])])])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"field-helper"},[t._v(" Miękki limit daje możliwość udostępnienia uczestnikom klasycznego przelewu jako formy płatności, jednak z powowdu opóźnień wpływania opłat, limit liczby uczestników może zostać przekroczony o uczestników płacących przelewem. ")])])]),e("div",{staticClass:"line"}),e("div",{staticClass:"row mat16 mab16"},[e("div",{staticClass:"col-12 mab16"},[e("p",[t._v("Przydzielanie do kategorii według")])]),e("div",{staticClass:"col-12 col-lg-8"},[e("PanelInputBaseRadio",{attrs:{name:"birthlimit",option:{value:"qwe",title:"Dokładnej daty urodzenia"}},model:{value:t.form.birthlimit,callback:function(e){t.$set(t.form,"birthlimit",e)},expression:"form.birthlimit"}}),e("PanelInputBaseRadio",{attrs:{name:"birthlimit",option:{value:"qwer",title:"Roku urodzenia"}},model:{value:t.form.birthlimit,callback:function(e){t.$set(t.form,"birthlimit",e)},expression:"form.birthlimit"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"field-helper"},[t._v("Przydzielanie uczestników do kategorii, może odbywać się według dokładnej daty urodzenia lub samego roku urodzenia.")])])]),e("div",{staticClass:"line"}),e("div",{staticClass:"row mat16 mab16"},[e("div",{staticClass:"col-12 mab16"},[e("p",[t._v("Wyświetlanie na liście startowej")])]),e("div",{staticClass:"col-12 col-lg-8"},[e("PanelInputBaseRadio",{attrs:{name:"startlimit",option:{value:"qwe",title:"Wszystkich uczestników"}},model:{value:t.form.startlimit,callback:function(e){t.$set(t.form,"startlimit",e)},expression:"form.startlimit"}}),e("PanelInputBaseRadio",{attrs:{name:"startlimit",option:{value:"qwer",title:"Tylko opłaconych"}},model:{value:t.form.startlimit,callback:function(e){t.$set(t.form,"startlimit",e)},expression:"form.startlimit"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"field-helper"},[t._v("Lista startowa może zawierać wszystkich zarejestrowanych uczestników, lub tylko tych, którzy dokonali płatności za start.")])])]),e("div",{staticClass:"line"}),e("div",{staticClass:"row mat16 mab16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("div",{staticClass:"row justify-content-start"},[e("div",{staticClass:"col-12 mab16"},[e("p",[t._v("Płatność odroczona")])]),e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4 col-md-3 col-lg-2"},[e("panel-input-text",{staticClass:"mar16",model:{value:t.form.namqwee,callback:function(e){t.$set(t.form,"namqwee",e)},expression:"form.namqwee"}}
1)],1),e("div",{staticClass:"col-8 col-md-9 col-lg-10"},[e("p",[t._v("Ilość dni na opłatę od chwili rejestracji "),e("span",{staticClass:"optional"},[t._v("(zawody płatne)")])])])])])]),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"field-helper"},[t._v("Uczestnicy mogą mieć możliwość opłaty za start po dokonaniu rejestracji online. Aby zablokować płatność odroczoną, ustaw 0 dni.")])])]),e("div",{staticClass:"line"}),e("div",{staticClass:"col-lg-12 mat16"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:function(e){return t.save()}}},[t._v(" Zapisz ")])],1)])])]):t._e()]),e("div",{staticClass:"classifications-wrap"},[e("div",{staticClass:"classifications-items"},[e("div",{staticClass:"classification is-active"},[t._m(0),e("div",{staticClass:"classification-content"},[e("ul",{staticClass:"classification-content-list"},[e("li",{on:{click:function(e){return t.$refs.classificationAgeCategoryModal.openModal()}}},[e("span",{staticClass:"classification-content-list-item"},[t._m(1),t._v(" "),e("BaseTooltip",{attrs:{data:{content:"W tym<br>opłaconych: 72<br>nieopłaconych: 23",html:!0}}},[e("span",{staticClass:"classification-tooltip"},[e("img",{attrs:{src:a("1e85")}}),t._v(" 95")])])],1),t._m(2)]),t._m(3),t._m(4)])])]),e("div",{staticClass:"classification"},[t._m(5),e("div",{staticClass:"classification-content"},[e("ul",{staticClass:"classification-content-list"},[e("li",[e("span",{staticClass:"classification-content-list-item"},[t._m(6),t._v(" "),e("BaseTooltip",{attrs:{data:{content:"W tym<br>opłaconych: 72<br>nieopłaconych: 23",html:!0}}},[e("span",{staticClass:"classification-tooltip"},[e("img",{attrs:{src:a("1e85")}}),t._v(" 95")])])],1)]),t._m(7),t._m(8)])])]),e("div",{staticClass:"classification-actions"},[e("base-button",{staticClass:"w100",attrs:{btn2:"",short:""}},[t._v("Dodaj klasyfikację")]),e("base-button",{staticClass:"w100",attrs:{btn2:"",short:""}},[t._v("Importuj z istniejących zawodów")])],1)]),e("div",{staticClass:"classifications-content"},[t._m(9),e("div",{staticClass:"classification-actions"},[e("base-button",{staticClass:"status",attrs:{btn2:"",short:"",status:"positive"}},[t._v("Klasyfikacja domyślna")]),e("base-button",{attrs:{btn2:"",short:"",icon:"fas fa-trash-alt"}},[t._v("Usuń")]),e("base-button",{attrs:{btn2:"",short:"",icon:"fas fa-pencil-alt"},on:{click:function(e){return t.$refs.classificationModal.openModal()}}},[t._v("Edytuj")]),e("base-button-group",{attrs:{horizontal:"",shadow:"",border:!1}},[e("base-button",{attrs:{btn2:"",short:"",radius:!1,icon:"fas fa-long-arrow-alt-up"}}),e("base-button",{attrs:{btn2:"",short:"",radius:!1,icon:"fas fa-long-arrow-alt-down"}})],1)],1),e("div",{staticClass:"classification-headline"},[t._v(" Parametry klasyfikacji ")]),t._m(10),e("div",{staticClass:"classification-headline"},[t._v(" Daty ")]),t._m(11),e("div",{staticClass:"classification-headline"},[t._v(" Opłaty ")]),t._m(12)])]),e("modal",{ref:"classificationModal",staticClass:"modal-background",attrs:{id:"classificationModal"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Edytuj klasyfikację")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"form-body"},[e("div",{staticClass:"form-row form-row-center"},[e("div",{staticClass:"form-col form-col-3"},[e("p",[t._v("Typ klasyfikacji")])]),e("div",{staticClass:"form-col form-col-9"},[e("panel-input-radio",{staticClass:"nobg mab16",attrs:{name:"formGender",label:"",options:[{value:"M",title:"dla dorosłych"},{value:"K",title:"dla dzieci"}],value:t.form.gender,error:t.errors.gender},on:{"update:error":function(e){return t.$set(t.errors,"gender",e)}},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})],1)]),e("div",{staticClass:"hr__line"},[t._v(" ")]),e("div",{staticClass:"form-row mab16"},[e("div",{staticClass:"form-col form-col-6"},[e("panel-input-text",{attrs:{label:"Nazwa klasyfikacji",error:t.errors.icePhone}
1,on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1),e("div",{staticClass:"form-col form-mobile-6 form-col-3"},[e("panel-input-text",{attrs:{label:"Skrót nazwy",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1),e("div",{staticClass:"form-col form-mobile-6 form-col-3"},[e("panel-input-text",{attrs:{label:"Dystans",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1)]),e("div",{staticClass:"hr__line"},[t._v(" ")]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"form-col form-col-4"},[e("panel-input-date",{staticClass:"mab16",attrs:{value:t.form.birthTime,label:"Zapisy otwarte do",placeholder:"dd.mm.yyyy",error:t.errors.birthTime},on:{"update:error":function(e){return t.$set(t.errors,"birthTime",e)}},model:{value:t.form.birthTime,callback:function(e){t.$set(t.form,"birthTime",e)},expression:"form.birthTime"}})],1),e("div",{staticClass:"form-col form-col-4"},[e("panel-input-date",{staticClass:"mab16",attrs:{value:t.form.birthTime,label:"Klasyfikacja trwa do",placeholder:"dd.mm.yyyy",error:t.errors.birthTime},on:{"update:error":function(e){return t.$set(t.errors,"birthTime",e)}},model:{value:t.form.birthTime,callback:function(e){t.$set(t.form,"birthTime",e)},expression:"form.birthTime"}})],1),e("div",{staticClass:"form-col form-mobile-6 form-col-4"},[e("panel-input-text",{attrs:{label:"Limit uczestników",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1)]),e("div",{staticClass:"hr__line"},[t._v(" ")]),e("div",{staticClass:"form-row form-row-center"},[e("div",{staticClass:"form-col form-col-4"},[e("p",[t._v("Opłata za udział")])]),e("div",{staticClass:"form-col form-col-8"},[e("panel-input-switch",{staticClass:"gap32 mab24",attrs:{value:t.form.pay,name:"formStatus",label:"",options:[{value:"free",title:"Klasyfikacja bezpłatna"},{value:"paid",title:"Klasyfikacja płatna"}],vBoolean:!1,error:t.errors.pay},on:{"update:error":function(e){return t.$set(t.errors,"pay",e)}},model:{value:t.form.pay,callback:function(e){t.$set(t.form,"pay",e)},expression:"form.pay"}})],1)]),e("div",{staticClass:"form-row mat32 mab16"},[e("div",{staticClass:"d-mobile-none form-col form-col-4"},[t._v(" ")]),e("div",{staticClass:"form-col form-mobile-6 form-col-4"},[e("panel-input-text",{attrs:{label:"Opłata",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1),e("div",{staticClass:"form-col form-mobile-6 form-col-4 mat24"},[e("p",[t._v("Obowiązuje do"),e("br"),t._v(" dnia zawodów")])])]),e("div",{staticClass:"classification-paid-info"},[e("i",{staticClass:"fas fa-money-bill-alt"}),e("p",[e("b",[t._v("Pobierasz opłatę startową?")])]),e("p",[t._v("Za organizowanie zawodów z płatnymi klasyfikacjami pobieramy "),e("b",[t._v("6% prowizji od opłaty za udział")]),t._v(", którą pobierasz od uczestnika.")]),e("p",[t._v("Jeśli ustawisz opłatę za klasyfikację, wystawimy Ci fakturę VAT i wyślemy po dacie startu zawodów. Termin płatności faktury to 30 dni od daty startu zawodów.")]),e("p",[t._v("Przykład:"),e("br"),t._v("Organizujesz zawody z opłatą za udział w wysokości 20 zł. Jesli na zawody zapisze się 100 uczestników, otrzymasz od nas fakturę VAT na kwotę 120,00 zł (netto).")]),e("p",[e("b",[t._v("Organizowanie zawodów bezpłatnych jest darmowe.")])]),e("button",{staticClass:"btn btn-primary"},[t._v("Akceptuję prowizję")])]),e("div",{staticClass:"hr__line"},[t._v(" ")]),e("div",{staticClass:"form-row form-row-center"},[e("div",{staticClass:"form-col form-col-4"},[e("p",[t._v("Opłaty promocyjne")])]),e("div",{staticClass:"form-col form-col-8"},[e("panel-input-radio",{staticClass:"mab16 nobg",attrs:{name:"formGender",options:[{value:"M",title:"Limit uczestników"},{value:"K",title:"Limit czasu"}],value:t.form.gender,error:t.errors.gender}
1,on:{"update:error":function(e){return t.$set(t.errors,"gender",e)}},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})],1)]),e("div",{staticClass:"form-row form-row-end"},[e("div",{staticClass:"form-col form-col-4"},[e("div",{staticStyle:{display:"flex",gap:"12px","align-items":"center"}},[e("div",{staticClass:"form-col-btn"},[e("i",{staticClass:"fas fa-trash"})]),t._v(" Stawka 1 ")])]),e("div",{staticClass:"form-col form-col-4"},[e("panel-input-text",{attrs:{label:"Opłata",error:t.errors.icePhone,disabled:""},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1),e("div",{staticClass:"form-col form-col-4"},[e("panel-input-text",{attrs:{label:"Limit uczestników",error:t.errors.icePhone,disabled:""},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1)]),e("div",{staticClass:"form-row form-row-end"},[e("div",{staticClass:"form-col form-col-4"},[e("div",{staticClass:"form-col-btn"},[t._v("Dodaj stawkę")])]),e("div",{staticClass:"form-col form-col-4"},[e("panel-input-text",{attrs:{label:"Opłata",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1),e("div",{staticClass:"form-col form-col-4"},[e("panel-input-text",{attrs:{label:"Limit uczestników",error:t.errors.icePhone},on:{"update:error":function(e){return t.$set(t.errors,"icePhone",e)}},model:{value:t.form.icePhone,callback:function(e){t.$set(t.form,"icePhone",e)},expression:"form.icePhone"}})],1)])])]},proxy:!0},{key:"footer",fn:function(){return[e("button",{staticClass:"btn",on:{click:function(e){return t.$refs.classificationModal.closeModal()}}},[t._v("Anuluj")]),e("button",{staticClass:"btn btn-primary"},[t._v("Zapisz")])]},proxy:!0}])}),e("modal",{ref:"classificationAgeCategoryModal",staticClass:"modal-background",attrs:{id:"classificationAgeCategoryModal"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Edytuj kategorie")]},proxy:!0},{key:"body",fn:function(){return[e("ageCategoriesRangeSlider")]},proxy:!0},{key:"footer",fn:function(){return[e("button",{staticClass:"btn",on:{click:function(e){return t.$refs.classificationAgeCategoryModal.closeModal()}}},[t._v("Anuluj")]),e("button",{staticClass:"btn btn-primary"},[t._v("Zapisz")])]},proxy:!0}])})],1)},dy=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"classification-title"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6 classification-label"},[t._v("Klasyfikacja dorosłych")]),e("div",{staticClass:"col-6 text-right"},[e("span",{staticClass:"badge mar8"},[t._v("bezpł.")]),e("span",{staticClass:"badge badge-positive"},[t._v("domyślna")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"classification-name classification-text"},[t._v("Mężczyźni 10 km")])])])])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"classification-content-list-title"},[e("i",{staticClass:"fas fa-caret-down"}),t._v(" Mężczyźni")])},function(){var t=this,e=t._self._c;return e("div",[e("ul",[e("li",[t._v("Mężczyźni 18-29 "),e("div",{staticClass:"count"},[e("span",[t._v("23")])])]),e("li",[t._v("Mężczyźni 30-39 "),e("div",{staticClass:"count"},[e("span",[t._v("31")])])]),e("li",[t._v("Mężczyźni 40-49 "),e("div",{staticClass:"count"},[e("span",[t._v("19")])])]),e("li",[t._v("Mężczyźni 50-59 "),e("div",{staticClass:"count"},[e("span",[t._v("13")])])]),e("li",[t._v("Mężczyźni 60-99 "),e("div",{staticClass:"count"},[e("span",{staticClass:"badge"},[t._v("-15%")]),e("span",[t._v("9")])])])])])},function(){var t=this,e=t._self._c;return e("li",[e("span",{staticClass:"classification-content-list-item is-empty"},[e("span",{staticClass:"classification-content-list-title"},[e("i",{staticClass:"fas fa-plus-square"}),t._v(" "),e("span",[t._v("Kobiety")])]),t._v(" "),e("span",[t._v("brak kategorii")])])])},function(){var t=this,e=t._self._c;return e("li",[e("span",{staticClass:"classification-content-list-item is-empty"},[e("span",{staticClass:"classification-content-list-title"},[e("i",{staticClass:"fas fa-plus-square"}),t._v(" "),e("span",[t._v("Kategorie specjalne")])]),t._v(" "),e("span",[t._v("brak kategorii")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"classification-title"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6 classification-label"},[t._v("Klasyfikacja dorosłych")]),e("div",{staticClass:"col-6 text-right"},[e("span",{staticClass:"badge"},[t._v("bezpłatna")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"classification-name classification-text"},[t._v("Kobiety 10 km")])])])])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"classification-content-list-title"},[e("i",{staticClass:"fas fa-caret-right"}),t._v(" Kobiety")])},function(){var t=this,e=t._self._c;return e("li",[e("span",{staticClass:"classification-content-list-item is-empty"},[e("span",{staticClass:"classification-content-list-title"},[e("i",{staticClass:"fas fa-plus-square"}),t._v(" Mężczyźni")]),t._v(" "),e("span",[t._v("brak kategorii")])])])},function(){var t=this,e=t._self._c;return e("li",[e("span",{staticClass:"classification-content-list-item is-empty"},[e("span",{staticClass:"classification-content-list-title"},[e("i",{staticClass:"fas fa-plus-square"}),t._v(" Kategorie specjalne")]),t._v(" "),e("span",[t._v("brak kategorii")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"classification-title"},[e("div",{staticClass:"classification-category classification-label"},[t._v("Klasyfikacja dorosłych")]),e("div",{staticClass:"classification-name classification-text"},[t._v("Nazwa klasyfikacji")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mab32"},[e("div",{staticClass:"col-6 col-md-4"},[e("div",{staticClass:"classification-label"},[t._v("Skrót nazwy")]),e("div",{staticClass:"classification-text text-bold"},[t._v("M15")])]),e("div",{staticClass:"col-6 col-md-4"},[e("div",{staticClass:"classification-label"},[t._v("Dystans")]),e("div",{staticClass:"classification-text text-bold"},[t._v("10 km")])]),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"classification-label"},[t._v("Limit uczestników")]),e("div",{staticClass:"classification-text text-bold"},[t._v("500")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mab32"},[e("div",{staticClass:"col-6"},[e("div",{staticClass:"classification-label"},[t._v("Zapisy otwarte do")]),e("div",{staticClass:"classification-text text-bold"},[t._v("15.12.2023 23:59")])]),e("div",{staticClass:"col-6"},[e("div",{staticClass:"classification-label"},[t._v("Klasyfikacja trwa do")]),e("div",{staticClass:"classification-text text-bold"},[t._v("01.12.2019")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4 mab24"},[e("div",{staticClass:"classification-label"},[t._v("Opłata za start")]),e("div",{staticClass:"classification-text text-bold"},[t._v("75,00 zł")])]),e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"classification-label mab16"},[t._v("Opłaty promocyjne")]),e("ul",[e("li",[t._v("Opłata do 15.06.2023"),e("span",{staticClass:"classification-text text-bold"},[t._v("50,00 zł")])]),e("li",[t._v("Opłata do 15.08.2023"),e("span",{staticClass:"classification-text text-bold"},[t._v("60,00 zł")])]),e("li",[t._v("Opłata do 15.10.2023"),e("span",{staticClass:"classification-text text-bold"},[t._v("65,00 zł")])])])])])}],uy=a("7282"),py=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"rangeSlider",staticStyle:{"background-color":"var(--vt-c-white)","max-width":"956px"}},[e("div",{ref:"sliderTrack",staticClass:"rangeSlider__track"},t._l(t.categories,(function(a,n){return e("RangeSliderItem",{key:t.keys[n],attrs:{data:a,index:n},on:{active:t.activeHandle,disabled:t.disableHandle}})})),1),e("div",{ref:"sliderHandles",staticClass:"rangeSlider__handles"},t._l(t.categories,(function(a,n){return e("RangeSliderHandle",{key:t.keys[n],attrs:{data:a,index:n,categories:t.categories,length:t.categories.length-1,gap:t.trackGap,"max-width":t.trackWidth},on:{remove:t.removeHandle,update:t.updateData,"update:end":t.dragEnd,"update:handleend":t.dragHandleEnd}})})),1),e("RangeSliderNewHandle",{attrs:{gap:t.trackGap},on:{new:t.newRange}})],1)])},my=[],fy=function(){var t=this,e=t._self._c;return e("div",{ref:"resize-parent",staticClass:"rangeSliderItemWrap",class:{active:t.isActive,hover:t.hover}},[e("div",{ref:"resizable-element",staticClass:"rangeSlider__item",style:t.styles,attrs:{id:"panel-"+t.index},on:{click:t.itemHandle,mouseover:function(e){t.hover=!0},mouseleave:function(e){t.hover=!1}}},[e("span",{staticClass:"rangeSlider__text",class:{active:t.isActive||t.hover}},[t._v(t._s(t.dateRangeText))]),t.isActive&&t.hover?e("span",{staticClass:"rangeSlider__icon"},[e("img",{attrs:{src:a("4d10"),alt:""}})]):t._e(),!t.isActive&&t.hover?e("span",{staticClass:"rangeSlider__icon"},[e("img",{attrs:{src:a("dca8"),alt:""}})]):t._e()])])},hy=[],by={name:"ageCategoriesRangeSliderItem",props:{data:{type:Object,required:!0},index:{type:Number,required:!0}},data(){return{hover:!1}},computed:{isActive(){return this.$props.data.active},styles(){return{width:this.$props.data.width,left:this.$props.data.left}},dateRangeText(){const t=this.$props.data.age_from,e=this.$props.data.age_to;return t===e?""+t:`${t} - ${e}`}},methods:{itemHandle(){this.isActive?this.$emit("disabled",{index:this.$props.index}):this.$emit("active",{index:this.$props.index})}},mounted(){}},_y=by,vy=(a("0946"),Object(U["a"])(_y,fy,hy,!1,null,"353481ed",null)),g
1y=vy.exports,yy=function(){var t=this,e=t._self._c;return e("div",[e("div",{ref:"resizeHandle",staticClass:"rangeSlider__handle",class:{active:t.isActive},style:t.handleStyles,attrs:{id:"handle-"+t.index}},[e("img",{attrs:{src:a("9360"),alt:""}}),t.canRemoveHandle?e("div",{staticClass:"removeHandle",on:{click:t.removeHandle}},[e("img",{staticStyle:{position:"relative",left:"auto",top:"auto"},attrs:{src:a("4d10"),alt:""}})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isHandleEnd,expression:"isHandleEnd"}],ref:"resizeHandleEnd",staticClass:"rangeSlider__handle active",style:{transform:`translate(${t.handleEndPosition}px, 64px)`},attrs:{id:"handleend-"+t.index}},[e("img",{attrs:{src:a("9360"),alt:""}})])])},Cy=[],wy=a("cffa"),ky=a("dafb");wy["a"].registerPlugin(ky["a"]);var xy={name:"ageCategoriesRangeSliderHandle",props:{data:{type:Object,required:!0},categories:{type:Array,required:!0},drag:{type:Boolean,default:!0},index:{type:Number,required:!0},length:{type:Number,required:!0},gap:{type:Number,required:!0},maxWidth:{type:Number,required:!0}},data(){return{handle:null,handleEnd:null,handleEndPosition:Number(this.$props.data.left.split("px")[0])+Number(this.$props.data.width.split("px")[0])}},watch:{},computed:{isActive(){return this.$props.data.handle},isHandleEnd(){return this.$props.index===this.$props.length&&this.$props.data.active},handleStyles:function(){let t=Number(this.$props.data.left.split("px")[0]);return{transform:`translate(${t}px, 64px)`}},canRemoveHandle:function(){const t=!!(this.$props.data.active&&this.$props.categories[this.$props.index-1]&&this.$props.categories[this.$props.index-1].active&&this.$props.categories[this.$props.index-1].handle&&(this.$props.categories[this.$props.index+1]&&this.$props.categories[this.$props.index+1].handle||void 0===this.$props.categories[this.$props.index+1]));return t}},methods:{getInfo(){const t=document.querySelector("#handle-"+(this.$props.index-1)),e=document.querySelector("#handle-"+(this.$props.index+1))||document.querySelector("#handleend-"+this.$props.index);this.handle.applyBounds({minX:t?wy["a"].getProperty(t,"x")+this.$props.gap:0,maxX:e?wy["a"].getProperty(e,"x")-this.$props.gap:this.$props.maxWidth-this.$props.gap})},resizePanels(){const t=Number(this.handle.deltaX.toFixed(2)),e=document.querySelector("#panel-"+this.$props.index),a=document.querySelector("#panel-"+(this.$props.index-1)),n=Math.round(wy["a"].getProperty(e,"left")/this.$props.gap),i=wy["a"].getProperty(a,"width"),s=wy["a"].getProperty(a,"left");a&&wy["a"].set("#panel-"+(this.$props.index-1),{width:"+="+t+"px",autoRound:!1}),wy["a"].set("#panel-"+this.$props.index,{left:"+="+t,autoRound:!1}),wy["a"].set("#panel-"+this.$props.index,{width:"-="+t,autoRound:!1}),this.$emit("update",{index:this.$props.index,left:wy["a"].getProperty(e,"left"),width:wy["a"].getProperty(e,"width"),prevLeft:s,prevWidth:i,age_from:n})},onDragEnd(){const t=document.querySelector("#panel-"+this.$props.index),e=document.querySelector("#panel-"+(this.$props.index-1)),a=Math.round(wy["a"].getProperty(t,"left")/this.$props.gap),n=wy["a"].getProperty(e,"width"),i=wy["a"].getProperty(e,"left");this.$emit("update:end",{index:this.$props.index,left:wy["a"].getProperty(t,"left"),width:wy["a"].getProperty(t,"width"),age_from:a,prevLeft:i,prevWidth:n})},getInfoEnd(){const t=document.querySelector("#handle-"+this.$props.index),e=document.querySelector("#handle-"+(this.$props.index+1));this.handleEnd.applyBounds({minX:t?wy["a"].getProperty(t,"x")+this.$props.gap:0,maxX:e?wy["a"].getProperty(e,"x"):this.$props.maxWidth})},resizePanelsEnd(){const t=Number(this.handleEnd.deltaX.toFixed(2)),e=document.querySelector("#panel-"+this.$props.index);wy["a"].set("#panel-"+this.$props.index,{width:"+="+t,autoRound:!1});const a=this.$props.data.age_from-1+Math.round(wy["a"].getProperty(e,"width")/this.$props.gap);this.$emit("update:handleend",{index:this.$props.index,age_to:a})},onDragHandleEnd(){const t=document.querySelector("#panel-"+this.$props.index),e=this.$props.data.age_from-1+Math.round(wy["a"].getProperty(t,"width")/this.$props.gap);this.$emit("update:handleend",{index:this.$props.index,age_to:e,addNewHandle:!0})},removeHandle(){this.$emit("remove",{index:this.$props.index})}},mounted(){const t=this;this.handle=new ky["a"](this.$refs.resizeHandle,{cursor:"col-resize",type:"x",onDragStart:this.getInfo,onDrag:this.resizePanels,onDragEnd:this.onDragEnd,liveSnap:!0,snap:{x:function(e){return Math.round(e/t.$props.gap)*t.$props.gap}}}),this.handleEnd=new ky["a"](this.$refs.resizeHandleEnd,{cursor:"col-resize",type:"x",onDragStart:this.getInfoEnd,onDrag:this.resizePanelsEnd,onDragEnd:this.onDragHandleEnd,liveSnap:!0,snap:{x:function(e){return Math.round(e/t.$props.gap)*t.$props.gap}}})}},Oy=xy,Ay=(a("b45b"),Object(U["a"])(Oy,yy,Cy,!1,null,"64328d8a",null)),Sy=Ay.exports,zy=function(){var t=this,e=t._self._c;return e("div",{staticClass:"rangeSlider__newWrap"},[e("div",{ref:"newHandle",staticClass:"rangeSlider__new",on:{click:t.newRange}}),e("div",{attrs:{id:"newHandle"}},[e("div",{staticClass:"newLine"}),e("img",{ref:"handle",staticClass:"newMarker",attrs:{src:a("ac67"),alt:""}})])])},jy=[],Iy={name:"ageCategoriesRangeSliderNewHandle",props:{gap:{type:Number,required:!1}},data(){return{handle:null}},watch:{},computed:{},methods:{newRange(){this.$emit("new",{x:wy["a"].getProperty("#newHandle","x")})}},mounted(){this.$refs.newHandle.onmousemove=t=>{var e=t.offsetX;wy["a"].set("#newHandle",{x:Math.round(e/this.$props.gap)*this.$props.gap,autoRound:!0})}}},Py=Iy,Ey=(a("5239"),Object(U["a"])(Py,zy,jy,!1,null,"6da6f415",null)),Ty=Ey.exports,Ny=a("11c1"),Ry={name:"ageCategoriesRangeSlider",props:{data:{type:Array,default:()=>[]}},components:{RangeSliderItem:gy,RangeSliderHandle:Sy,RangeSliderNewHandle:Ty},data(){return{isMounted:!1,categories:[],keys:[],defaultCategories:[{age_from:0,age_to:19,active:!1},{age_from:20,age_to:29,active:!0},{age_from:30,age_to:39,active:!0},{age_from:40,age_to:49,active:!0},{age_from:50,age_to:59,active:!0},{age_from:60,age_to:99,active:!0}],aCat:[{age_from:0,age_to:15,active:!1,handle:!1},{age_from:16,age_to:30,active:!0,handle:!0},{age_from:31,age_to:35,active:!1,handle:!0},{age_from:36,age_to:50,active:!0,handle:!0},{age_from:51,age_to:60,active:!0,handle:!0},{age_from:61,age_to:80,active:!0,handle:!0},{age_from:81,age_to:100,active:!1,handle:!0}],testCategories:[{age_from:16,age_to:29},{age_from:35,age_to:49},{age_from:50,age_to:59},{age_from:60,age_to:79}],ageMax:101,test:[],trackWidth:null,isResizing:!1,draggableHandles:[],resizables:null,currentHandle:null,startPanelWidth:[],resizingPanels:null}},computed:{trackGap(){if(this.isMounted)return this.trackWidth/this.ageMax}},mounted(){this.isMounted=!0,this.trackWidth=this.$refs.sliderTrack.offsetWidth,window.addEventListener("resize",this.resizeHandler),this.categories=this.$props.data.length>
10?this.$props.data:this.aCat,this.init(),this.categories.forEach((t,e)=>{this.categories[e]=this.getItemData(t),this.keys[e]=Object(Ny["v4"])()})},destroyed(){window.removeEventListener("resize",this.resizeHandler)},methods:{resizeHandler(){this.trackWidth=this.$refs.sliderTrack.offsetWidth},init(){const t=[];for(let e=0;e<this.testCategories.length;e++){const a=this.testCategories[e-1],n=this.testCategories[e+1],i=this.testCategories[e],s={age_from:i.age_from,age_to:i.age_to,active:!0};if(!a){const e={age_from:0};e["age_to"]=i.age_from-1,e["active"]=!1,t.push(e)}if(t.push(s),n){if(n.age_from-1!==i.age_to){const e={};e["age_from"]=i.age_to+1,e["age_to"]=n.age_from-1,e["active"]=!1,t.push(e)}}else{const e={};e["age_from"]=i.age_to+1,e["age_to"]=99,e["active"]=!1,t.push(e)}}this.test=t},defaultRangeSlider(t){this.categories=t},getItemData(t){let e=t.age_to-t.age_from,a=(this.trackGap*t.age_from).toFixed(2),n=(this.trackGap*(e+1)).toFixed(2);return Object(v["a"])(Object(v["a"])({},t),{},{left:a+"px",width:n+"px"})},updateData(t){const e=this.categories[t.index-1],a=this.categories[t.index];e&&this.$set(this.categories,t.index-1,Object(v["a"])(Object(v["a"])({},e),{},{age_to:t.age_from-1})),this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},a),{},{age_from:t.age_from}))},dragEnd(t){const e=this.categories[t.index-1],a=this.categories[t.index];e&&this.$set(this.categories,t.index-1,Object(v["a"])(Object(v["a"])({},e),{},{age_to:t.age_from-1,width:t.prevWidth+"px",left:t.prevLeft+"px"})),this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},a),{},{age_from:t.age_from,width:t.width+"px",left:t.left+"px"})),0===t.index&&(this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{age_from:t.age_from})),this.categories.unshift({age_from:0,age_to:t.age_from-1,active:!1,handle:!1}),this.categories.forEach((t,e)=>{this.categories[e]=this.getItemData(t),this.keys[e]=Object(Ny["v4"])()}))},dragHandleEnd(t){t.age_to&&(this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{age_to:t.age_to})),t.age_to<this.ageMax-1&&t.addNewHandle&&(this.categories.push({age_from:t.age_to+1,age_to:this.ageMax-1,active:!1,handle:!0}),this.categories.forEach((t,e)=>{this.categories[e]=this.getItemData(t),this.keys[e]=Object(Ny["v4"])()})))},newRange(t){const e=Math.round(t.x/this.trackGap);function a(t,e,a){const n=Math.max(e,a),i=Math.min(e,a);return t>=i&&t<=n}let n;const i=(t,e,a)=>[...t.slice(0,e),a,...t.slice(e)];for(const[l,c]of this.categories.entries())a(e,c.age_from,c.age_to)&&(n=l);const s={age_from:this.categories[n].age_from,age_to:e-1,active:!0,handle:!0},o={age_from:e,age_to:this.categories[n].age_to,active:!0,handle:!0},r=[n];this.categories=this.categories.filter((t,e)=>!r.includes(e)),this.categories=i(this.categories,n,this.getItemData(s)),this.categories=i(this.categories,n+1,this.getItemData(o)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})},activeHandle(t){this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{active:!0,handle:!0}))},removeHandle(t){const e=this.categories[t.index-1],a=this.categories[t.index],n=(t,e,a)=>[...t.slice(0,e),a,...t.slice(e)],i={age_from:e.age_from,age_to:a.age_to,active:!0,handle:!0},s=[t.index-1,t.index];this.categories=this.categories.filter((t,e)=>!s.includes(e)),this.categories=n(this.categories,t.index-1,this.getItemData(i)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})},disableHandle(t){const e=this.categories[t.index-1],a=this.categories[t.index],n=this.categories[t.index+1],i=(t,e,a)=>[...t.slice(0,e),a,...t.slice(e)];if(e&&e.active&&e.handle&&n&&n.active&&n.handle&&(this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{active:!1})),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})),e&&!e.active&&!e.handle&&n&&!n.active&&n.handle){const a={age_from:e.age_from,age_to:n.age_to,active:!1,handle:!1},i=[t.index-1,t.index,t.index+1];this.categories=this.categories.filter((t,e)=>!i.includes(e)),this.categories.unshift(this.getItemData(a)),this.categories.forEac
1h((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}if(e&&!e.active&&!e.handle&&n&&n.active&&n.handle){const n={age_from:e.age_from,age_to:a.age_to,active:!1,handle:!1},i=[t.index-1,t.index];this.categories=this.categories.filter((t,e)=>!i.includes(e)),this.categories.unshift(this.getItemData(n)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}if(e&&e.active&&e.handle&&n&&!n.active&&n.handle){const e={age_from:a.age_from,age_to:n.age_to,active:!1,handle:!0},s=[t.index,t.index+1];this.categories=this.categories.filter((t,e)=>!s.includes(e)),this.categories=i(this.categories,t.index,this.getItemData(e)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}if(e&&!e.active&&e.handle&&n&&!n.active&&n.handle){const a={age_from:e.age_from,age_to:n.age_to,active:!1,handle:!0},s=[t.index-1,t.index,t.index+1];this.categories=this.categories.filter((t,e)=>!s.includes(e)),this.categories=i(this.categories,t.index-1,this.getItemData(a)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}if(e&&!e.active&&e.handle&&n&&n.active&&n.handle){const n={age_from:e.age_from,age_to:a.age_to,active:!1,handle:!0},s=[t.index-1,t.index];this.categories=this.categories.filter((t,e)=>!s.includes(e)),this.categories=i(this.categories,t.index-1,this.getItemData(n)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}if(void 0===e&&n&&n.active&&n.handle&&(this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{active:!1,handle:!1})),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})),void 0===e&&n&&!n.active&&n.handle){const e={age_from:0,age_to:n.age_to,active:!1,handle:!1},a=[t.index-1,t.index,t.index+1];this.categories=this.categories.filter((t,e)=>!a.includes(e)),this.categories=i(this.categories,0,this.getItemData(e)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}if(e&&e.active&&e.handle&&void 0===n&&(this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{active:!1,handle:!0})),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})),e&&!e.active&&e.handle&&void 0===n){const a={age_from:e.age_from,age_to:this.ageMax-1,active:!1,handle:!0},n=[t.index-1,t.index,t.index+1];this.categories=this.categories.filter((t,e)=>!n.includes(e)),this.categories=i(this.categories,t.index,this.getItemData(a)),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()})}void 0===e&&void 0===n&&(this.$set(this.categories,t.index,Object(v["a"])(Object(v["a"])({},this.categories[t.index]),{},{active:!1,handle:!1})),this.categories.forEach((t,e)=>{this.keys[e]=Object(Ny["v4"])()}))}}},Ly=Ry,My=(a("ee77"),a("26ff"),Object(U["a"])(Ly,py,my,!1,null,null,null)),Dy=My.exports,$y={components:{BaseTooltip:uy["default"],PanelCompetitionFormBox:kh,PanelInputText:jh,PanelInputRadio:P_,PanelInputBaseRadio:Kh["default"],PanelInputDate:V_,PanelInputSwitch:nv,PanelInputSwitchMini:u_,Modal:$t["a"],ageCategoriesRangeSlider:Dy},data(){return{advanced:!1,form:{},errors:{}}}},Uy=$y,By=(a("24bf"),Object(U["a"])(Uy,cy,dy,!1,null,"3bf2569a",null)),Fy=By.exports,qy={components:{PanelCompetitionFormBox:kh,PanelCompetitionClassificationsForm:Fy},data(){return{errors:{}}}},Hy=qy,Gy=(a("5616"),Object(U["a"])(Hy,ry,ly,!1,null,"d18ca212",null)),Wy=Gy.exports,Vy=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-settings rebates"},[t.ready?[e("panel-competition-form-box",{staticClass:"rebates-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"rebates-form__label"},[t._v("Generowanie kodów rabatowych")]),e("panel-input-base-radio",{attrs:{name:"rebate-type",option:{value:"price",title:"Rabat kwotowy"}},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}}),e("panel-input-base-radio",{attrs:{name:"rebate-type",option:{value:"start",title:"Pełna opłata startowa"}},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}}),e("panel-input-base-radio",{attrs:{name:"rebate-type",option:{value:"mass",title:"Multi kod"}},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}})],1),e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"rebates-form__hint"},[t._v(" Wartość kodu rabatowego może być kwotowa lub likwidować opłatę startową. Kody rabatowe generowane są pulami. Określ wartość rabatu oraz ilość kodów. Do listy wygenerowanych kodów możesz dodawać kolejne pule z inną wartością rabatu. ")]),t.hasCycle?e("div",{staticClass:"rebates-cycle"},[t._v(" Generujesz kody dla zawodów cyklicznych."),e("br"),t._v(" Uczestnicy będą mogli użyć kodu w dowolnych zawodach w tym cyklu. ")]):t._e(),e("div",{staticClass:"rebates-generate__row"}
1,[e("div",{staticClass:"rebates-generate__amount",class:{"is-disabled":"start"===t.form.type}},[e("p",{staticClass:"rebates-field-label"},[e("span",[t._v("Rabat")]),e("span",[t._v("zł")])]),e("panel-input-text",{attrs:{hint:"0",error:t.errors.value},model:{value:t.form.value,callback:function(e){t.$set(t.form,"value",e)},expression:"form.value"}})],1),e("div",{staticClass:"rebates-generate__count"},[e("p",{staticClass:"rebates-field-label"},[t._v("Ilość")]),e("panel-input-text",{attrs:{hint:"0",error:t.errors.count},model:{value:t.form.count,callback:function(e){t.$set(t.form,"count",e)},expression:"form.count"}})],1),e("base-button",{staticClass:"rebates-generate__submit",attrs:{btn1:"",disabled:t.generating},on:{click:t.generate}},[t._v(" Wygeneruj kody ")])],1),"mass"===t.form.type?e("div",{staticClass:"rebates-generate__mass"},[e("div",{staticClass:"rebates-generate__max"},[e("p",{staticClass:"rebates-field-label"},[t._v("Max. użyć")]),e("panel-input-text",{attrs:{hint:"1",error:t.errors.max_uses},model:{value:t.form.maxUses,callback:function(e){t.$set(t.form,"maxUses",e)},expression:"form.maxUses"}})],1),e("div",{staticClass:"rebates-generate__date"},[e("panel-input-date",{attrs:{label:"Ważny od",placeholder:"Ważny od",error:t.errors.valid_from},model:{value:t.form.validFrom,callback:function(e){t.$set(t.form,"validFrom",e)},expression:"form.validFrom"}})],1),e("div",{staticClass:"rebates-generate__date"},[e("panel-input-date",{attrs:{label:"Ważny do",placeholder:"Ważny do",error:t.errors.valid_to},model:{value:t.form.validTo,callback:function(e){t.$set(t.form,"validTo",e)},expression:"form.validTo"}})],1)]):t._e(),t.formError?e("p",{staticClass:"rebates-form__error"},[t._v(t._s(t.formError))]):t._e()])]),t.features.combine?e("panel-competition-form-box",{staticClass:"rebates-form__box mab16"},[e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"rebates-form__label"},[t._v("Sumowanie kodów rabatowych")]),e("panel-input-base-radio",{attrs:{name:"rebates-combine",option:{value:"separate",title:"Rabaty się nie sumują"}},model:{value:t.rebatesCombine,callback:function(e){t.rebatesCombine=e},expression:"rebatesCombine"}}),e("panel-input-base-radio",{attrs:{name:"rebates-combine",option:{value:"sum",title:"Rabaty się sumują"}},model:{value:t.rebatesCombine,callback:function(e){t.rebatesCombine=e},expression:"rebatesCombine"}})],1),e("div",{staticClass:"col-12 col-lg-8"},[e("p",{staticClass:"rebates-form__hint"},[t._v(" Czy uczestnicy mają mieć możliwość wprowadzania wielu kodów rabatowych w koszyku? Jeśli suma rabatów przekroczy wysokość opłaty startowej, rabat będzie naliczany dla produktów wybranych w sklepie zawodów. ")])])]):t._e(),e("div",{ref:"rebatesTable",staticClass:"rebate-list-card"},[t.hasSelection?e("div",{staticClass:"rebate-stats rebate-stats--selection",class:{"rebate-stats--selection-no-share":!t.features.share}},[e("div",{staticClass:"rebate-stats__box"},[e("div",{staticClass:"rebate-stats__title"},[t._v("Wybrane")]),e("div",{staticClass:"rebate-metrics"},[e("div",{staticClass:"rebate-metric"},[e("span",[t._v("Ilość")]),e("strong",[t._v(t._s(t.selectedStats.count))])]),e("div",{staticClass:"rebate-metric"},[e("span",[t._v("Wartość")]),e("strong",[t._v(t._s(t.formatPrice(t.selectedStats.value)))])])])]),t.features.share?e("div",{staticClass:"rebate-stats__box"},[e("div",{staticClass:"rebate-stats__title"},[t._v("Oznacz")]),e("div",{staticClass:"rebate-share",on:{"!click":function(e){return t.onSharePointer.apply(null,arguments)},"!keydown":function(e){return t.onShareKey.apply(null,arguments)}}},[e("panel-input-checkbox",{attrs:{value:t.shareChecked,"checkbox-value":!0,name:"rebate-share",variant:"white"}},[t._v(" Udostępniony ")])],1)]):t._e(),e("div",{staticClass:"rebate-stats__box"},[e("div",{staticClass:"rebate-stats__title rebate-stats__title--ghost"},[t._v("Akcje")]),e("div",{staticClass:"rebate-actions"},[e("button",{staticClass:"rebate-action",attrs:{type:"button"},on:{click:t.exportCsv}},[e("span",[t._v("CSV")]),e("i",{staticClass:"fas fa-external-link-alt",attrs:{"aria-hidden":"true"}})]),e("button",{staticClass:"rebate-action",attrs:{type:"button"},on:{click:t.copyCodes}},[e("span",[t._v("Kopiuj")]),e("i",{staticClass:"fas fa-copy",attrs:{"aria-hidden":"true"}})]),t.features.delete?e("button",{staticClass:"rebate-action",attrs:{type:"button"},on:{click:t.deleteSelected}}
1,[e("span",[t._v("Usuń")]),e("i",{staticClass:"fas fa-trash",attrs:{"aria-hidden":"true"}})]):t._e(),e("button",{staticClass:"rebate-action rebate-action--close",attrs:{type:"button"},on:{click:t.clearSelection}},[t._v(" Zamknij ")])])])]):e("div",{staticClass:"rebate-stats"},[e("div",{staticClass:"rebate-stats__box"},[e("div",{staticClass:"rebate-stats__title"},[t._v("Kody rabatowe niezrealizowane")]),e("div",{staticClass:"rebate-metrics"},[e("div",{staticClass:"rebate-metric"},[e("span",[t._v("Ilość")]),e("strong",[t._v(t._s(t.unusedStats.count))])]),e("div",{staticClass:"rebate-metric"},[e("span",[t._v("Wartość")]),e("strong",[t._v(t._s(t.formatPrice(t.unusedStats.value)))])])])]),e("div",{staticClass:"rebate-stats__box"},[e("div",{staticClass:"rebate-stats__title"},[t._v("Kody rabatowe zrealizowane")]),e("div",{staticClass:"rebate-metrics"},[e("div",{staticClass:"rebate-metric"},[e("span",[t._v("Ilość")]),e("strong",[t._v(t._s(t.usedStats.count))])]),e("div",{staticClass:"rebate-metric"},[e("span",[t._v("Wartość")]),e("strong",[t._v(t._s(t.formatPrice(t.usedStats.value)))])])])]),e("div",{staticClass:"rebate-stats__box"},[e("div",{staticClass:"rebate-stats__title"},[t._v("Filtr")]),e("div",{staticClass:"rebate-filters"},[e("div",{staticClass:"rebate-filter",class:{"rebate-filter--filled":t.filters.valueKey}},[t.filters.valueKey?e("button",{staticClass:"rebate-filter__clear",attrs:{type:"button","aria-label":"Wyczyść kwotę"},on:{click:function(e){t.filters.valueKey=null}}},[e("i",{staticClass:"far fa-times-circle"})]):t._e(),e("panel-input-select",{attrs:{options:t.valueFilterOptions,label:"text","track-by":"value",placeholder:"Kwota kodu","hide-selected":!1},model:{value:t.valueFilterModel,callback:function(e){t.valueFilterModel=e},expression:"valueFilterModel"}})],1),e("div",{staticClass:"rebate-filter",class:{"rebate-filter--filled":t.filters.status}},[t.filters.status?e("button",{staticClass:"rebate-filter__clear",attrs:{type:"button","aria-label":"Wyczyść status"},on:{click:function(e){t.filters.status=null}}},[e("i",{staticClass:"far fa-times-circle"})]):t._e(),e("panel-input-select",{attrs:{options:t.statusFilterOptions,label:"text","track-by":"value",placeholder:"Status","hide-selected":!1},model:{value:t.statusFilterModel,callback:function(e){t.statusFilterModel=e},expression:"statusFilterModel"}})],1)])])]),e("div",{staticClass:"rebate-table-wrap"},[e("base-table",{staticClass:"rebate-table",attrs:{headers:t.headers,items:t.tableItems,"sort-column-default":1,"sort-reverse-default":!1},scopedSlots:t._u([{key:"header",fn:function({sort:a}){return[e("tr",t._l(t.headers,(function(n,i){return e("th",{key:n.value,class:["col-"+n.value,{"is-static":"index"===n.value||"select"===n.value}],on:{click:function(t){"select"!==n.value&&"index"!==n.value&&a(i)}}},["select"===n.value?[e("span",{staticClass:"rebate-check rebate-check--header",on:{"!click":function(e){return t.toggleSelectAll.apply(null,arguments)}}},[e("panel-input-checkbox",{attrs:{value:t.selectAll,"checkbox-value":!0,name:"rebate-select-all",variant:"white"}},[t._v("   ")])],1)]:[t._v(" "+t._s(n.text)+" "),"addedDateDisplay"===n.value?e("i",{staticClass:"fas fa-list rebate-sort",attrs:{"aria-hidden":"true"}}):t._e()]],2)})),0)]}},{key:"body",fn:function({displayedItems:a}){return t._l(a,(function(a,n){return e("tr",{key:a.id},[e("td",{staticClass:"col-index"},[t._v(t._s(n+1)+".")]),e("td",{staticClass:"col-addedDateDisplay"},[t._v(t._s(a.addedDateDisplay))]),e("td",{staticClass:"col-valueDisplay"},[t._v(t._s(a.valueDisplay))]),e("td",{staticClass:"col-code"},[e("span",{staticClass:"rebate-code"},[t._v(t._s(a.code))]),a.usesDisplay?e("span",{staticClass:"rebate-uses"},[t._v(t._s(a.usesDisplay))]):t._e()]),e("td",{staticClass:"col-playerName"},[t._v(t._s(a.playerName))]),e("td",{staticClass:"col-usedDateDisplay"},[t._v(t._s(a.usedDateDisplay))]),e("td",{staticClass:"col-statusLabel"},[e("span",{staticClass:"rebate-status",class:a.statusClass},[a.statusIcon?e("i",{class:a.statusIcon}):t._e(),t._v(" "+t._s(a.statusLabel)+" ")])]),e("td",{staticClass:"col-select"},[a.selectable?e("span",{staticClass:"rebate-check",on:{"!click":function(e){return t.toggleRow(a.id,e)}}},[e("panel-input-checkbox",{attrs:{value:t.selectedIds.includes(a.id),"checkbox-value":!0,name:"rebate-"+a.id}},[t._v("   ")])],1):t._e()])])}))}},{key:"no-results",fn:function(){return[e("div",{staticClass:"rebate-empty"},[t._v(" "+t._s(t.rebates.length?"Nie znaleziono":"Brak kodów rabatowych")+" ")])]},proxy:!0}])})],1)]),e("modal",{ref:"deleteModal",staticClass:"rebate-delete-modal",attrs:{"body-class":"h-auto"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("Usuń wybrane kody rabatowe")]},proxy:!0},{key:"body",fn:function(){return[e("div",{staticClass:"rebate-delete-modal__body"},[e("p",[t._v("Czy na pewno, chcesz usunąć wybrane kody rabatowe?")
1]),e("p",[t._v(" Przy próbie skorzystania z usuniętego kodu uczestnik zostanie poinformowany, że kod jest nieaktywny. ")])])]},proxy:!0},{key:"footer",fn:function(){return[e("button",{staticClass:"rebate-delete-modal__cancel",attrs:{type:"button"},on:{click:t.closeDeleteModal}},[t._v("Anuluj")]),e("base-button",{attrs:{btn1:"",disabled:t.deleting},on:{click:t.confirmDelete}},[t._v("Usuń wybrane kody")])]},proxy:!0}])})]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},Ky=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}];const Zy={share:!0,delete:!0,combine:!0};function Yy(t){return Pt["a"].get(`panel/competitions/${t}/rebates`)}function Qy(t,e){return Pt["a"].post(`panel/competitions/${t}/rebates`,e)}function Xy(t,e){return Pt["a"].delete(`panel/competitions/${t}/rebates`,{data:{ids:e}})}function Jy(t,e){return Pt["a"].patch(`panel/competitions/${t}/rebates/bulk-status`,{ids:e})}function tC(t,e){return Pt["a"].put(`panel/competitions/${t}/settings`,{rebatesCombine:Boolean(e)})}const eC={available:"Dostępny",shared:"Udostępniony",entered:"Wpisany",realized:"Zrealizowany",unused:"Dostępny",used:"Zrealizowany",expired:"Wygasły"};var aC={name:"PanelCompetitionRebates",components:{PanelCompetitionFormBox:kh,PanelInputBaseRadio:Kh["default"],PanelInputCheckbox:tb,PanelInputDate:V_,PanelInputSelect:$_,PanelInputText:jh,Modal:$t["a"]},props:{id:{type:Number,required:!0},competition:{type:Object,required:!0}},data(){return{ready:!1,generating:!1,sharing:!1,deleting:!1,combineReady:!1,features:Object(v["a"])({},Zy),rebates:[],selectedIds:[],selectAll:!1,shareChecked:!1,pendingDeleteIds:[],rebatesCombine:"separate",filters:{valueKey:null,status:null},form:{type:"price",value:"",count:"",maxUses:"",validFrom:null,validTo:null},errors:{},headers:[{text:"",value:"index"},{text:"Data utw.",value:"addedDateDisplay",type:"date"},{text:"Kwota",value:"valueDisplay"},{text:"Kod",value:"code"},{text:"",value:"playerName"},{text:"",value:"usedDateDisplay",type:"date"},{text:"Status",value:"statusLabel"},{text:"",value:"select"}]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitionsSettings"])),{},{competitionSetting(){return this.competitionsSettings[this.id]||{}},hasCycle(){return Boolean(this.competition&&this.competition.cycle)},hasSelection(){return this.selectedIds.length>0},formError(){return this.errors.value||this.errors.count||this.errors.max_uses||this.errors.valid_from||this.errors.valid_to||""},filteredRebates(){return this.rebates.filter(t=>(null==this.filters.valueKey||""===this.filters.valueKey||this.valueFilterKey(t)===this.filters.valueKey)&&(null==this.filters.status||""===this.filters.status||this.resolveStatusKey(t)===this.filters.status))},tableItems(){return this.filteredRebates.map(t=>this.mapRebateRow(t))},unusedStats(){return this.statsFor(this.rebates.filter(t=>this.isUnused(t)))},usedStats(){return this.statsFor(this.rebates.filter(t=>!this.isUnused(t)))},selectedRebates(){const t=new Set(this.selectedIds);return this.rebates.filter(e=>t.has(e.id))},selectedStats(){return this.statsFor(this.selectedRebates)},valueFilterOptions(){const t=new Set,e=[{value:"start",text:"Start"}];
1return this.rebates.forEach(a=>{const n=this.valueFilterKey(a);"start"===n||t.has(n)||(t.add(n),e.push({value:n,text:this.formatPrice(Number(n))}))}),e},statusFilterOptions(){const t=new Set(this.rebates.map(t=>this.resolveStatusKey(t)));return[...t].map(t=>({value:t,text:eC[t]||t}))},valueFilterModel:{get(){return null==this.filters.valueKey||""===this.filters.valueKey?null:this.valueFilterOptions.find(t=>t.value===this.filters.valueKey)||null},set(t){this.filters.valueKey=t&&null!=t.value?t.value:null}},statusFilterModel:{get(){return null==this.filters.status||""===this.filters.status?null:this.statusFilterOptions.find(t=>t.value===this.filters.status)||null},set(t){this.filters.status=t&&null!=t.value?t.value:null}}}),watch:{"form.type":"onFormType",rebatesCombine(t){this.combineReady&&this.saveCombine(t)},selectedIds(){this.syncShareCheckbox();const t=this.tableItems.filter(t=>t.selectable);this.selectAll=t.length>0&&t.every(t=>this.selectedIds.includes(t.id))}},async created(){this.initCombineFromSettings(),this.combineReady=!0,await this.loadRebates(),this.ready=!0},methods:{onFormType(t){"start"===t&&(this.form.value="")},initCombineFromSettings(){var t,e;const a=null!==(t=null!==(e=this.competitionSetting.rebatesCombine)&&void 0!==e?e:this.competitionSetting.rebates_combine)&&void 0!==t&&t;this.rebatesCombine=!0===a||1===a||"1"===a?"sum":"separate"},normalizeErrors(t){const e=t&&t.errors||t||{};if(!e||"object"!==typeof e||Array.isArray(e))return{};const a={};return Object.keys(e).forEach(t=>{if("error"===t||"message"===t)return;const n=e[t];a[t]=Array.isArray(n)?n[0]:n}),a},async loadRebates({preserveSelection:t=!1}={}){const e=t?this.selectedIds.slice():[];try{const a=await Yy(this.id);if(this.rebates=Array.isArray(a)?a:[],t){const t=new Map(this.rebates.map(t=>[t.id,t]));this.selectedIds=e.filter(e=>{const a=t.get(e);return a&&this.isSelectable(a)})}else this.clearSelection()}catch(a){console.error("Error loading rebates",a),this.rebates=[],alert("Nie udało się pobrać kodów rabatowych.")}},formatPrice(t){const e=Number(t)||0;return e.toFixed(2).replace(".",",")+" zł"},formatDate(t){if(null==t||""===t)return"";let e;if("number"===typeof t||/^\d+$/.test(String(t))){const a=Number(t);e=f()(a<1e12?1e3*a:a)}else e=f()(t);return e.isValid()?e.format("DD.MM.YYYY"):""},formatApiDate(t,e=!1){if(!t)return;let a;return a=f.a.isMoment(t)?t.clone():"string"===typeof t&&/^\d{2}\.\d{2}\.\d{4}$/.test(t)?f()(t,"DD.MM.YYYY",!0):f()(t),a.isValid()?(e?a.endOf("day"):a.startOf("day"),a.format("YYYY-MM-DD HH:mm:ss")):void 0},isFullFee(t){return"full"===t.type||"start"===t.type},rebatePrice(t){if(this.isFullFee(t))return 0;const e=Number(t.value),a=Number(t.price);return"mass"===t.type?(!Number.isNaN(e)&&e>0?e:a)||0:!Number.isNaN(a)&&a>0?a:!Number.isNaN(e)&&e>0?e:0},valueFilterKey(t){if(this.isFullFee(t))return"start";const e=this.rebatePrice(t);return e?String(e):"start"},resolveStatusKey(t){const e=(t.statusName||"").toLowerCase();return eC[e]?"unused"===e?"available":"used"===e?"realized":e:1===t.status?"available":2===t.status?"shared":3===t.status?"entered":4===t.status?"realized":"available"},isUnused(t){const e=this.resolveStatusKey(t);return"available"===e||"unused"===e||"shared"===e},isSelectable(t){return this.isUnused(t)},isDeletable(t){return"available"===this.resolveStatusKey(t)},statusClass(t){return"unused"===t||"available"===t?"status-available":"shared"===t?"status-shared":"entered"===t?"status-entered":"status-used"},statusIcon(t){return"unused"===t||"available"===t?"far fa-check-circle":"shared"===t?"far fa-arrow-circle-right":"entered"===t?"far fa-edit":"far fa-times-circle"},formatPlayerName(t){if(Array.isArray(t.players)&&t.players.length)return t.players.map(t=>[t.firstname,t.lastname].filter(Boolean).join(" ")).filter(Boolean).join(", ");const e=t.player||{};return[e.firstname,e.lastname].filter(Boolean).join(" ")},mapRebateRow(t){const e=this.resolveStatusKey(t),a=!this.isUnused(t),n=a?this.formatPlayerName(t):"";let i="Start";this.isFullFee(t)||(i=this.formatPrice(this.rebatePrice(t)));let s="";if("mass"===t.type||null!=t.maxUses&&Number(t.maxUses)>1){const e=null!=t.currentUses?t.currentUses:0,a=null!=t.maxUses?t.maxUses:"?";s=`${e}/${a} użyć`}const o=this.formatDate(t.validFrom),r=this.formatDate(t.validTo);if(o||r){const t=[o||"…",r||"…"].join(" – ");s=s?`${s}, ${t}`:t}return{id:t.id,code:t.code||t.codeRaw,addedDateDisplay:this.formatDate(t.addedDate||t.addedTime),usedDateDisplay:a?this.formatDate(t.usedDate||t.usedTime):"",valueDisplay:i,playerName:n,statusLabel:eC[e]||e,statusClass:this.statusClass(e),statusIcon:this.statusIcon(e),selectable:this.isSelectable(t),usesDisplay:s,_rebate:t}},statsFor(t){return{count:t.length,value:t.reduce((t,e)=>t+this.rebatePrice(e),0)}},async generate(){this.errors={};const t=Number(this.form.count);if(!t||t<1||t>100)return void(this.errors.count="Podaj ilość od 1 do 100");const e={type:this.form.type,count:t};if("price"===this.form.type||"mass"===this.form.type){const t=Number(String(this.form.value).replace(",","."));if(!t||t<=0)return void(this.errors.value="Podaj kwotę rabatu");e.value=t}if("mass"===this.form.type){const t=Number(this.form.maxUses);if(!t||t<1)return void(this.errors.max_uses="Podaj maksymalną liczbę użyć");e.max_uses=t;const a=this.formatApiDate(this.form.validFrom,!1),n=this.formatApiDate(this.form.validTo,!0);a&&(e.valid_from=a),n&&(e.valid_to=n)}this.generating=!0;try{await Qy(this.id,e),this.resetGenerateForm(),await this.loadRebates(),this.$nextTick(()=>this.scrollToTable())}catch(a){console.error("Error generating rebates",a),this.errors=this.normalizeErrors(a),alert((null===a||void 0===a?void 0:a.error)||(null===a||void 0===a?void 0:a.message)||"Nie udało się wygenerować kodów.")}finally{this.generating=!1}},resetGenerateForm(){this.form={type:this.form.type,value:"",count:"",maxUses:"",validFrom:null,validTo:null},this.errors={}},scrollToTable(){const t=this.$refs.rebatesTable;t&&"function"===typeof t.scrollIntoView&&t.scrollIntoView({behavior:"smooth",block:"start"})},async saveCombine(t){var e,a;if(!this.features.combine||!this.combineReady)return;const n="sum"===t,i=null!==(e=null!==(a=this.competitionSetting.rebatesCombine)&&void 0!==a?a:this.competitionSetting.rebates_combine)&&void 0!==e&&e,s=!0===i||1===i||"1"===i;if(n!==s)try{await tC(this.id,n),this.competitionSetting&&this.$set(this.competitionSetting,"rebatesCombine",n)}catch(o){console.error("Error saving rebatesCombine",o),alert((null===o||void 0===o?void 0:o.error)||"Nie udało się zapisać ustawienia sumowania."),this.combineReady=!1,this.initCombineFromSettings(),this.$nextTick(()=>{this.combineReady=!0})}},toggleSelectAll(t){t.preventDefault(),t.stopPropagation(),this.selectAll?this.selectedIds=[]:this.selectedIds=this.tableItems.filter(t=>t.selectable).map(t=>
1t.id)},toggleRow(t,e){e.preventDefault(),e.stopPropagation(),this.selectedIds.includes(t)?this.selectedIds=this.selectedIds.filter(e=>e!==t):this.selectedIds=this.selectedIds.concat(t)},clearSelection(){this.selectedIds=[],this.selectAll=!1,this.shareChecked=!1},syncShareCheckbox(){this.selectedRebates.length?this.shareChecked=this.selectedRebates.every(t=>"shared"===this.resolveStatusKey(t)):this.shareChecked=!1},onSharePointer(t){t.preventDefault(),t.stopPropagation(),this.requestShare()},onShareKey(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.requestShare())},requestShare(){this.shareChecked||this.sharing||this.markSelectedShared()},async markSelectedShared(){if(this.features.share&&!this.sharing&&this.selectedIds.length){this.sharing=!0,this.shareChecked=!0;try{const t=await Jy(this.id,this.selectedIds.slice());(null===t||void 0===t?void 0:t.skipped)>0&&Array.isArray(t.errors)&&t.errors.length&&alert(t.errors.join("\n")),await this.loadRebates({preserveSelection:!0})}catch(t){console.error("Error updating rebate status",t),alert((null===t||void 0===t?void 0:t.error)||"Nie udało się oznaczyć kodów."),this.syncShareCheckbox()}finally{this.sharing=!1}}},exportCsv(){const t=[["Data utw.","Wartość","Kod","Imię i nazwisko"],...this.selectedRebates.map(t=>{const e=this.mapRebateRow(t);return[e.addedDateDisplay,e.valueDisplay,e.code,e.playerName]})],e="\ufeff"+Object(Bl["a"])(t);Object(Bl["c"])("rabaty",e)},copyCodes(){const t=this.selectedRebates.map(t=>t.code||t.codeRaw).filter(Boolean).join(", ");t&&(navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(t).catch(()=>this.fallbackCopy(t)):this.fallbackCopy(t))},fallbackCopy(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)},deleteSelected(){if(!this.features.delete)return;const t=this.selectedRebates.filter(t=>this.isDeletable(t)).map(t=>t.id);t.length?(this.pendingDeleteIds=t,this.$refs.deleteModal.openModal()):alert("Można usunąć tylko kody ze statusem Dostępny.")},closeDeleteModal(){this.pendingDeleteIds=[],this.$refs.deleteModal&&this.$refs.deleteModal.closeModal()},async confirmDelete(){if(this.pendingDeleteIds.length&&!this.deleting){this.deleting=!0;try{const t=await Xy(this.id,this.pendingDeleteIds);(null===t||void 0===t?void 0:t.skipped)>0&&Array.isArray(t.errors)&&t.errors.length&&alert(t.errors.join("\n")),this.closeDeleteModal(),this.pendingDeleteIds=[],await this.loadRebates()}catch(t){console.error("Error deleting rebates",t),alert((null===t||void 0===t?void 0:t.error)||"Nie udało się usunąć kodów.")}finally{this.deleting=!1}}}}},nC=aC,iC=(a("b4f1"),Object(U["a"])(nC,Vy,Ky,!1,null,"e35747da",null)),sC=iC.exports,oC=function(){var t=this,e=t._self._c;return e("div",[t.isModerator&&t.organizerId?e("panel-mini-header",{attrs:{"organizer-id":t.organizerId}}):t._e(),e("div",{staticClass:"container mat40"},[e("div",{staticClass:"row admin-header"},[e("div",{staticClass:"col-12 col-md-4"},[e("h1",[t._v("Ustawienia "),t.organizerId?[t._v("profilu organizatora")]:t._e()],2),e("h3",[t._v("Potrzebujesz pomocy? Zadzwoń")]),e("a",{staticClass:"call-now",attrs:{href:"tel:+502678564"}},[t._v("502 678 564")])]),e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"buttons-wrap"},[e("base-button-group",{staticClass:"admin-header__views",attrs:{horizontal:""}},[e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"panel-setting-new"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-setting-new",params:t.routeParams,alias:!0})}}},[t._v(" Konto "),t.organizerId?[t._v("organizatora")]:t.operatorId?[t._v("operatora")]:t._e()],2),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"panel-setting-new-agreements"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-setting-new-agreements",params:t.routeParams,alias:!0})}}},[t._v(" Moje umowy ")]),t.organizerId?e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"panel-setting-ne
1w-info-payments"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-setting-new-info-payments",params:t.routeParams,alias:!0})}}},[t._v(" Płatności ")]):t.operatorId?e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"panel-setting-new-operator-payments"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-setting-new-operator-payments",params:t.routeParams,alias:!0})}}},[t._v(" Płatności ")]):t._e(),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"panel-setting-new-web"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-setting-new-web",params:t.routeParams,alias:!0})}}},[t._v(" Własna domena i e-mail ")]),e("base-button",{staticClass:"admin-header__views-btn",attrs:{btn11:"",pressed:"panel-setting-new-custom"===t.$route.name},on:{click:function(e){return t.$router.push({name:"panel-setting-new-custom",params:t.routeParams,alias:!0})}}},[t._v(" Własny wygląd ")])],1)],1),e("router-view")],1)])])],1)},rC=[],lC={name:"PanelAccountSettings",components:{PanelMiniHeader:pt},props:{id:{type:Number,default:null}},data(){return{}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","organizers"])),{},{organizer(){return this.organizers[this.organizerId]},operator(){return this.operators[this.operatorId]},operatorId(){return this.organizerId?null:this.user.operator},organizerId(){var t;return(null===(t=this.$route.params)||void 0===t?void 0:t.id)||this.user.organizer},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")},routeParams(){const t={};return this.operatorId?t["name"]=this.operator.name:(t["name"]=this.organizer.name,t["id"]=this.organizer.id),t}}),async created(){},methods:{}},cC=lC,dC=(a("0b59"),Object(U["a"])(cC,oC,rC,!1,null,"709a39d2",null)),uC=dC.exports,pC=function(){var t=this,e=t._self._c;return t.role&&Object.keys(t.role).length>0?e("div",{staticClass:"mat40"},[t.submitSuccess?e("PanelInfoBox",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Dane zostały poprawnie zapisane")])])]):t._e(),t.organizerId&&t.showDataUpdateInfo?e("div",{attrs:{classs:"row"}},[t._m(0)]):t._e(),e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Dane "),t.organizerId?[t._v("organizatora")]:t.operatorId?[t._v("operatora")]:t._e()],2)]),t.organizerId?e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Osobowość prawna organizatora")]),e("div",{staticClass:"radio-field radio-field__row",class:{"input-error-border":t.errors&&t.errors.legalType}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.legalType,expression:"form.legalType"}],staticClass:"d-none",attrs:{id:"private",type:"radio",value:"private"},domProps:{checked:t._q(t.form.legalType,"private")},on:{change:function(e){return t.$set(t.form,"legalType","private")}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"private"}},[t._v("Osoba prywatna")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.legalType,expression:"form.legalType"}],staticClass:"d-none",attrs:{id:"company",type:"radio",value:"company"},domProps:{checked:t._q(t.form.legalType,"company")},on:{change:function(e){return t.$set(t.form,"legalType","company")}}}),e("label",{staticClass:"radio-field__label",attrs:{for:"company"}},[t._v("Firma / Fundacja / Stowarzyszenie")])]),t.errors&&t.errors.legalType?e("span",{staticClass:"input-error-alt"},[t._v(t._s(t.say[t.errors.legalType]))]):t._e()])]):t._e(),"company"===t.form.legalType?e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("NIP")]),e("base-input-text",{attrs:{error:t.errors.fvNip},on:{"update:error":function(e){return t.$set(t.errors,"fvNip",e)}},model:{value:t.form.fvNip,callback:function(e){t.$set(t.form,"fvNip",e)},expression:"form.fvNip"}})],1),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Dane "),t.organizerId?[t._v("organizatora")]:t.operatorId?[t._v("operatora")]:t._e(),t._v(" wymagane są do zawarcia umów powerzenia przetwarzania danych osobowych uczestników oraz w przypadku uruchomienia płatności online, umów z operatorem płatności.")],2)
1])])]):t._e(),"company"===t.form.legalType?e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa firmy")]),e("base-input-text",{attrs:{error:t.errors.fvFirmname},on:{"update:error":function(e){return t.$set(t.errors,"fvFirmname",e)}},model:{value:t.form.fvFirmname,callback:function(e){t.$set(t.form,"fvFirmname",e)},expression:"form.fvFirmname"}})],1)]):t._e(),e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Imię*")]),e("base-input-text",{attrs:{error:t.errors.firstname},on:{"update:error":function(e){return t.$set(t.errors,"firstname",e)}},model:{value:t.form.firstname,callback:function(e){t.$set(t.form,"firstname",e)},expression:"form.firstname"}})],1)]),e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwisko*")]),e("base-input-text",{attrs:{error:t.errors.lastname},on:{"update:error":function(e){return t.$set(t.errors,"lastname",e)}},model:{value:t.form.lastname,callback:function(e){t.$set(t.form,"lastname",e)},expression:"form.lastname"}})],1)]),e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Miejscowość*")]),e("base-input-text",{attrs:{error:t.errors.fvCity},on:{"update:error":function(e){return t.$set(t.errors,"fvCity",e)}},model:{value:t.form.fvCity,callback:function(e){t.$set(t.form,"fvCity",e)},expression:"form.fvCity"}})],1)]),e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Kod pocztowy*")]),e("base-input-text",{attrs:{error:t.errors.fvPostcode},on:{"update:error":function(e){return t.$set(t.errors,"fvPostcode",e)}},model:{value:t.form.fvPostcode,callback:function(e){t.$set(t.form,"fvPostcode",e)},expression:"form.fvPostcode"}})],1)]),e("div",{staticClass:"row",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Ulica*")]),e("base-input-text",{attrs:{error:t.errors.fvAddress},on:{"update:error":function(e){return t.$set(t.errors,"fvAddress",e)}},model:{value:t.form.fvAddress,callback:function(e){t.$set(t.form,"fvAddress",e)},expression:"form.fvAddress"}})],1)]),e("div",{staticClass:"row unset mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-8 col-md-4"},[e("p",{staticClass:"form-input__label"},[t._v("Nr domu*")]),e("base-input-text",{attrs:{error:t.errors.fvHouseNumber},on:{"update:error":function(e){return t.$set(t.errors,"fvHouseNumber",e)}},model:{value:t.form.fvHouseNumber,callback:function(e){t.$set(t.form,"fvHouseNumber",e)},expression:"form.fvHouseNumber"}})],1),e("div",{staticClass:"col-4 col-md-2"},[e("div",{staticClass:"mal8"},[e("p",{staticClass:"form-input__label"},[t._v("Nr lokalu")]),e("base-input-text",{attrs:{error:t.errors.fvFlatNumber},on:{"update:error":function(e){return t.$set(t.errors,"fvFlatNumber",e)}},model:{value:t.form.fvFlatNumber,callback:function(e){t.$set(t.form,"fvFlatNumber",e)},expression:"form.fvFlatNumber"}})],1)])])]),e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Publiczne dane "),t.organizerId?[t._v("organizatora")]:t.operatorId?[t._v("operatora")]:t._e()],2)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa "),t.organizerId?[t._v("organizatora")]:t.operatorId?[t._v("operatora")]:t._e()],2),e("base-input-text",{attrs:{error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Wypełnij dane kontaktowe, jeśli chcesz inne dane niż swój adres e-mail używany do logowania do panelu i/lub innej nazwy "),t.organizerId?[t._v("organizatora")]:t.operatorId?[t._v("operatora")]:t._e(),t._v(" niż Imię i Nazwisko.")],2)])])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("Adres e-mail *")]),e("base-input-text",{attrs:{error:t.errors.email}
1,on:{"update:error":function(e){return t.$set(t.errors,"email",e)}},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("Numer telefonu * ")]),e("base-input-text",{attrs:{error:t.errors.phone},on:{"update:error":function(e){return t.$set(t.errors,"phone",e)}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1)])]),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{disabled:t.loading,btn1:"",short:""},on:{click:t.saveForm}},[t._v("Zapisz")])],1)])]),t.isModerator&&t.organizerId?e("div",[e("panel-competition-form-box",{staticClass:"panel-form"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Dane Logowania")])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("Adres e-mail logowania organizatora")]),e("base-input-text",{attrs:{error:t.errors.userEmail},on:{"update:error":function(e){return t.$set(t.errors,"userEmail",e)}},model:{value:t.org.userEmail,callback:function(e){t.$set(t.org,"userEmail",e)},expression:"org.userEmail"}})],1),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Uzupełnij adres e-mail na który loguje się organizator")])])])])]),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{disabled:t.loading,btn1:"",short:""},on:{click:t.saveOrgEmailForm}},[t._v("Zmień")])],1)])])],1):t._e()],1):t._e()},mC=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 mab24"},[e("div",{staticClass:"info-box info-bg"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("h3",{staticClass:"mab16",staticStyle:{"line-height":"1.1"}},[t._v("Uzupełnij dane organizatora i zaakceptuj umowę powierzenia przetwarzania danych osobowych.")]),e("p",[t._v("Aby dostosować działanie systemu do obowiązujących przepisów, potrzebujemy danych organizatorów do wystawienia umów o przetwarzaniu danych osobowych uczestników.")])])])]),e("div",{staticClass:"info-box alert-bg"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("p",[t._v("Od 1.01.2025 wejście do panelu organizatora będzie możliwe tylko po uzupełnieniu wymaganych danych i zaakceptowaniu umowy.")])])])])])}],fC={name:"PanelAccountSettingsSet",props:{id:{type:Number,default:null}},components:{PanelInfoBox:ub,PanelCompetitionFormBox:kh},data(){return{submitSuccess:!1,loading:!1,role:null,showDataUpdateInfo:!1,form:{legalType:"private"},errors:{},org:{userEmail:""}}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","say"])),{},{operatorId(){return this.organizerId?null:this.user.operator},organizerId(){var t;return(null===(t=this.$route.params)||void 0===t?void 0:t.id)||this.user.organizer},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")}}),watch:{submitSuccess:t=>{t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})},"form.legalType":function(t){t&&delete this.errors.legalType}},async created(){this.organizerId?(await this.readOrganizerSetup(),this.getRoleData(this.organizerId,"organizers")):this.operatorId&&this.getRoleData(this.operatorId,"operators"),this.isModerator&&this.organizerId&&this.getUserAccountData(this.organizerId)},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["rc"]])),{},{async readOrganizerSetup(){const t={id:this.organizerId,data:{}},e=await this.READ_ORGANIZER_SETUP(t);""!==e&&(this.showDataUpdateInfo=!0)},async getRoleData(t,e){try{const a=await Jl.a.get(`/panel/${e}/${t}`);this.role=JSON.parse(JSON.stringify(a)),this.form=a}catch(a){return void(this.errors=a)}},async getUserAccountData(t){try{const e=await Jl.a.get(`/organizer/${t}/user`);this.org.userEmail=e.userEmail}catch(e){return void(this.errors=e)}},async saveForm(){this.loading=!0;const t=[],e=this.organizerId?"/panel/organizers/"+this.organizerId:"/panel/operators/"+this.operatorId,a={firstname:this.form.firstname,lastname:this.form.lastname,email:this.form.email,fvPostcode:this.form.fvPostcode,fvCity:this.form.fvCity,fvAddress:this.form.fvAddress,name:this.form.name,phone:this.form.phone,fvHouseNumber:this.form.fvHouseNumber,fvFlatNumber:this.form.fvFlatNumber};"company"===this.form.legalType?(a["fvFirmname"]=this.form.fvFirmname,a["fvNip"]=this.form.fvNip):(delete a["fvFirmname"],delete a["fvNip"]),this.organizerId&&(a["operator"]=this.form.operator,a["legalType"]=this.form.legalType,a["commision"]=this.form.commision);
1const n=Jl()({method:"put",url:e,data:a});t.push(n);try{await Promise.all(t),this.submitSuccess=!0}catch(i){return this.errors=i,void setTimeout(()=>{var t;null===(t=document.querySelector(".input-field--error"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"})},500)}finally{this.loading=!1}},async saveOrgEmailForm(){this.loading=!0;try{await Jl.a.post(`/organizer/${this.organizerId}/user`,Object(v["a"])({},this.org)),this.submitSuccess=!0}catch(t){return this.errors=t,void setTimeout(()=>{var t;null===(t=document.querySelector(".input-field--error"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"})},500)}finally{this.loading=!1}}})},hC=fC,bC=(a("7605"),Object(U["a"])(hC,pC,mC,!1,null,"3a0ed58c",null)),_C=bC.exports,vC=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat40"},[t.newAgreements&&Object.keys(t.newAgreements).length>0||t.payAgreements&&Object.keys(t.payAgreements).length>0?e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Umowy wymagane do zaakceptowania")]),e("p",[e("a",{attrs:{href:"https://moj.gov.pl/nforms/signer/upload?xFormsAppName=SIGNER",target:"_blank",rel:"noopener noreferrer"}},[t._v("Potrzebujesz pomocy z wypełnieniem formularza? Sprawdź: "),e("b",{staticStyle:{"text-decoration":"underline"}},[t._v("Jak podpisać dokument cyfrowo?")])])])]),t.payAgreements&&Object.keys(t.payAgreements).length>0?e("div",{staticClass:"agreement-items"},t._l(t.payAgreements,(function(a,n){return e("PanelAdminPayAgreements",{key:n,attrs:{id:a.id,agreement:a},on:{update:t.getAgreementsData}})})),1):t._e(),t.newAgreements&&Object.keys(t.newAgreements).length>0?e("div",{staticClass:"agreement-items"},t._l(t.newAgreements,(function(a,n){return e("div",{key:n,staticClass:"agreement-item"},[e("b",{staticClass:"agreement-name"},[t._v("Umowa "+t._s(t.operatorNames(a.contractor)))]),e("div",{staticClass:"agreement-date"},[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download"},on:{click:function(e){return t.getSampleAgreement(a.principal,a.contractor)}}},[e("span",[t._v("Pobierz wzór umowy")])])],1),e("div",{staticClass:"agreement-actions"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:function(e){return t.postAgreement(a)}}},[e("span",[t._v("AKCEPTUJĘ")])])],1)])})),0):t._e()]):t._e(),t.agreements&&Object.keys(t.agreements).length>0?e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Moje umowy")])]),e("div",{staticClass:"agreement-items"},t._l(t.agreements,(function(a,n){return e("div",{key:n,staticClass:"agreement-item"},[e("b",{staticClass:"agreement-name"},[t._v("Umowa "+t._s(a.fvFirmname))]),e("b",{staticClass:"agreement-date"},[t._v(t._s(t.timestampToDate(a.addedTime)))]),e("div",{staticClass:"agreement-actions"},[a.link?e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download",loading:t.isWaiting},on:{click:function(e){return t.goToAgreement(a.link)}}},[e("span",[t._v("Link do umowy")])]):e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download",loading:t.isWaiting},on:{click:function(e){return t.downloadAgreement(a.secretId)}}},[e("span",[t._v("Pobierz umowę")])])],1)])})),0)]):t._e()],1)},gC=[],yC=function(){var t=this,e=t._self._c;return e("ValidationObserver",{ref:"orderCollectionOfFeesFormObserver",attrs:{tag:"div"},scopedSlots:t._u([{key:"default",fn:function({handleSubmit:a}){return[e("form",{staticClass:"agreement-item",class:{"is-waiting":t.isWaiting},on:{submit:function(e){return e.preventDefault(),a(t.putPayAgreement)}}},[e("b",{staticClass:"agreement-name"},[t._v("Umowa za zawody: "+t._s(t.agreement.name))]),e("div",{staticClass:"agreement-date"},[e("base-button",{attrs:{btn9:"",icon:"dsi dsi-download",loading:t.isWaiting},on:{click:function(e){return t.payAgreementLink(t.agreement.id)}}},[e("span",[t._v("Pobierz wzór umowy")])])],1),e("div",{staticClass:"agreement-actions"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"file",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}
1){return[e("base-input-file",{class:{"is-error":a[0]},attrs:{accept:"image/*,.pdf",isMultiple:!1,converter:"base64",hint:"Wybierz plik"},model:{value:t.file,callback:function(e){t.file=e},expression:"file"}}),a[0]?e("span",{staticClass:"input-error-alt"},[t._v("Pole wymagane")]):t._e()]}}],null,!0)}),e("base-button",{attrs:{btn1:"",short:""},on:{click:function(e){return a(t.putPayAgreement)}}},[e("span",[t._v("AKCEPTUJĘ")])])],1)])]}}])})},CC=[];Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"}));var wC={name:"PanelAdminPayAgreements",props:{id:{type:Number,required:!0},agreement:{type:Object,required:!0,default:()=>({})}},components:{ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},data(){return{file:[],isWaiting:!1}},computed:Object(v["a"])({},Object(R["c"])(["token"])),created(){},methods:{async payAgreementLink(t){this.isWaiting=!0;try{const e=await Jl.a.get(`${s["a"]}/agreement/${t}/pay-competition`,{responseType:"blob",headers:{"X-Access-Token":this.token}}),a=new Blob([e],{type:"application/pdf"}),n=window.URL.createObjectURL(a);window.open(n,"_blank")}catch(e){console.log(e)}finally{this.isWaiting=!1}},async putPayAgreement(){try{this.isWaiting=!0,await Pt["a"].post(`/panel/competitions/${this.id}/files/payAgreement`,this.file[0]),this.$emit("update")}catch(t){console.error(t)}finally{this.isWaiting=!1}}}},kC=wC,xC=(a("8d28"),Object(U["a"])(kC,yC,CC,!1,null,"28583ba0",null)),OC=xC.exports,AC={name:"PanelAccountSettingsAgreements",props:{id:{type:Number,default:null}},components:{PanelCompetitionFormBox:kh,PanelAdminPayAgreements:OC},data(){return{loading:!1,agreements:null,newAgreements:null,payAgreements:null,files:{},isWaiting:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","operators","token"])),{},{operatorId(){return this.id?null:this.user.operator},organizerId(){return this.id||this.user.organizer},operatorNames(){return t=>this.operators[t]?this.operators[t].name:(this.getOperatorName(t).then(e=>{this.$set(this.operators,t,{name:e})}),"...")}}),created(){this.getAgreementsData()},methods:{async getAgreementsData(){const t=this.operatorId||this.organizerId,e=[],a=Jl()({method:"get",url:`/agreement/${t}/check`});if(e.push(a),this.operatorId){const a=Jl()({method:"get",url:`/agreement/${t}/operator`});e.push(a)}if(this.organizerId){const a=Jl()({method:"get",url:`/agreement/${t}/organizer`});e.push(a);const n=Jl()({method:"get",url:`/agreement/${t}/organizer/pay`});e.push(n)}await Promise.all(e).then(t=>{this.newAgreements=t[0],this.agreements=t[1],this.payAgreements=t[2]})},async postAgreement(t){const e={administrator:t.principal,processor:t.contractor};try{await Jl.a.post("/agreement/dpa",e,{headers:{"X-Access-Token":this.token}}),this.getAgreementsData()}catch(a){return void console.log(a)}},async getOperatorName(t){const e=await Jl()({method:"get",url:"/panel/operators/"+t});return e.name},timestampToDate(t){return Object(Gt["a"])(Object(Ft["a"])(t),"dd.MM.yyyy")},getSampleAgreement(t,e){window.open(`${s["a"]}/agreement/sample?administrator=${t}&processor=${e}`,"_blank")},goToAgreement(t){window.open("https://dostartu.pl/"+t,"_blank")},async downloadAgreement(t){this.isWaiting=!0;try{const e=await Jl.a.get(`${s["a"]}/agreement/${t}/print`,{responseType:"blob",headers:{"X-Access-Token":this.token}}),a=new Blob([e],{type:"application/pdf"}),n=window.URL.createObjectURL(a);window.open(n,"_blank")}catch(e){console.log(e)}finally{this.isWaiting=!1}},async payAgreementLink(t){this.isWaiting=!0;try{const e=await Jl.a.get(`${s["a"]}/agreement/${t}/pay-competition`,{responseType:"blob",headers:{"X-Access-Token":this.token}}),a=new Blob([e],{type:"application/pdf"}),n=window.URL.createObjectURL(a);window.open(n,"_blank")}catch(e){console.log(e)}finally{this.isWaiting=!1}}}},SC=AC,zC=(a("a365"),Object(U["a"])(SC,vC,gC,!1,null,"4b6bd107",null)),jC=zC.exports,IC=function(){var t,e=this,n=e._self._c;return n("div",{staticClass:"mat40"},[e.errors&&e.errors.fvNip?n("PanelInfoBox",[n("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{id:"icon/interfaces/info-circle"}},[n("path",{attrs:{id:"Shape","fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24ZM29 32H26V21C26 20.4477 25.5523 20 25 20H21C20.4477 20 20 20.4477 20 21C20 21.5523 20.4477 22 21 22H24V32H21C20.4477 32 20 32.4477 20 33C20 33.5523 20.4477 34 21 34H29C29.5523 34 30 33.5523 30 33C30 32.4477 29.5523 32 29 32ZM24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM26 15C26 14.4477 25.5523 14 25 14H23C22.4477 14 22 14.4477 22 15V17C22 17.5523 22.4477 18 23 18H25C25.5523 18 26 17.5523 26 17V15Z",fill:"#455A64"}})])]),n("div",[n("p",{staticClass:"text-lg"},[n("b",[e._v("Dane nie zostały poprawnie zapisane.")])]),n("p",[e._v("Konto organizatora ma problem z NIPem: "+e._s(e.say[e.errors.fvNip]))])])]):e._e(
1),e.submitSuccess?n("PanelInfoBox",[n("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),n("p",{staticClass:"text-lg"},[n("b",[e._v("Dane zostały poprawnie zapisane")])])]):e._e(),e.afterSubmitInfo?[n("PanelInfoBox",[n("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{id:"icon/interfaces/info-circle"}},[n("path",{attrs:{id:"Shape","fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24ZM29 32H26V21C26 20.4477 25.5523 20 25 20H21C20.4477 20 20 20.4477 20 21C20 21.5523 20.4477 22 21 22H24V32H21C20.4477 32 20 32.4477 20 33C20 33.5523 20.4477 34 21 34H29C29.5523 34 30 33.5523 30 33C30 32.4477 29.5523 32 29 32ZM24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM26 15C26 14.4477 25.5523 14 25 14H23C22.4477 14 22 14.4477 22 15V17C22 17.5523 22.4477 18 23 18H25C25.5523 18 26 17.5523 26 17V15Z",fill:"#455A64"}})])]),n("b",[e._v("Aby skończyc rejestracje przejdź do serwisu Przelewy 24: "),n("a",{staticStyle:{"font-weight":"bold","text-decoration":"underline"},attrs:{href:e.afterSubmitResponse.data.link,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.afterSubmitResponse.data.link))])])])]:e.organizer&&Object.keys(e.organizer).length>0?[null===e.operatorId&&e.organizer.subjectPayment&&e.operator&&(!0===e.operator.p24On||!0===e.operator.dotpayOn)?n("panel-competition-form-box",{staticClass:"panel-form"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("h2",[e._v("Pobieranie płatności online od uczestników")])])]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("p",[e._v("Płatności za zawody od uczestników zbiera w Twoim imieniu operator:")]),n("br"),n("p",[n("b",[e._v(e._s(e.operator.name))]),n("br"),e.operator.phone?n("span",[e._v("tel. "+e._s(e.operator.phone)),n("br")]):e._e(
1),e.operator.email?n("span",[e._v(e._s(e.operator.email))]):e._e()])])])]):[null===e.operatorId?n("PanelInfoBox",[n("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{id:"icon/interfaces/info-circle"}},[n("path",{attrs:{id:"Shape","fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24ZM29 32H26V21C26 20.4477 25.5523 20 25 20H21C20.4477 20 20 20.4477 20 21C20 21.5523 20.4477 22 21 22H24V32H21C20.4477 32 20 32.4477 20 33C20 33.5523 20.4477 34 21 34H29C29.5523 34 30 33.5523 30 33C30 32.4477 29.5523 32 29 32ZM24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM26 15C26 14.4477 25.5523 14 25 14H23C22.4477 14 22 14.4477 22 15V17C22 17.5523 22.4477 18 23 18H25C25.5523 18 26 17.5523 26 17V15Z",fill:"#455A64"}})])]),n("b",[e._v("Aby rozpocząć pobieranie opłat online od uczestników, zdecyduj czy wolisz użyć własnego konta w Przelewy 24, czy zlecić pobieranie opłat dostartu.")])]):e._e(),n("panel-competition-form-box",{staticClass:"panel-form"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("h2",[e._v("Pobieranie płatności online od uczestników")]),e.operatorPaymentsOn?n("small",[e._v("Ustawienia operatora")]):e._e()])]),e.operatorPaymentsOn?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("panel-input-base-radio",{attrs:{name:"startlimit",option:{value:"subjectPayment",title:"Operator zbiera płatności"}},model:{value:e.form.startlimit,callback:function(t){e.$set(e.form,"startlimit",t)},expression:"form.startlimit"}}),n("div",{staticClass:"field-optional"},[n("p",[e._v("Stała prowizja od każdych zawodów")])])],1),n("div",{staticClass:"col-12 col-md-6"},[n("p",{staticClass:"field-helper mal32"},[e._v("Będziesz pobierać opłaty online na rzecz organizatora i rozliczać się z organizatorami we własnym zakresie.")])])]):e._e(),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("panel-input-base-radio",{attrs:{name:"startlimit",option:{value:"st1",title:e.operatorPaymentsOn?"Dostartu zbiera płatności":"Zlecam pobieranie opłat"}},model:{value:e.form.startlimit,callback:function(t){e.$set(e.form,"startlimit",t)},expression:"form.startlimit"}}),n("div",{staticClass:"field-optional"},[n("p",[e._v("6,0% prowizji od pobieranych płatności")])])],1),n("div",{staticClass:"col-12 col-md-6"},[e.operatorPaymentsOn?n("p",{staticClass:"field-helper mal32"},[e._v("Będziemy pobierać opłaty w imieniu organizatora, a "),n("b",[e._v("po zakończeniu zawodów")]),e._v(", zebrane środki przelejemy na wskazana przez organizatora konto")]):n("p",{staticClass:"field-helper mal32"},[e._v("Będziemy pobierać opłaty w Twoim imieniu, a "),n("b",[e._v("po zakończeniu zawodów")]),e._v(", zebrane środki przelejemy na wskazana przez Ciebie konto")])])]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("panel-input-base-radio",{attrs:{name:"startlimit",option:{value:"st2",title:e.operatorPaymentsOn?"Organizator zbiera płatności":"Zbieram płatności"}},model:{value:e.form.startlimit,callback:function(t){e.$set(e.form,"startlimit",t)},expression:"form.startlimit"}}),n("div",{staticClass:"field-optional"},[1===(null===(t=e.organizer)||void 0===t?void 0:t.operator)?n("p",[e._v("3,6% prowizji od pobieranych płatności")]):n("p",[e._v("Stała prowizja od każdych zawodów")])])],1),n("div",{staticClass:"col-12 col-md-6"},[e.operatorPaymentsOn?n("p",{staticClass:"field-helper mal32"},[e._v("Organizator będzie pobierać opłaty online we własnym zakresie. Może użyć istniejącego konta w "),n("b",[e._v("Przelewy 24")]),e._v(" lub założyć nowe konto.")]):e._e(),n("p",{staticClass:"field-helper mal32"},[e._v("Będziesz pobierać opłaty online we własnym zakresie. Możesz użyć istniejącego konta w "),n("b",[e._v("Przelewy 24")]),e._v(" lub założyć nowe konto w kolejnym kroku.")])])])]),"st1"===e.form.startlimit?[n("ValidationObserver",{ref:"orderCollectionOfFeesFormObserver",staticStyle:{"margin-top":"16px"},attrs:{tag:"div"},scopedSlots:e._u([{key:"default",fn:function({handleSubmit:t}
1){return[n("form",{class:{"is-waiting":e.isWaiting},on:{submit:function(a){return a.preventDefault(),t(e.orderCollectionOfFees)}}},[n("panel-competition-form-box",{staticClass:"panel-form"},[n("div",{staticClass:"row"},[e.organizer.bankAccount?n("div",{staticClass:"col-12 col-md-6"},[n("p",[e._v("Numer konta")]),n("b",[e._v(e._s(e.organizer.bankAccount))])]):[n("div",{staticClass:"col-12 col-md-6"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"collect.bankAccount",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Numer konta",error:t[0],hint:"Wpisz nazwe"},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.collect.bankAccount,callback:function(t){e.$set(e.collect,"bankAccount",t)},expression:"collect.bankAccount"}})]}}],null,!0)})],1),n("div",{staticClass:"col-12 col-md-6"},[n("p",{staticClass:"field-helper mal32"},[e._v("Podaj numer konta, na które chcesz otrzymać zebrane od uczestników opłaty. Środki przelejemy po zakończeniu zawodów.")])])]],2)])],1)]}}],null,!1,340112361)})]:e._e(),n("panel-competition-form-box",{directives:[{name:"show",rawName:"v-show",value:"st2"===e.form.startlimit,expression:"form.startlimit === 'st2'"}],staticClass:"panel-form"},[n("h4",[e._v("Konto "),n("b",[e._v("Przelewy 24")])]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("panel-input-base-radio",{attrs:{name:"form.p24",option:{value:"12",title:"Posiadam konto w Przelewy24"}},model:{value:e.form.p24,callback:function(t){e.$set(e.form,"p24",t)},expression:"form.p24"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("panel-input-base-radio",{attrs:{name:"form.p24",option:{value:"22",title:"Chcę założyć konto w Przelewy24"}},model:{value:e.form.p24,callback:function(t){e.$set(e.form,"p24",t)},expression:"form.p24"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("panel-input-base-radio",{attrs:{name:"form.p24",option:{value:"32",title:"Posiadam stare konto Dotpay (ważne do 30.09.2024)"}},model:{value:e.form.p24,callback:function(t){e.$set(e.form,"p24",t)},expression:"form.p24"}})],1)])]),"st2"===e.form.startlimit&&"12"===e.form.p24?n("panel-competition-form-box",{staticClass:"panel-form"},[n("ValidationObserver",{ref:"putOrganizerFormObserver",scopedSlots:e._u([{key:"default",fn:function({handleSubmit:t}){return[n("h4",[e._v("Moje konto przelewy24")]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("form",{class:{"is-waiting":e.isWaiting},on:{submit:function(a){return a.preventDefault(),t(e.putOrganizerSubmit)}}},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24put.p24Id",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Numer ID klienta Przelewy24",error:t.p24Id},on:{"update:error":function(a){return e.$set(t,"p24Id",a)}},model:{value:e.p24put.p24Id,callback:function(t){e.$set(e.p24put,"p24Id",t)},expression:"p24put.p24Id"}})]}}],null,!0)})],1)]),n("div",{staticClass:"col-12 col-md-6"},[n("p",{staticClass:"field-helper mal32"},[e._v("Numer ID klienta znajdziesz w ustawieniach panelu systemu Przelewy 24, w sekcji Konfiguracja urlc.")])])])]}}],null,!1,3406852559)})],1):e._e(),e.form.startlimit&&"st2"===e.form.startlimit&&e.form.p24&&"22"===e.form.p24?n("ValidationObserver",{ref:"newMerchantFormObserver",scopedSlots:e._u([{key:"default",fn:function({handleSubmit:t}){return[n("form",{class:{"is-waiting":e.isWaiting},on:{submit:function(a){return a.preventDefault(),t(e.newMerchantSubmit)}}},[n("panel-competition-form-box",{staticClass:"panel-form mat16"},[n("h2",[e._v("Rejestracja konta Przelewy24")]),n("div",{staticClass:"row"},[n("div",{staticClass:"panel-form col-12 col-md-6"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.business_type",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-select",{attrs:{selectLabel:"Rodzaj działalności",options:e.p24BusinessType,"hide-selected":!1,error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.business_type,callback:function(t){e.$set(e.p24form,"business_type",t)},expression:"p24form.business_type"}})]}}],null,!0)})],1)]),e.p24form.business_type&&1===e.p24form.business_type.value?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.pesel",rules:{required:!(!e.p24form.business_type||1!==e.p24form.business_type.value)}},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Pesel",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.pesel,callback:function(t){e.$set(e.p24form,"pesel",t)},expression:"p24form.pesel"}})]}}],null,!0)}
1)],1)]):e._e(),e.p24form.business_type&&e.p24form.business_type.value>3?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.krs",rules:{required:!!(e.p24form.business_type&&e.p24form.business_type.value>3),min:10,max:10}},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{type:"number",label:"KRS",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.krs,callback:function(t){e.$set(e.p24form,"krs",t)},expression:"p24form.krs"}})]}}],null,!0)})],1)]):e._e(),e.p24form.business_type&&1!==e.p24form.business_type.value?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.nip",rules:{required:!(!e.p24form.business_type||1===e.p24form.business_type.value)}},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{staticClass:"mab8",attrs:{type:"number",label:"NIP",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.nip,callback:function(t){e.$set(e.p24form,"nip",t)},expression:"p24form.nip"}})]}}],null,!0)}),n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.regon",rules:{required:!(!e.p24form.business_type||1===e.p24form.business_type.value),min:9,max:14}},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{type:"number",label:"Regon",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.regon,callback:function(t){e.$set(e.p24form,"regon",t)},expression:"p24form.regon"}})]}}],null,!0)})],1)]):e._e(),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.name",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Nazwa firmy / organizacji",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.name,callback:function(t){e.$set(e.p24form,"name",t)},expression:"p24form.name"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.email",rules:"required|email"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"E-mail",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.email,callback:function(t){e.$set(e.p24form,"email",t)},expression:"p24form.email"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.phoneNumber",rules:"required|min:9|max:9"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{type:"number",label:"Telefon",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.phoneNumber,callback:function(t){e.$set(e.p24form,"phoneNumber",t)},expression:"p24form.phoneNumber"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.bankAccount",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{type:"number",label:"Numer konta",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.bankAccount,callback:function(t){e.$set(e.p24form,"bankAccount",t)},expression:"p24form.bankAccount"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.street",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Ulica",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.street,callback:function(t){e.$set(e.p24form,"street",t)},expression:"p24form.street"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.postCode",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Kod pocztowy",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.postCode,callback:function(t){e.$set(e.p24form,"postCode",t)},expression:"p24form.postCode"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.city",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Miejscowość",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.city,callback:function(t){e.$set(e.p24form,"city",t)},expression:"p24form.city"}})]}}],null,!0)})],1)]),n("div",{staticClass:"row",staticStyle:{display:"none"}},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.country",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Kraj",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.p24form.country,callback:function(t){e.$set(e.p24form,"country",t)},expression:"p24form.country"}})]}}],null,!0)})],1)])]),n("div",{staticClass:"col-12 col-md-6"},[n("p",{staticClass:"field-helper mal32"},[e._v("Poniższe dane wymagane są wyłącznie do zawarcia umowy z operatorem płatności "),n("b",[e._v("Przelewy24")]),e._v(".")]),n("p",{staticClass:"field-helper mal32"},[e._v("Dane zostaną bezpośrednio przekazane firmie "),n("b",[e._v("Przelewy24")]),e._v(" i nie będą zapisane w systemie DOSTARTU.")]),n("p",{staticClass:"field-helper mal32"},[e._v("Prosimy o podanie danych zgodnych z dokumentami rejestracyjnymi Twojej firmy.")])])])]),n("panel-competition-form-box",{staticClass:"panel-form"},[n("h4",[e._v("Osoba reprezentująca firmę / organizację")]),n("div",{staticClass:"row"},[n("div",{staticClass:"panel-form col-12 col-md-6"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"Imię i nazwisko",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}},model:{value:e.p24form.contactPersonName,callback:function(t){e.$set(e.p24form,"contactPersonName",t)},expression:"p24form.contactPersonName"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"E-mail",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}},model:{value:e.p24form.contactPersonEmail,callback:function(t){e.$set(e.p24form,"contactPersonEmail",t)},expression:"p24form.contactPersonEmail"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"Telefon",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}},model:{value:e.p24form.contactPersonPhoneNumber,callback:function(t){e.$set(e.p24form,"contactPersonPhoneNumber",t)},expression:"p24form.contactPersonPhoneNumber"}})],1)]),n("div",{staticClass:"row",staticStyle:{display:"none"}},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"Kraj",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}},model:{value:e.p24form.contactCountry,callback:function(t){e.$set(e.p24form,"contactCountry",t)},expression:"p24form.contactCountry"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"Miasto",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}},model:{value:e.p24form.contactCity,callback:function(t){e.$set(e.p24form,"contactCity",t)},expression:"p24form.contactCity"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"Kod pocztowy",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}}
1,model:{value:e.p24form.contactPostCode,callback:function(t){e.$set(e.p24form,"contactPostCode",t)},expression:"p24form.contactPostCode"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("panel-input-text",{attrs:{label:"Ulica",error:e.errors.name},on:{"update:error":function(t){return e.$set(e.errors,"name",t)}},model:{value:e.p24form.contactStreet,callback:function(t){e.$set(e.p24form,"contactStreet",t)},expression:"p24form.contactStreet"}})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"input_ids_add_1",rules:{required:{allowFalse:!1}}},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-checkbox",{attrs:{"checkbox-value":{value:1,text:"Akceptuje Regulamin korzystania z usług Przelewy24 na platformie DOSTARTU"},name:"input_ids_add_1",variant:"white",value:0,error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.form.input_ids_add_1,callback:function(t){e.$set(e.form,"input_ids_add_1",t)},expression:"form.input_ids_add_1"}},[e._v(" Akceptuje Regulamin korzystania z usług Przelewy24 na platformie DOSTARTU ")])]}}],null,!0)})],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"input_ids_add_2",rules:{required:{allowFalse:!1}}},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-checkbox",{attrs:{"checkbox-value":{value:2,text:"Jestem uprawniony do reprezentowania powyższego podmiotu"},name:"input_ids_add_2",variant:"white",error:t[0]},on:{"update:error":function(a){return e.$set(t,0,a)}},model:{value:e.form.input_ids_add_2,callback:function(t){e.$set(e.form,"input_ids_add_2",t)},expression:"form.input_ids_add_2"}},[e._v(" Jestem uprawniony do reprezentowania powyższego podmiotu ")])]}}],null,!0)})],1)])])])])],1)]}}],null,!1,1823571896)}):e._e(),"st2"===e.form.startlimit&&"32"===e.form.p24?n("panel-competition-form-box",{staticClass:"panel-form"},[n("ValidationObserver",{ref:"putOrganizerFormObserver",scopedSlots:e._u([{key:"default",fn:function({handleSubmit:t}){return[n("h4",[e._v("Podaj numer aktualnie działającego konta Dotpay")]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("form",{class:{"is-waiting":e.isWaiting},on:{submit:function(a){return a.preventDefault(),t(e.putOrganizerSubmit)}}},[n("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"dotpayput.dotpayId",rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[n("panel-input-text",{attrs:{label:"Numer ID klienta Dotpay",error:t.dotpayId},on:{"update:error":function(a){return e.$set(t,"dotpayId",a)}},model:{value:e.dotpayput.dotpayId,callback:function(t){e.$set(e.dotpayput,"dotpayId",t)},expression:"dotpayput.dotpayId"}})]}}],null,!0)})],1)]),n("div",{staticClass:"col-12 col-md-6"},[n("p",{staticClass:"field-helper mal32"},[e._v("Konto Dotpay działa do 30.09.2024. Warto założyć konto P24 wcześniej a nadal używać Dotpay aż do zakończenia współpracy.")])])])]}}],null,!1,2826940220)})],1):e._e(),"subjectPayment"===e.form.startlimit?n("div",{staticClass:"col-lg-12 mat16 mab64"},[n("div",{staticClass:"row justify-content-end"},[n("div",{staticClass:"col-12 col-lg-4"},[n("base-button",{attrs:{btn1:"",short:""},on:{click:e.orderSubjectPaymentsSubmit}},[e._v("Zapisz")])],1)])]):["st1"===e.form.startlimit?n("div",{staticClass:"col-lg-12 mat16 mab64"},[n("div",{staticClass:"row justify-content-end"},[n("div",{staticClass:"col-12 col-lg-4"},[n("base-button",{attrs:{btn1:"",short:""},on:{click:e.orderCollectionOfFeesSubmit}},[e._v("Zapisz")])],1)])]):e._e(),"st2"===e.form.startlimit&&"12"===e.form.p24?n("div",{staticClass:"col-lg-12 mat16 mab64"},[n("div",{staticClass:"row justify-content-end"},[n("div",{staticClass:"col-12 col-lg-4"},[n("base-button",{attrs:{btn1:"",short:""},on:{click:e.putOrganizerSubmit}},[e._v("Zapisz")])],1)])]):e._e(),"st2"===e.form.startlimit&&"22"===e.form.p24?n("div",{staticClass:"col-lg-12 mat16 mab64"},[n("div",{staticClass:"row justify-content-end"},[n("div",{staticClass:"col-12 col-lg-4"},[n("base-button",{attrs:{btn1:"",short:""},on:{click:e.newMerchantSubmit}}
1,[e._v("Zapisz")])],1)])]):e._e(),"st2"===e.form.startlimit&&"32"===e.form.p24?n("div",{staticClass:"col-lg-12 mat16 mab64"},[n("div",{staticClass:"row justify-content-end"},[n("div",{staticClass:"col-12 col-lg-4"},[n("base-button",{attrs:{btn1:"",short:""},on:{click:e.putOrganizerSubmit}},[e._v("Zapisz")])],1)])]):e._e()]]]:e._e()],2)},PC=[];Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"})),Object(Pc["c"])("min",Ec["c"]),Object(Pc["c"])("max",Ec["b"]),Object(Pc["c"])("email",Ec["a"]);var EC={name:"PanelAccountSettingsPayments",props:{id:{type:Number,default:null}},components:{PanelInfoBox:ub,PanelCompetitionFormBox:kh,PanelInputText:jh,PanelInputBaseRadio:Kh["default"],PanelInputCheckbox:tb,PanelInputSelect:$_,ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},data(){return{submitSuccess:!1,afterSubmitInfo:!1,afterSubmitResponse:null,isWaiting:!1,form:{p24:"12",startlimit:"st1"},collect:{bankAccount:null,file:[]},p24form:{country:"PL",contactCountry:"PL"},p24put:{p24Id:null,p24On:!0},dotpayput:{dotpayId:null,dotpayOn:!0},operator:null,organizer:null,choosenPayAgreement:null,payAgreements:null,errors:{},p24BusinessType:[{namePl:"Osoba fizyczna",value:1},{namePl:"Jednoosobowa działalność gospodarcza(JDG)",value:2},{namePl:"Spółka cywilna",value:3},{namePl:"Spółka jawna",value:4},{namePl:"Spółka komandytowa",value:5},{namePl:"Spółka komandytowo-akcyjna",value:6},{namePl:"Spółka akcyjna",value:7},{namePl:"Spółka z ograniczoną odpowiedzialnością",value:8},{namePl:"Stowarzyszenie, fundacja, organizacja pożytku publicznego",value:9},{namePl:"Spółdzielnia",value:10}]}},watch:{submitSuccess:t=>{t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","say"])),{},{organizerId(){return this.id||this.user.organizer},operatorId(){return this.user.operator},operatorPaymentsOn(){var t;return(null===(t=this.operator)||void 0===t?void 0:t.p24On)||!1}}),async created(){this.operatorId&&await this.getOoperator(this.operatorId),this.getOrganizer()},methods:{async getOoperator(t){try{const e=await Pt["a"].get("/panel/operators/"+t);this.operator=e}catch(e){return void(this.errors=e)}},async getOrganizer(){try{const t=await Pt["a"].get("/panel/organizers/"+this.organizerId);this.organizer=t,this.organizer.p24On&&(this.organizer.payAgreements?this.form.startlimit="st1":(this.form.startlimit="st2",this.form.p24="12")),this.organizer.dotpayOn&&(this.form.startlimit="st2",this.form.p24="32"),this.operatorPaymentsOn&&this.organizer.subjectPayment?this.form.startlimit="subjectPayment":this.organizer.subjectPayment&&this.getOoperator(this.organizer.operator),this.p24put.p24Id=this.organizer.p24Id,this.dotpayput.dotpayId=this.organizer.dotpayId,this.collect.bankAccount=this.organizer.bankAccount}catch(t){return void(this.errors=t)}},async getPayAgreement(){try{const t=await Pt["a"].get(`/competitions?organizer=${this.organizerId}&panel=1&page=1`),e=[];for(const a of Object.values(t.competitions))e.push({text:a.name,value:a.id,id:a.id});this.payAgreements=e}catch(t){return void(this.errors=t)}},async orderCollectionOfFeesSubmit(){this.$refs.orderCollectionOfFeesFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.orderCollectionOfFeesFormObserver.fields))if(this.$refs.orderCollectionOfFeesFormObserver.fields[e].invalid){const t=this.$refs.orderCollectionOfFeesFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.orderCollectionOfFeesFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.orderCollectionOfFees()})},async putOrganizerSubmit(){this.$refs.putOrganizerFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.putOrganizerFormObserver.fields))if(this.$refs.putOrganizerFormObserver.fields[e].invalid){const t=this.$refs.putOrganizerFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.putOrganizerFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.putOrganizer()})},async newMerchantSubmit(){this.$refs.newMerchantFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.newMerchantFormObserver.fields))if(this.$refs.newMerchantFormObserver.fields[e].invalid){const t=this.$refs.newMerchantFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.newMerchantFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.newMerchant()})},async orderSubjectPaymentsSubmit(){this.isWaiting=!0;const t=Pt["a"].put("/panel/organizers/"+this.organizerId,{subjectPayment:!0});await Promise.all([t]),this.submitSuccess=!0},async orderCollectionOfFees(){this.isWaiting=!0;const t=Pt["a"].put("/panel/organizers/"+this.organizerId,{bankAccount:this.collect.bankAccount,dotpayOn:!1,p24On:!1});try{await Promise.all([t]),this.organizer.bankAccount=this.collect.bankAccount,this.$refs.orderCollectionOfFeesFormObserver.reset(),this.submitSuccess=!0}catch(e){return void(this.errors=e)}finally{this.isWaiting=!1}},async putOrganizer(){this.isWaiting=!0;const t=Object(v["a"])({},this.p24put);"st2"===this.form.startlimit&&"32"===this.form.p24&&(delete t["p24Id"],delete t["p24On"],t["dotpayId"]=Number(this.dotpayput.dotpayId),t["dotpayOn"]=this.dotpayput.dotpayOn);try{await Pt["a"].put("/panel/organizers/"+this.organizerId,t),this.submitSuccess=!0}catch(e){return void(this.errors=e)}finally{this.isWaiting=!1}},async newMerchant(){this.isWaiting=!0;const t=Object(v["a"])(Object(v["a"])({},this.p24form),{},{businessType:this.p24form.business_type.value,partnerUuid:this.organizerId});delete t.business_type;try{const e=await Pt["a"].post("/p24/create_merchant",t);e&&200===e.code||e&&201===e.code?(this.afterSubmitInfo=!0,this.afterSubmitResponse=e):e&&e.code}catch(e){return void(this.errors=e)}finally{this.isWaiting=!1}}}},TC=EC,NC=(a("18ef"),Object(U["a"])(TC,IC,PC,!1,null,"08126de2",null)),RC=NC.exports,LC=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mat40"},[t.submitSuccess?e("PanelInfoBox",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Dane zostały poprawnie zapisane")])])]):t._e(),t.afterSubmitInfo?[e("PanelInfoBox",[e("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"icon/interfaces/info-circle"}},[e("path",{attrs:{id:"Shape","fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24ZM29 32H26V21C26 20.4477 25.5523 20 25 20H21C20.4477 20 20 20.4477 20 21C20 21.5523 20.4477 22 21 22H24V32H21C20.4477 32 20 32.4477 20 33C20 33.5523 20.4477 34 21 34H29C29.5523 34 30 33.5523 30 33C30 32.4477 29.5523 32 29 32ZM24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM26 15C26 14.4477 25.5523 14 25 14H23C22.4477 14 22 14.4477 22 15V17C22 17.5523 22.4477 18 23 18H25C25.5523 18 26 17.5523 26 17V15Z",fill:"#455A64"}})])]),e("b",[t._v("Aby skończyc rejestracje przejdź do serwisu Przelewy 24: "),e("a",{staticStyle:{"font-weight":"bold","text-decoration":"underline"},attrs:{href:t.afterSubmitResponse.data.link,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.afterSubmitResponse.data.link))])])])]:t.operator&&Object.keys(t.operator).length>0?[e("panel-competition-form-box",{staticClass:"panel-form"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("h2",[t._v("Pobieranie płatności online od uczestników")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("panel-input-base-radio",{attrs:{name:"startlimit",option:{value:"subjectPayment",title:"Nie zbieram płatności"}},model:{value:t.form.startlimit,callback:function(e){t.$set(t.form,"startlimit",e)},expression:"form.startlimit"}}),e("div",{staticClass:"field-optional"})],1),e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"field-helper mal32"},[t._v("Organizatorzy będą zbierać płatności we własnym imieniu lub zlecą to Dostartu")
1])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("panel-input-base-radio",{attrs:{name:"startlimit",option:{value:"st2",title:"Zbieram płatności organizatorom"}},model:{value:t.form.startlimit,callback:function(e){t.$set(t.form,"startlimit",e)},expression:"form.startlimit"}}),e("div",{staticClass:"field-optional"})],1),e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"field-helper mal32"},[t._v("Będziesz pobierać opłaty online w imieniu organizatorów. Możesz użyć istniejącego konta w "),e("b",[t._v("Przelewy 24")]),t._v(" lub założyć nowe konto w kolejnym kroku.")])])])]),e("panel-competition-form-box",{directives:[{name:"show",rawName:"v-show",value:"st2"===t.form.startlimit,expression:"form.startlimit === 'st2'"}],staticClass:"panel-form"},[e("h4",[t._v("Konto "),e("b",[t._v("Przelewy 24")])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("panel-input-base-radio",{attrs:{name:"form.p24",option:{value:"12",title:"Posiadam konto w Przelewy24"}},model:{value:t.form.p24,callback:function(e){t.$set(t.form,"p24",e)},expression:"form.p24"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("panel-input-base-radio",{attrs:{name:"form.p24",option:{value:"22",title:"Chcę założyć konto w Przelewy24"}},model:{value:t.form.p24,callback:function(e){t.$set(t.form,"p24",e)},expression:"form.p24"}})],1)])]),"st2"===t.form.startlimit&&"12"===t.form.p24?e("panel-competition-form-box",{staticClass:"panel-form"},[e("ValidationObserver",{ref:"putOperatorFormObserver",scopedSlots:t._u([{key:"default",fn:function({handleSubmit:a}){return[e("h4",[t._v("Moje konto przelewy24")]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("form",{class:{"is-waiting":t.isWaiting},on:{submit:function(e){return e.preventDefault(),a(t.putOperatorSubmit)}}},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24put.p24Id",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Numer ID klienta Przelewy24",error:a.p24Id},on:{"update:error":function(e){return t.$set(a,"p24Id",e)}},model:{value:t.p24put.p24Id,callback:function(e){t.$set(t.p24put,"p24Id",e)},expression:"p24put.p24Id"}})]}}],null,!0)})],1)]),e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"field-helper mal32"},[t._v("Numer ID klienta znajdziesz w ustawieniach panelu systemu Przelewy 24, w sekcji Konfiguracja urlc.")])])])]}}],null,!1,4141215390)})],1):t._e(),t.form.startlimit&&"st2"===t.form.startlimit&&t.form.p24&&"22"===t.form.p24?e("ValidationObserver",{ref:"newMerchantFormObserver",scopedSlots:t._u([{key:"default",fn:function({handleSubmit:a}){return[e("form",{class:{"is-waiting":t.isWaiting},on:{submit:function(e){return e.preventDefault(),a(t.newMerchantSubmit)}}},[e("panel-competition-form-box",{staticClass:"panel-form mat16"},[e("h2",[t._v("Rejestracja konta Przelewy24")]),e("div",{staticClass:"row"},[e("div",{staticClass:"panel-form col-12 col-md-6"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.business_type",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-select",{attrs:{selectLabel:"Rodzaj działalności",options:t.p24BusinessType,"hide-selected":!1,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.business_type,callback:function(e){t.$set(t.p24form,"business_type",e)},expression:"p24form.business_type"}})]}}],null,!0)})],1)]),t.p24form.business_type&&1===t.p24form.business_type.value?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.pesel",rules:{required:!(!t.p24form.business_type||1!==t.p24form.business_type.value)}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Pesel",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.pesel,callback:function(e){t.$set(t.p24form,"pesel",e)}
1,expression:"p24form.pesel"}})]}}],null,!0)})],1)]):t._e(),t.p24form.business_type&&t.p24form.business_type.value>3?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.krs",rules:{required:!!(t.p24form.business_type&&t.p24form.business_type.value>3),min:10,max:10}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{type:"number",label:"KRS",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.krs,callback:function(e){t.$set(t.p24form,"krs",e)},expression:"p24form.krs"}})]}}],null,!0)})],1)]):t._e(),t.p24form.business_type&&1!==t.p24form.business_type.value?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.nip",rules:{required:!(!t.p24form.business_type||1===t.p24form.business_type.value)}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{staticClass:"mab8",attrs:{type:"number",label:"NIP",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.nip,callback:function(e){t.$set(t.p24form,"nip",e)},expression:"p24form.nip"}})]}}],null,!0)}),e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.regon",rules:{required:!(!t.p24form.business_type||1===t.p24form.business_type.value),min:9,max:14}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{type:"number",label:"Regon",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.regon,callback:function(e){t.$set(t.p24form,"regon",e)},expression:"p24form.regon"}})]}}],null,!0)})],1)]):t._e(),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Nazwa firmy / organizacji",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.name,callback:function(e){t.$set(t.p24form,"name",e)},expression:"p24form.name"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.email",rules:"required|email"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"E-mail",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.email,callback:function(e){t.$set(t.p24form,"email",e)},expression:"p24form.email"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.phoneNumber",rules:"required|min:9|max:9"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{type:"number",label:"Telefon",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.phoneNumber,callback:function(e){t.$set(t.p24form,"phoneNumber",e)},expression:"p24form.phoneNumber"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.bankAccount",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{type:"number",label:"Numer konta",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.bankAccount,callback:function(e){t.$set(t.p24form,"bankAccount",e)},expression:"p24form.bankAccount"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.street",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Ulica",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.street,callback:function(e){t.$set(t.p24form,"street",e)},expression:"p24form.street"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.postCode",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Kod pocztowy",error:a[0]}
1,on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.postCode,callback:function(e){t.$set(t.p24form,"postCode",e)},expression:"p24form.postCode"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.city",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Miejscowość",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.city,callback:function(e){t.$set(t.p24form,"city",e)},expression:"p24form.city"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row",staticStyle:{display:"none"}},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"p24form.country",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Kraj",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.p24form.country,callback:function(e){t.$set(t.p24form,"country",e)},expression:"p24form.country"}})]}}],null,!0)})],1)])]),e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"field-helper mal32"},[t._v("Poniższe dane wymagane są wyłącznie do zawarcia umowy z operatorem płatności "),e("b",[t._v("Przelewy24")]),t._v(".")]),e("p",{staticClass:"field-helper mal32"},[t._v("Dane zostaną bezpośrednio przekazane firmie "),e("b",[t._v("Przelewy24")]),t._v(" i nie będą zapisane w systemie DOSTARTU.")]),e("p",{staticClass:"field-helper mal32"},[t._v("Prosimy o podanie danych zgodnych z dokumentami rejestracyjnymi Twojej firmy.")])])])]),e("panel-competition-form-box",{staticClass:"panel-form"},[e("h4",[t._v("Osoba reprezentująca firmę / organizację")]),e("div",{staticClass:"row"},[e("div",{staticClass:"panel-form col-12 col-md-6"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"Imię i nazwisko",error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactPersonName,callback:function(e){t.$set(t.p24form,"contactPersonName",e)},expression:"p24form.contactPersonName"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"E-mail",error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactPersonEmail,callback:function(e){t.$set(t.p24form,"contactPersonEmail",e)},expression:"p24form.contactPersonEmail"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"Telefon",error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactPersonPhoneNumber,callback:function(e){t.$set(t.p24form,"contactPersonPhoneNumber",e)},expression:"p24form.contactPersonPhoneNumber"}})],1)]),e("div",{staticClass:"row",staticStyle:{display:"none"}},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"Kraj",error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactCountry,callback:function(e){t.$set(t.p24form,"contactCountry",e)},expression:"p24form.contactCountry"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"Miasto",error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactCity,callback:function(e){t.$set(t.p24form,"contactCity",e)},expression:"p24form.contactCity"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"Kod pocztowy",error:t.errors.name},on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactPostCode,callback:function(e){t.$set(t.p24form,"contactPostCode",e)},expression:"p24form.contactPostCode"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-input-text",{attrs:{label:"Ulica",error:t.errors.name}
1,on:{"update:error":function(e){return t.$set(t.errors,"name",e)}},model:{value:t.p24form.contactStreet,callback:function(e){t.$set(t.p24form,"contactStreet",e)},expression:"p24form.contactStreet"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"input_ids_add_1",rules:{required:{allowFalse:!1}}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-checkbox",{attrs:{"checkbox-value":{value:1,text:"Akceptuje Regulamin korzystania z usług Przelewy24 na platformie DOSTARTU"},name:"input_ids_add_1",variant:"white",value:0,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.input_ids_add_1,callback:function(e){t.$set(t.form,"input_ids_add_1",e)},expression:"form.input_ids_add_1"}},[t._v(" Akceptuje Regulamin korzystania z usług Przelewy24 na platformie DOSTARTU ")])]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"input_ids_add_2",rules:{required:{allowFalse:!1}}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-checkbox",{attrs:{"checkbox-value":{value:2,text:"Jestem uprawniony do reprezentowania powyższego podmiotu"},name:"input_ids_add_2",variant:"white",error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.input_ids_add_2,callback:function(e){t.$set(t.form,"input_ids_add_2",e)},expression:"form.input_ids_add_2"}},[t._v(" Jestem uprawniony do reprezentowania powyższego podmiotu ")])]}}],null,!0)})],1)])])])])],1)]}}],null,!1,1823571896)}):t._e(),"subjectPayment"===t.form.startlimit?e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:t.orderNoCollectionOfFeesSubmit}},[t._v("Zapisz")])],1)])]):t._e(),"st2"===t.form.startlimit&&"12"===t.form.p24?e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:t.putOperatorSubmit}},[t._v("Zapisz")])],1)])]):t._e(),"st2"===t.form.startlimit&&"22"===t.form.p24?e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",short:""},on:{click:t.newMerchantSubmit}},[t._v("Zapisz")])],1)])]):t._e()]:t._e()],2)},MC=[];Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"})),Object(Pc["c"])("min",Ec["c"]),Object(Pc["c"])("max",Ec["b"]),Object(Pc["c"])("email",Ec["a"]);var DC={name:"PanelAccountSettingsOperatorPayments",props:{id:{type:Number,default:null}},data(){return{submitSuccess:!1,afterSubmitInfo:!1,afterSubmitResponse:null,isWaiting:!1,form:{p24:"12",startlimit:"subjectPayment"},collect:{bankAccount:null,file:[]},p24form:{country:"PL",contactCountry:"PL"},p24put:{p24Id:null,p24On:!0},dotpayput:{dotpayId:null,dotpayOn:!0},operator:null,errors:{},p24BusinessType:[{namePl:"Osoba fizyczna",value:1},{namePl:"Jednoosobowa działalność gospodarcza(JDG)",value:2},{namePl:"Spółka cywilna",value:3},{namePl:"Spółka jawna",value:4},{namePl:"Spółka komandytowa",value:5},{namePl:"Spółka komandytowo-akcyjna",value:6},{namePl:"Spółka akcyjna",value:7},{namePl:"Spółka z ograniczoną odpowiedzialnością",value:8},{namePl:"Stowarzyszenie, fundacja, organizacja pożytku publicznego",value:9},{namePl:"Spółdzielnia",value:10}]}},components:{PanelInfoBox:ub,PanelCompetitionFormBox:kh,PanelInputText:jh,PanelInputBaseRadio:Kh["default"],PanelInputCheckbox:tb,PanelInputSelect:$_,ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},watch:{submitSuccess:t=>{t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user"])),{},{operatorId(){return this.organizerId?null:this.user.operator},isModerator(){return this.user.roles.includes("ROLE_ADMIN")||this.user.roles.includes("ROLE_OPERATOR")}}),created(){this.getOoperator()},methods:{async getOoperator(){try{const t=await Pt["a"].get("/panel/operators/"+this.operatorId);this.operator=t,this.operator.p24On&&(this.operator.payAgreements?this.form.startlimit="st1":(this.form.startlimit="st2",this.form.p24="12")),this.operator.dotpayOn&&(this.form.startlimit="st2",this.form.p24="32"),this.p24put.p24Id=this.operator.p24Id,this.dotpayput.dotpayId=this.operator.dotpayId,this.collect.bankAccount=this.operator.bankAccount}catch(t){return void(this.errors=t)}},async putOperatorSubmit(){this.$refs.putOperatorFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.putOperatorFormObserver.fields))if(this.$refs.putOperatorFormObserver.fields[e].invalid){const t=this.$refs.putOperatorFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.putOperatorFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.putOperator()})},async newMerchantSubmit(){this.$refs.newMerchantFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.newMerchantFormObserver.fields))if(this.$refs.newMerchantFormObserver.fields[e].invalid){const t=this.$refs.newMerchantFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.newMerchantFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}this.newMerchant()})},async orderNoCollectionOfFeesSubmit(){this.isWaiting=!0;const t=Pt["a"].put("/panel/operators/"+this.operatorId,{p24On:!1});await Promise.all([t]),this.submitSuccess=!0},async putOperator(){this.isWaiting=!0;const t=Object(v["a"])({},this.p24put);"st2"===this.form.startlimit&&"32"===this.form.p24&&(delete t["p24Id"],delete t["p24On"],t["dotpayId"]=Number(this.dotpayput.dotpayId),t["dotpayOn"]=this.dotpayput.dotpayOn);try{await Pt["a"].put("/panel/operators/"+this.operatorId,t),this.submitSuccess=!0}catch(e){return void(this.errors=e)}finally{this.isWaiting=!1}},async newMerchant(){this.isWaiting=!0;const t=Object(v["a"])(Object(v["a"])({},this.p24form),{},{businessType:this.p24form.business_type.value,partnerUuid:this.operatorId});delete t.business_type;try{const e=await Pt["a"].post("/p24/create_merchant",t);e&&200===e.code||e&&201===e.code?(this.afterSubmitInfo=!0,this.afterSubmitResponse=e):e&&e.code}catch(e){return void(this.errors=e)}finally{this.isWaiting=!1}}}},$C=DC,UC=(a("e5be"),Object(U["a"])($C,LC,MC,!1,null,"71edd4a9",null)),BC=UC.exports,FC=function(){var t=this,e=t._self._c;return t.form&&Object.keys(t.form).length>0?e("div",{staticClass:"mat40"},[t.submitSuccess?e("PanelInfoBox",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Dane zostały poprawnie zapisane")])])]):t._e(),e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Konfiguracja własnej domeny")])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("Wybierz protokół")]),e("multiselect",{attrs:{options:t.protocols,searchable:!1,"allow-empty":!1,"close-on-select":!0,"show-labels":!1,placeholder:"Wybierz protokół"},model:{value:t.form.protocol,callback:function(e){t.$set(t.form,"protocol",e)},expression:"form.protocol"}})],1),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Dodaj własną domenę dla wykazu swoich zawodów. Po dodaniu domeny do ustawień, koniecznie zgłoś tan fakt do naszego działu technicznego pod adres [email protected].")])])])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"form-input__label"},[t._v("Wpisz domenę")]),e("base-input-text",{model:{value:t.form.domain,callback:function(e){t.$set(t.form,"domain",e)},expression:"form.domain"}})],1)])]),e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Konfiguracja skrzynki pocztowej")])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Host SMTP (np. mail.dostartu.pl)")]),e("base-input-text",{model:{value:t.form.host,callback:function(e){t.$set(t.form,"host",e)},expression:"form.host"}})],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Port SMTP (np. 587)")]),e("base-input-text",{model:{value:t.form.port,callback:function(e){t.$set(t.form,"port",e)},expression:"form.port"}})],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa użytkownika (np. [email protected])")]),e("base-input-text",{model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}})],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Hasło użytkownika")]),e("base-input-text",{attrs:{type:"password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Adres email (np. [email protected])")]),e("base-input-text",{model:{value:t.form.fromemail,callback:function(e){t.$set(t.form,"fromemail",e)},expression:"form.fromemail"}})],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Nazwa wyświetlana (np. DO:ST:AR:TU - zawody biegowe)")]),e("base-input-text",{model:{value:t.form.fromname,callback:function(e){t.$set(t.form,"fromname",e)},expression:"form.fromname"}}
1)],1)]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Ustawienia zaawansowane:")]),e("panel-input-checkbox",{staticClass:"mab8",attrs:{"checkbox-value":!0,name:"input_ids_add_1",variant:"white",value:!1},model:{value:t.form.keepalive,callback:function(e){t.$set(t.form,"keepalive",e)},expression:"form.keepalive"}},[t._v(" Włącz połączenie stałe (keepalive) ")]),e("panel-input-checkbox",{staticClass:"mab8",attrs:{"checkbox-value":!0,name:"input_ids_add_1",variant:"white",value:!1},model:{value:t.form.secure,callback:function(e){t.$set(t.form,"secure",e)},expression:"form.secure"}},[t._v(" Użyj połączenia SSL/TLS (secure) (zalecane) ")]),e("panel-input-checkbox",{staticClass:"mab8",attrs:{"checkbox-value":!0,name:"input_ids_add_1",variant:"white",value:!1},model:{value:t.form.auth,callback:function(e){t.$set(t.form,"auth",e)},expression:"form.auth"}},[t._v(" Włącz autoryzację SMTP (auth) (zalecane) ")])],1)])]),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Ustaw swoje konto e-mail do komunikacji z uczestnikami. Wszystkie dane potrzebne do wypełnienia formularza znajdziesz w panelu konfiguracji skrzynki e-mail u swojego usługodawcy. Dzięki tym zabiegom, w prosty sposób dostosujesz system do własnych potrzeb.")]),e("br"),e("b",{staticClass:"form-input__helper"},[t._v("UWAGA")]),e("br"),e("br"),e("p",{staticClass:"form-input__helper"},[t._v(" Należy zwrócić szczególną uwagę na poprawność ustawionej konfiguracji konta pocztowego. W przypadku błędnej konfiguracji, zawodnicy nie otrzymają powiadomień z istotnymi informacjami (rejestracja, płatności, wyniki)")])])])])]),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row order-change"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{staticStyle:{color:"#B0BEC5","border-color":"#B0BEC5"},attrs:{btn4:""},on:{click:function(e){t.showPopupForDefault=!t.showPopupForDefault}}},[t._v("Przywróć do domyślnych ustawień")])],1),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{disabled:t.loading,btn1:"",short:""},on:{click:t.saveForm}},[t._v("Zapisz")])],1)])]),e("panel-competition-form-box",{staticClass:"panel-form mat40 mab24",staticStyle:{display:"none"}},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Sprawdzenie konfiguracji konta pocztowego")])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("base-button",{attrs:{btn1:"",short:""}},[t._v("Sprawdź połączenie SMTP")])],1),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Aktualnie wiadomości e-mail wysyłane są ze skrzynki operatora z adresu "),e("b",[t._v("[email protected]")]),t._v(".")])])])])]),e("div",{staticClass:"row",staticStyle:{"margin-bottom":"48px"}}),t.showPopupForDefault?e("base-popup",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Przywróć do domyślnych ustawień ")]},proxy:!0},{key:"subtitle",fn:function(){return[e("b",[t._v("Czy na pewno, chcesz przywrócić ustawienia domyślne?")])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mat16"},[t._v(" Ustawienia własnej domeny i skrzynki pocztowej zostaną "),e("b",[t._v("usunięte")]),t._v(". ")])]},proxy:!0},{key:"buttons",fn:function(){return[e("base-button",{staticClass:"mar15",attrs:{btn2:""},on:{click:function(e){t.showPopupForDefault=!t.showPopupForDefault}}},[t._v(" anuluj ")]),e("base-button",{staticClass:"mal15",attrs:{btn1:""},on:{click:function(e){t.showPopupForDefault=!t.showPopupForDefault,t.defaultEmailDomain()}}},[t._v(" Przywróć ")])]},proxy:!0}],null,!1,2824619973)}):t._e()],1):t._e()},qC=[],HC={name:"PanelAccountSettingsWeb",props:{id:{type:Number,default:null}},components:{PanelInfoBox:ub,PanelCompetitionFormBox:kh,PanelInputCheckbox:tb,Multiselect:R_.a},data(){return{submitSuccess:!1,loading:!1,role:null,form:{},protocols:["http://","https://"],showPopupForDefault:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user"])),{},{operatorId(){return this.organizerId?null:this.user.operator},organizerId(){var t;return(null===(t=this.$route.params)||void 0===t?void 0:t.id)||this.user.organizer}}),created(){this.init()},watch:{submitSuccess:t=>{t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})},organizerId(){this.init()}},methods:{init(){this.organizerId?this.getRoleData(this.organizerId,"organizers"):this.operatorId&&this.getRoleData(this.operatorId,"operators")},async getRoleData(t,e){try{const a=await Jl.a.get(`/panel/${e}/${t}/emailDomain`);this.role=JSON.parse(JSON.stringify(a)),this.form=Object(v["a"])(Object(v["a"])({},a),{},{auth:null!==a.auth&&a.auth,keepalive:null!==a.keepalive&&a.keepalive,secure:null!==a.secure&&a.secure})}catch(a){return void(this.errors=a)}},async saveForm(){let t,e;this.loading=!0,this.organizerId?(t="organizers",e=this.organizerId):(t="operators",e=this.operatorId);const a=[],n=`/panel/${t}/${e}/emailDomain`,i=Object(v["a"])({},this.form),s=Jl()({method:"post",url:n,data:i});
1a.push(s),await Promise.all(a).catch(t=>{this.errors=t}),this.loading=!1,this.submitSuccess=!0},async defaultEmailDomain(){let t,e;this.loading=!0,this.organizerId?(t="organizers",e=this.organizerId):(t="operators",e=this.operatorId);try{const a=await Jl.a.delete(`/panel/${t}/${e}/emailDomain`);this.role=JSON.parse(JSON.stringify(a)),this.form=Object(v["a"])(Object(v["a"])({},a),{},{auth:null!==a.auth&&a.auth,keepalive:null!==a.keepalive&&a.keepalive,secure:null!==a.secure&&a.secure}),this.submitSuccess=!0}catch(a){return void(this.errors=a)}finally{this.loading=!1}}}},GC=HC,WC=(a("d7f1"),Object(U["a"])(GC,FC,qC,!1,null,"5b17b602",null)),VC=WC.exports,KC=function(){var t=this,e=t._self._c;return t.form&&Object.keys(t.form).length>0?e("div",{staticClass:"mat40"},[t.submitSuccess?e("PanelInfoBox",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Dane zostały poprawnie zapisane")])])]):t._e(),e("panel-competition-form-box",{staticClass:"panel-form mab24"},[e("div",{staticClass:"col-12 mab24"},[e("h2",[t._v("Własny wygląd")])]),e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"row mab16",staticStyle:{width:"100%"}},[e("div",{staticClass:"col-12 mab16"},[e("p",{staticClass:"form-input__label"},[t._v("Ustaw kolor podstawowy")]),e("div",{staticClass:"form-input__colorpicker"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.colourDefault,expression:"form.colourDefault"}],attrs:{id:"coloris"},domProps:{value:t.form.colourDefault},on:{input:function(e){e.target.composing||t.$set(t.form,"colourDefault",e.target.value)}}})])]),e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label"},[t._v("Wybierz swoje logo (plik jpg lub png)")]),e("base-input-file",{attrs:{isMultiple:!1,converter:"base64",accept:"image/png, image/jpeg, image/jpg",hint:"Wybierz plik"},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}})],1),t.form.logoLink?e("div",{staticClass:"col-12 mat16"},[e("p",{staticClass:"form-input__label"},[t._v("Obecne logo")]),e("img",{staticClass:"mab16",attrs:{src:t.form.logoLink,alt:t.form.logoFilename}}),e("base-button",{attrs:{btn2:"",short:""},on:{click:t.removeLogo}},[t._v("Usuń plik")])],1):t._e()])]),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v("Dostosuj wygląd systemu do własnych upodobań. Ustaw kolor podstawowy oraz kolor rozszerzony i dodaj własne logo. Dzięki temu zintegrujesz wizualnie nasz system ze swoim kolorami firmowymi.")])])])])]),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:""},on:{click:t.saveForm}},[t._v("Zapisz")])],1)])])],1):t._e()},ZC=[],YC=a("470e"),QC={name:"PanelAccountSettingsCustom",props:{id:{type:Number,default:null}},components:{PanelInfoBox:ub,PanelCompetitionFormBox:kh},data(){return{loading:!1,role:null,form:{colourDefault:null},errors:null,files:[]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user"])),{},{operatorId(){return this.organizerId?null:this.user.operator},organizerId(){var t;return(null===(t=this.$route.params)||void 0===t?void 0:t.id)||this.user.organizer}}),created(){this.init()},watch:{submitSuccess:t=>{t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})}},methods:{init(){(this.organizerId||this.operatorId)&&this.getRoleData(this.organizerId||this.operatorId,this.organizerId?"organizers":"operators")},async getRoleData(t,e){try{const a=await Jl.a.get(`/panel/${e}/${t}/layout`);a&&(this.role=JSON.parse(JSON.stringify(a)),this.form=a),this.$nextTick(()=>{YC["a"].init(),Object(YC["a"])({el:"#coloris"})})}catch(a){return void(this.errors=a)}},async saveForm(){this.loading=!0;const t=[],e=Jl()({method:"post",url:"/panel/layout",data:{operator:this.operatorId,organizer:this.organizerId,colourDefault:this.form.colourDefault}});if(t.push(e),this.files&&this.files.length>
10){const e=this.organizerId?`/panel/organizers/${this.organizerId}/files/logo`:`/panel/operators/${this.operatorId}/files/logo`,a=Jl()({method:"post",url:e,data:this.files[0]});t.push(a)}await Promise.all(t).catch(t=>{this.errors=t}),this.files=[],this.loading=!1,this.submitSuccess=!0,this.init()},async removeLogo(){const t=this.organizerId?`/panel/organizers/${this.organizerId}/files/logo`:`/panel/operators/${this.operatorId}/files/logo`;await Jl()({method:"delete",url:t}),this.init()}}},XC=QC,JC=(a("5bd6"),a("0f4d"),a("8106"),Object(U["a"])(XC,KC,ZC,!1,null,"eb730ef4",null)),tw=JC.exports,ew=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container-layout"},[t.ready?[t.submitSuccess?e("panel-info-box",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Dane zostały poprawnie zapisane")])])]):t._e(),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("panel-competition-form-box",[e("div",{staticClass:"row w100 mat24"},[e("div",{staticClass:"col-12 col-lg-6"},[e("p",{staticClass:"form-input__label"},[t._v("Ustaw kolor podstawowy")]),e("div",{staticClass:"form-input__colorpicker"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.colourDefault,expression:"form.colourDefault"}],attrs:{id:"coloris"},domProps:{value:t.form.colourDefault},on:{input:function(e){e.target.composing||t.$set(t.form,"colourDefault",e.target.value)}}})])]),e("div",{staticClass:"col-12 col-lg-5"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v(" Dostosuj wygląd systemu do własnych upodobań. Ustaw kolor podstawowy oraz kolor rozszerzony i dodaj własne logo. Dzięki temu zintegrujesz wizualnie nasz system ze swoim kolorami firmowymi. ")])])])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"row w100 mat24"},[e("div",{staticClass:"col-12 col-lg-6"},[e("p",{staticClass:"form-input__label"},[t._v("Dodaj logo swojej imprezy (plik jpg lub png)")]),e("base-input-file",{staticClass:"mat8",attrs:{"is-multiple":!1,converter:"base64",accept:"image/png, image/jpeg, image/jpg",hint:"Wybierz plik"},model:{value:t.logo,callback:function(e){t.logo=e},expression:"logo"}}),t.form.logoLink?e("div",{staticClass:"mat16"},[e("p",{staticClass:"form-input__label"},[t._v("Obecne logo")]),e("img",{staticClass:"mab16 layout-preview",attrs:{src:t.form.logoLink,alt:t.form.logoFilename}}),e("base-button",{attrs:{btn2:"",short:"",loading:t.loadingLogo,disabled:t.loadingLogo||t.loadingPoster||t.loading},on:{click:t.removeLogo}},[t._v("Usuń plik")])],1):t._e()],1)])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"row w100 mat24"},[e("div",{staticClass:"col-12 col-lg-6"},[e("p",{staticClass:"form-input__label"},[t._v("Dodaj plakat swojej imprezy (plik jpg lub png)")]),e("base-input-file",{staticClass:"mat8",attrs:{"is-multiple":!1,converter:"base64",accept:"image/png, image/jpeg, image/jpg",hint:"Wybierz plik"},model:{value:t.poster,callback:function(e){t.poster=e},expression:"poster"}}),t.form.posterLink?e("div",{staticClass:"mat16"},[e("p",{staticClass:"form-input__label"},[t._v("Obecny plakat")]),e("img",{staticClass:"mab16 layout-preview",attrs:{src:t.form.posterLink,alt:"Plakat"}}),e("base-button",{attrs:{btn2:"",short:"",loading:t.loadingPoster,disabled:t.loadingPoster||t.loadingLogo||t.loading},on:{click:t.removePoster}},[t._v("Usuń plik")])],1):t._e()],1),e("div",{staticClass:"col-12 col-lg-5"},[e("div",{staticClass:"malr24"},[e("p",{staticClass:"form-input__helper"},[t._v(" Maksymalny rozmiar pliku: 2,5 MB (JPG lub PNG). Wymiary bez sztywnych ograniczeń — najlepiej sprawdzą się plakaty pionowe o proporcjach od 4:5 do 2:3 (szerokość : wysokość). ")])])])])]),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row justify-content-end"},[e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",loading:t.loading,disabled:t.loading||t.loadingLogo||t.loadingPoster},on:{click:t.save}},[t._v("Zapisz")])],1)])])],1)])]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},aw=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],nw={name:"PanelCompetitionSettingLayout",components:{PanelCompetitionFormBox:kh,PanelInfoBox:ub},props:{id:{type:Number,default:null}},data(){return{ready:!1,loading:!1,loadingLogo:!1,loadingPoster:!1,submitSuccess:!1,form:{colourDefault:null},errors:null,logo:[],poster:[]}},watch:{submitSuccess(t){t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})}},created(){this.init()}
1,methods:{async init(){try{const t=await Jl.a.get(`/panel/competitions/${this.id}/layout`);this.form=t||{colourDefault:null},this.ready=!0,this.$nextTick(()=>{YC["a"].init(),Object(YC["a"])({el:"#coloris"})})}catch(t){this.errors=t,this.form={colourDefault:null},this.ready=!0,this.$nextTick(()=>{YC["a"].init(),Object(YC["a"])({el:"#coloris"})})}},async save(){this.loading=!0,this.submitSuccess=!1;const t=[];t.push(Jl()({method:"post",url:"/panel/layout",data:{competition:this.id,colourDefault:this.form.colourDefault}})),this.logo&&this.logo.length>0&&t.push(Jl()({method:"post",url:`/panel/competitions/${this.id}/files/logo`,data:this.logo[0]})),this.poster&&this.poster.length>0&&t.push(Jl()({method:"post",url:`/panel/competitions/${this.id}/files/poster`,data:this.poster[0]})),await Promise.all(t).catch(t=>{this.errors=t}),this.logo=[],this.poster=[],this.loading=!1,this.submitSuccess=!0,await this.init()},async removeLogo(){this.loadingLogo=!0,this.submitSuccess=!1;try{await Jl()({method:"delete",url:`/panel/competitions/${this.id}/files/logo`}),await this.init(),this.submitSuccess=!0}catch(t){this.errors=t}finally{this.loadingLogo=!1}},async removePoster(){this.loadingPoster=!0,this.submitSuccess=!1;try{await Jl()({method:"delete",url:`/panel/competitions/${this.id}/files/poster`}),await this.init(),this.submitSuccess=!0}catch(t){this.errors=t}finally{this.loadingPoster=!1}}}},iw=nw,sw=(a("58d8"),a("5c21"),Object(U["a"])(iw,ew,aw,!1,null,"89c99352",null)),ow=sw.exports,rw=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-edit"},[t.ready?[t.submitSuccess?e("panel-info-box",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v("Dane zostały poprawnie zapisane")])])]):t._e(),e("panel-competition-register-form",{attrs:{inputs:t.inputs,anonymous:t.anonymous,classifications:t.classificationList,saving:t.saving},on:{"update:inputs":function(e){t.inputs=e},"update:anonymous":function(e){t.anonymous=e},add:t.addInput,remove:t.removeInput,copy:t.copyInput,"move-up":t.moveUp,"move-down":t.moveDown,save:t.save}})]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},lw=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],cw=function(){var t=this,e=t._self._c;return e("div",[e("panel-competition-form-box",{staticClass:"mab16"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"register-layout"},[e("div",{staticClass:"register-layout__main"},[e("label",{staticClass:"mab8"},[t._v("Możliwość rejestracji anonimowej")]),t._l(t.anonymousOptions,(function(a){return e("panel-input-base-radio",{key:a.value,attrs:{value:t.anonymous,name:"register-anonymous",option:a},on:{input:function(e){return t.$emit("update:anonymous",e)}}})}))],2),e("div",{staticClass:"register-layout__side"},[e("p",{staticClass:"register-layout__hint"},[t._v(" Uczestnicy mogą mieć możliwość ukrycia swoich danych na listach startowej oraz wyników. ")])])])])]),e("panel-competition-form-box",{staticClass:"mab16"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"register-layout"},[e("div",{staticClass:"register-layout__main"},[e("div",{staticClass:"form__headline mab8"},[t._v("Pola dodatkowe w formularzu rejestracyjnym")]),e("p",[t._v(" Jeśli chcesz pozyskać od uczestnika dane, które nie znajdują się w podstawowym formularzu rejestracyjnym, dodaj dodatkowe pytania, na które uczestnik odpowie podczas rejestracji. ")])]),e("div",{staticClass:"register-layout__side"},[e("p",{staticClass:"register-layout__hint"},[t._v(" Podstawowe dane rejestracyjne to: Imię i nazwisko, data urodzenia, płeć, miejscowość, kraj, adres email, telefon, klub. ")])])])])]),t._l(t.inputs,(function(a,n){return e("panel-competition-register-input-item",{key:a._key,attrs:{value:a,index:n,total:t.inputs.length,classifications:t.classifications,"type-options":t.typeOptions,"validation-options":t.validationOptions},on:{input:function(e){return t.onInputChange(n,e)},remove:function(e){return t.$emit("remove",n)},copy:function(e){return t.$emit("copy",n)},"move-up":function(e){return t.$emit("move-up",n)},"move-down":function(e){return t.$emit("move-down",n)}}})})),e("div",{staticClass:"register-layout__actions mat16 mab16"},[e("base-button",{attrs:{btn2:""},on:{click:function(e){return t.$emit("add")}}},[t._v("UTWÓRZ PYTANIE DODATKOWE")])],1),e("div",{staticClass:"register-layout__actions register-layout__actions--end mat16 mab64"},[e("base-button",{staticClass:"register-layout__save",attrs:{btn1:"",loading:t.saving,disabled:t.saving},on:{click:function(e){return t.$emit("save")}}},[t._v(" Zapisz ")])],1)],2)},dw=[],uw=function(){var t=this,e=t._self._c;return e("panel-competition-form-box",{staticClass:"mab8 register-input-item"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"register-item"},[e("div",{staticClass:"register-item__content"},[e("div",{staticClass:"register-item__top"},[e("div",{staticClass:"register-item__main"},[t.showsName?e("div",{staticClass:"mab16"},[e("base-input-text",{attrs:{value:t.value.fNamePl,hint:"Pytanie","without-error-message":"","is-short":""},on:{input:function(e){return t.patch({fNamePl:e})}}}
1)],1):t._e(),"fi"===t.value.fType?e("div",{staticClass:"mab24 register-item__preview"},[t._v("Krótka odpowiedź")]):"fj"===t.value.fType?e("div",{staticClass:"mab24"},[e("base-input-text",{attrs:{value:t.value.hint,hint:"Podpowiedź","without-error-message":"","is-short":""},on:{input:function(e){return t.patch({hint:e})}}})],1):"fl"===t.value.fType?e("div",{staticClass:"mab24 register-item__preview register-item__preview--tall"},[t._v(" Długa odpowiedź ")]):"fr"===t.value.fType?e("div",{staticClass:"mab24"},[t._l(t.value.options,(function(a,n){return e("div",{key:`radio-${t.value._key}-${n}`,staticClass:"register-item__option mab8"},[e("span",{staticClass:"register-item__option-mark"},[e("i",{staticClass:"far fa-circle"})]),e("base-input-text",{staticClass:"register-item__option-field",attrs:{value:a,hint:"Odpowiedź","without-error-message":"","is-short":""},on:{input:function(e){return t.updateOption(n,e)}}}),t.value.options.length>1?e("base-button",{attrs:{btn2:"",short:"",icon:"fas fa-trash"},on:{click:function(e){return t.removeOption(n)}}}):t._e()],1)})),e("base-button",{staticClass:"mat8",attrs:{btn2:"",short:""},on:{click:t.addOption}}
1,[t._v("Dodaj odpowiedź")])],2):"fs"===t.value.fType?e("div",{staticClass:"mab24"},[t._l(t.value.options,(function(a,n){return e("div",{key:`option-${t.value._key}-${n}`,staticClass:"register-item__option mab8"},[e("span",{staticClass:"register-item__option-mark"},[e("i",{staticClass:"fas fa-caret-down"})]),e("base-input-text",{staticClass:"register-item__option-field",attrs:{value:a,hint:"Odpowiedź","without-error-message":"","is-short":""},on:{input:function(e){return t.updateOption(n,e)}}}),t.value.options.length>1?e("base-button",{attrs:{btn2:"",short:"",icon:"fas fa-trash"},on:{click:function(e){return t.removeOption(n)}}}):t._e()],1)})),e("base-button",{staticClass:"mat8",attrs:{btn2:"",short:""},on:{click:t.addOption}},[t._v("Dodaj odpowiedź")])],2):"fc"===t.value.fType?e("div",{staticClass:"register-item__option mab24"},[e("span",{staticClass:"register-item__option-mark"},[e("input",{attrs:{type:"checkbox",disabled:""}})]),e("base-input-text",{staticClass:"register-item__option-field",attrs:{value:t.value.confirmation,hint:"Potwierdzenie","without-error-message":"","is-short":""},on:{input:function(e){return t.patch({confirmation:e})}}})],1):"fh"===t.value.fType?e("div",{staticClass:"mab24 register-item__preview"},[t._v("Godzina")]):"fd"===t.value.fType?e("div",{staticClass:"mab24 register-item__preview"},[t._v("Data")]):"fa"===t.value.fType?e("div",{staticClass:"mab24 register-item__preview"},[t._v(" Paczkomat Inpost ")]):t._e()]),e("div",{staticClass:"register-item__side"},[e("div",{staticClass:"mab16"},[e("div",{staticClass:"register-item__select"},[e("v-select",{attrs:{value:t.value.fType,options:t.typeOptions,reduce:t=>t.id,clearable:!1,searchable:!1,label:"text"},on:{input:t.onTypeChange},scopedSlots:t._u([{key:"option",fn:function(a){return[e("i",{staticClass:"register-item__type-icon",class:a.icon}),e("span",[t._v(t._s(a.text))])]}},{key:"selected-option",fn:function(a){return[e("i",{staticClass:"register-item__type-icon",class:a.icon}),e("span",[t._v(t._s(a.text))])]}}])})],1)]),t.showsValidation?e("div",{staticClass:"mab16"},[e("base-input-select",{attrs:{value:t.value.fValidation,options:t.validationOptions,reduce:t=>t.id,searchable:!1,clearable:!1,"is-panel":"","without-error-message":""},on:{input:function(e){return t.patch({fValidation:e})}}})],1):t._e()])]),e("div",{staticClass:"register-item__footer"},[e("div",{staticClass:"register-item__main register-item__main--actions"},[e("label",{staticClass:"register-item__required"},[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.value.fRequired},on:{change:function(e){return t.patch({fRequired:e.target.checked})}}}),t._v(" Wymagana odpowiedź ")]),e("base-button",{attrs:{btn2:"",short:"",icon:"fas fa-trash"},on:{click:function(e){return t.$emit("remove",t.index)}}},[t._v(" Usuń ")]),e("base-button",{attrs:{btn2:"",short:"",icon:"fas fa-clone"},on:{click:function(e){return t.$emit("copy",t.index)}}},[t._v(" Powiel ")])],1),e("div",{staticClass:"register-item__side"},[e("div",{staticClass:"register-item__classifications"},[e("multiselect",{attrs:{value:t.selectedClassifications,options:t.classifications,label:"namePl","track-by":"id",multiple:!0,searchable:!1,"close-on-select":!1,"show-labels":!1,"hide-selected":!1,placeholder:"Pytanie widoczne dla..."},on:{input:t.onClassificationsChange},scopedSlots:t._u([{key:"tag",fn:function({option:a}){return[e("span",{staticClass:"custom__tag"},[t._v(t._s(a.namePl)+", ")])]}}])},[e("template",{slot:"caret"},[t.selectedClassifications.length>0?e("span",{staticClass:"caret-count"},[t._v(" "+t._s(t.selectedClassifications.length)+" ")]):e("div",{staticClass:"multiselect__select"})])],2)],1)])])]),e("div",{staticClass:"register-item__reorder"},[e("button",{staticClass:"register-item__reorder-btn",attrs:{type:"button",disabled:0===t.index,title:"W górę"},on:{click:function(e){return t.$emit("move-up",t.index)}}},[e("i",{staticClass:"fas fa-angle-double-up"})]),e("button",{staticClass:"register-item__reorder-btn",attrs:{type:"button",disabled:t.index>=t.total-1,title:"W dół"},on:{click:function(e){return t.$emit("move-down",t.index)}}},[e("i",{staticClass:"fas fa-angle-double-down"})])])])])])},pw=[];
1const mw=[{id:"fi",text:"Krótka odpowiedź",icon:"fas fa-font"},{id:"fj",text:"Krótka odpowiedź z podpowiedzią",icon:"far fa-lightbulb"},{id:"fl",text:"Długa odpowiedź",icon:"fas fa-align-left"},{id:"fr",text:"Jednokrotny wybór",icon:"far fa-dot-circle"},{id:"fs",text:"Menu",icon:"fas fa-list"},{id:"fc",text:"Potwierdzenie",icon:"far fa-check-square"},{id:"fh",text:"Godzina",icon:"far fa-clock"},{id:"fd",text:"Data",icon:"far fa-calendar"},{id:"fa",text:"Paczkomat Inpost",icon:"fas fa-archive"}],fw=[{id:"",text:"Bez sprawdzania odpowiedzi"},{id:"phone",text:"Numer telefonu"},{id:"email",text:"Adres email"},{id:"number",text:"Tylko liczba"},{id:"max_length_10",text:"Max 10 znaków"},{id:"max_length_40",text:"Max 40 znaków"},{id:"max_length_100",text:"Max 100 znaków"}];let hw=0;function bw(){return hw+=1,`input-${Date.now()}-${hw}`}function _w(t){if(Array.isArray(t)){const e=t.map(t=>null==t?"":String(t));return e.length?e:["",""]}if(!t||"string"!==typeof t)return["",""];const e=t.replace(/^\|/,"").replace(/\|$/,"");if(!e)return["",""];const a=e.split("||");return a.length?a:["",""]}function vw(t=[]){return{_key:bw(),id:0,position:0,fType:"fi",fNamePl:"",fRequired:!1,fValidation:"",options:["",""],hint:"",confirmation:"",classificationIds:[...t]}}function gw(t,e=[]){const a=t.fType||t.f_type||"fi",n=null!=t.fDescriptionPl?t.fDescriptionPl:t.f_description_pl,i=t.classifications||[],s=i.length?i.map(t=>t.id):[...e];let o=["",""],r="",l="";return"fr"===a||"fs"===a?o=_w(n):"fj"===a?r=null==n?"":String(n):"fc"===a&&(l=null==n?"":String(n)),{_key:bw(),id:t.id||0,position:null!=t.position?t.position:0,fType:a,fNamePl:t.fNamePl||t.f_name_pl||"",fRequired:Boolean(null!=t.fRequired?t.fRequired:t.f_required),fValidation:null!=t.fValidation?t.fValidation:t.f_validation||"",options:o,hint:r,confirmation:l,classificationIds:s}}function yw(t,e){const{fType:a}=t;let n="";return"fr"===a||"fs"===a?n=(t.options||[]).map(t=>String(t||"").trim()).filter(Boolean):"fj"===a?n=t.hint||"":"fc"===a&&(n=t.confirmation||""),{id:t.id||0,position:e,fType:a,fNamePl:"fc"===a?"":t.fNamePl||"",fRequired:Boolean(t.fRequired),fValidation:("fi"===a||"fl"===a)&&t.fValidation||"",fDescriptionPl:n,classification:t.classificationIds||[]}}function Cw(t,e){if(t.length!==e.length)return!1;const a=[...t].sort((t,e)=>t-e),n=[...e].sort((t,e)=>t-e);return a.every((t,e)=>t===n[e])}var ww={name:"PanelCompetitionRegisterInputItem",components:{Multiselect:R_.a,VSelect:Ur.a,PanelCompetitionFormBox:kh},props:{value:{type:Object,required:!0},index:{type:Number,required:!0},total:{type:Number,required:!0},classifications:{type:Array,default:()=>[]},typeOptions:{type:Array,default:()=>mw},validationOptions:{type:Array,default:()=>fw}},computed:{showsName(){return"fc"!==this.value.fType},showsValidation(){return"fi"===this.value.fType||"fl"===this.value.fType},selectedClassifications(){const t=this.value.classificationIds||[];return this.classifications.filter(e=>t.includes(e.id))}},methods:{patch(t){this.$emit("input",Object(v["a"])(Object(v["a"])({},this.value),t))},onTypeChange(t){const e={fType:t};"fi"!==t&&"fl"!==t&&(e.fValidation=""),"fr"!==t&&"fs"!==t||(!this.value.options||this.value.options.length<2)&&(e.options=["",""]),"fj"===t&&null==this.value.hint&&(e.hint=""),"fc"===t&&null==this.value.confirmation&&(e.confirmation=""),this.patch(e)},onClassificationsChange(t){const e=Array.isArray(t)?t:[],a=e.map(t=>t.id);Cw(a,this.value.classificationIds||[])||this.patch({classificationIds:a})},updateOption(t,e){const a=[...this.value.options];a[t]=e,this.patch({options:a})},addOption(){this.patch({options:[...this.value.options||[],""]})},removeOption(t){const e=this.value.options.filter((e,a)=>a!==t);this.patch({options:e.length?e:[""]})}}},kw=ww,xw=(a("681c"),a("b2a4"),a("77a8"),Object(U["a"])(kw,uw,pw,!1,null,"8df10b14",null)),Ow=xw.exports,Aw={name:"PanelCompetitionRegisterForm",components:{PanelCompetitionFormBox:kh,PanelCompetitionRegisterInputItem:Ow,PanelInputBaseRadio:Kh["default"]},props:{inputs:{type:Array,required:!0},anonymous:{type:String,required:!0},classifications:{type:Array,default:()=>[]},saving:{type:Boolean,default:!1}}
1,data(){return{typeOptions:mw,validationOptions:fw,anonymousOptions:[{value:"yes",title:"Tak"},{value:"no",title:"Nie"}]}},methods:{onInputChange(t,e){const a=[...this.inputs];a[t]=e,this.$emit("update:inputs",a)}}},Sw=Aw,zw=(a("1ab1"),Object(U["a"])(Sw,cw,dw,!1,null,"37136ac9",null)),jw=zw.exports,Iw={name:"PanelCompetitionSettingRegister",components:{PanelInfoBox:ub,PanelCompetitionRegisterForm:jw},props:{competition:{type:Object,required:!0}},data(){return{ready:!1,saving:!1,submitSuccess:!1,inputs:[],anonymous:"no",classificationList:[]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["classifications","competitionsSettings"])),{},{competitionId(){return this.competition.id},competitionSetting(){return this.competitionsSettings[this.competitionId]||{}},defaultClassificationIds(){return this.classificationList.map(t=>t.id)}}),watch:{submitSuccess(t){t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})}},async created(){await this.init()},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["Lb"],g["sc"],g["uc"],g["qd"]])),{},{resolveAnonymousFlag(){var t,e,a,n;const i=this.competitionSetting,s=null!==(t=null!==(e=null!==(a=null!==(n=i.anonymous)&&void 0!==n?n:i.anonimous)&&void 0!==a?a:this.competition.anonymous)&&void 0!==e?e:this.competition.anonimous)&&void 0!==t&&t;return!0===s||1===s||"1"===s||"yes"===s?"yes":"no"},loadClassificationList(){const t=Number(this.competitionId),e=Object.values(this.classifications||{});this.classificationList=e.filter(e=>{const a=e.competition;return null!=a&&("object"===typeof a?Number(a.id)===t:Number(a)===t)})},async init({silent:t=!1}={}){t||(this.ready=!1);try{const[t]=await Promise.all([this.READ_PANEL_COMPETITION_PLAYERS_INPUTS(this.competitionId),this.READ_COMPETITION_CLASSIFICATIONS(this.competitionId)]);this.loadClassificationList();const e=Array.isArray(t)?t:[],a=[...e].sort((t,e)=>(t.position||0)-(e.position||0));this.inputs=a.map(t=>gw(t,this.defaultClassificationIds)),this.anonymous=this.resolveAnonymousFlag()}catch(e){this.loadClassificationList(),this.inputs=[],this.anonymous=this.resolveAnonymousFlag()}finally{this.ready=!0}},addInput(){this.inputs=[...this.inputs,vw(this.defaultClassificationIds)]},removeInput(t){this.inputs=this.inputs.filter((e,a)=>a!==t)},copyInput(t){const e=this.inputs[t];if(!e)return;const a=Object(v["a"])(Object(v["a"])({},e),{},{_key:bw(),id:0,options:[...e.options||[]],classificationIds:[...e.classificationIds||[]]}),n=[...this.inputs];n.splice(t+1,0,a),this.inputs=n},moveUp(t){if(t<=0)return;const e=[...this.inputs],a=e[t-1];e[t-1]=e[t],e[t]=a,this.inputs=e},moveDown(t){if(t>=this.inputs.length-1)return;const e=[...this.inputs],a=e[t+1];e[t+1]=e[t],e[t]=a,this.inputs=e},async save(){this.saving=!0,this.submitSuccess=!1;try{const t=this.inputs.map((t,e)=>yw(t,e));await Promise.all([this.UPDATE_PANEL_COMPETITION_INPUTS({id:this.competitionId,inputs:t}),Pt["a"].put(`panel/competitions/${this.competitionId}/settings`,{anonymous:"yes"===this.anonymous})]),await this.READ_PANEL_COMPETITION(this.competitionId),await this.init({silent:!0}),this.submitSuccess=!0}catch(t){}finally{this.saving=!1}}})},Pw=Iw,Ew=(a("c7be"),Object(U["a"])(Pw,rw,lw,!1,null,"62576980",null)),Tw=Ew.exports,Nw=function(){var t=this,e=t._self._c;return t.competition&&Object.keys(t.layout).length>0?e("div",{staticClass:"container"},[e("ValidationObserver",{ref:"registerFormObserver",scopedSlots:t._u([{key:"default",fn:function({handleSubmit:n}){return[e("form",{class:{"is-waiting":t.isWaiting},on:{submit:function(e){return e.preventDefault(),n(t.registerSubmit)}}},["playerData"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v(t._s(t.say.register_to_competition))])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"register-step-header"},[e("h4",[t._v("Dane uczestnika")])])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"section-wrap bg--gray"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.firstname",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.firstname,border:""}
1,on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.firstname,callback:function(e){t.$set(t.form.user,"firstname",e)},expression:"form.user.firstname"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.lastname",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.lastname,border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.lastname,callback:function(e){t.$set(t.form.user,"lastname",e)},expression:"form.user.lastname"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.email",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.email,border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.email,callback:function(e){t.$set(t.form.user,"email",e)},expression:"form.user.email"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"row p4"},[e("div",{staticClass:"col-4"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.phonePrefix",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-select",{staticClass:"no-border",attrs:{reduce:t=>t.id,clearable:!1,options:t.prefixes,error:a[0],label:t.say.prefix},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.phonePrefix,callback:function(e){t.$set(t.form.user,"phonePrefix",e)},expression:"form.user.phonePrefix"}})]}}],null,!0)})],1),e("div",{staticClass:"col-8"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.phone",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{label:t.say.phone,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.phone,callback:function(e){t.$set(t.form.user,"phone",e)},expression:"form.user.phone"}})]}}],null,!0)})],1)])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.gender",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-radio",{staticClass:"no-border",attrs:{label:t.say.gender,options:[{value:"M",title:"man"},{value:"K",title:"woman"}],error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.gender,callback:function(e){t.$set(t.form.user,"gender",e)},expression:"form.user.gender"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.birthDate",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-date",{staticClass:"no-border",attrs:{error:a[0],label:t.say.birthtime,initialView:"year",openDate:new Date("1983-01-01"),format:"yyyy.MM.dd"},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.birthDate,callback:function(e){t.$set(t.form.user,"birthDate",e)},expression:"form.user.birthDate"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.city",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{label:t.say.city,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.city,callback:function(e){t.$set(t.form.user,"city",e)},expression:"form.user.city"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.nationality",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-select",{staticClass:"no-border",attrs:{options:t.countries,clearable:!1,label:t.say.nationality,reduce:t=>t.id,error:a[0]}
1,on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.nationality,callback:function(e){t.$set(t.form.user,"nationality",e)},expression:"form.user.nationality"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.club"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{label:t.say.club,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.club,callback:function(e){t.$set(t.form.user,"club",e)},expression:"form.user.club"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"playerData.icePhone"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{label:t.say.phone_ice,error:a[0]},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.user.icePhone,callback:function(e){t.$set(t.form.user,"icePhone",e)},expression:"form.user.icePhone"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("base-input-checkbox",{attrs:{"checkbox-value":!1,name:"anonymous",wrap:"",label:"Ukrycie uczestnictwa"},model:{value:t.form.user.isAnonymous,callback:function(e){t.$set(t.form.user,"isAnonymous",e)},expression:"form.user.isAnonymous"}},[t._v("Uczestnictwo anonimowe")])],1),e("div",{staticClass:"col-12 col-md-6"},[e("p",{staticClass:"hint"},[t._v("Zaznacz, aby ukryć swoje dane w serwisie DOSTARTU. Uwaga - Twoje dane będą widoczne z podpisem “Uczestnik anonimowy”. ")])])])])])])])]):t._e(),"classification"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v("Wybierz klasyfikacje")])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"form.classificationId",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.classificationId,expression:"form.classificationId"}],attrs:{type:"hidden"},domProps:{value:t.form.classificationId},on:{input:function(e){e.target.composing||t.$set(t.form,"classificationId",e.target.value)}}}),t._l(t.form.classifications,(function(n){return e("Classification",{key:n.id,attrs:{id:n.id,classification:n,"competition-id":t.id,playerAge:t.birthAge,checked:t.form.classificationId===n.id,error:a[0]},on:{input:e=>{t.form.classificationId=parseInt(e.value),t.form.price=parseInt(e.price).toFixed(2)},"update:error":function(e){return t.$set(a,0,e)}}})})),a[0]?e("span",{staticClass:"validation-text"},[t._v(t._s(t.say[a[0]]))]):t._e()]}}],null,!0)})],1)])])]):t._e(),"specialCategories"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v("Kategorie specjalne")])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},t._l(t.form.specialCategories,(function(a){return e("SpecialCategory",{key:a.id,attrs:{id:a.id,category:a,checked:t.form.specialCategorieIds&&t.form.specialCategorieIds.includes(a.id),error:t.errors[0]},on:{input:t.setSpecialCategory,"update:error":function(e){return t.$set(t.errors,0,e)}}})})),1)])])]):t._e(),"inputs"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v("Pola dodatkowe")])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"section-wrap bg--gray"}
1,[t.inputsAdditionalInformation&&t.inputsAdditionalInformation.length>0?e("div",t._l(t.inputsAdditionalInformation,(function(a,n){return e("ValidationProvider",{key:a.id+"_"+n+"wrapAddUsr",staticClass:"scroll-margin",attrs:{name:"playerInputs"+a.id+"_"+n+"wrapAddUsr",rules:{required:a.fRequired}},scopedSlots:t._u([{key:"default",fn:function({errors:n}){return[e("panel-input-wrap",{attrs:{data:a,errors:n[0],options:{fr:{wrap:!0}}},model:{value:t.form.playerInputs[a.id].value,callback:function(e){t.$set(t.form.playerInputs[a.id],"value",e)},expression:"form.playerInputs[input.id].value"}})]}}],null,!0)})})),1):t._e(),t.inputsSupportFormUser&&t.inputsSupportFormUser.length>0?e("div",t._l(t.inputsSupportFormUser,(function(a,n){return e("ValidationProvider",{key:a.id+"_"+n+"wrapAddSuppUsr",staticClass:"scroll-margin",attrs:{name:"playerInputs"+a.id+"_"+n+"wrapAddSuppUsr",rules:{required:{allowFalse:!a.fRequired}}},scopedSlots:t._u([{key:"default",fn:function({errors:n}){return[e("panel-input-wrap",{attrs:{data:a,errors:n[0],options:{fr:{wrap:!0}}},model:{value:t.form.playerInputs[a.id].value,callback:function(e){t.$set(t.form.playerInputs[a.id],"value",e)},expression:"form.playerInputs[input.id].value"}})]}}],null,!0)})})),1):t._e(),t.inputsConfirmationInformation&&t.inputsConfirmationInformation.length>0?e("div",t._l(t.inputsConfirmationInformation,(function(a,n){return e("ValidationProvider",{key:a.id+"_"+n+"wrapAddConfUsr",staticClass:"scroll-margin",attrs:{name:"playerInputs"+a.id+"_"+n+"wrapAddConfUsr",rules:{required:{allowFalse:!a.fRequired}}},scopedSlots:t._u([{key:"default",fn:function({errors:n}){return[e("panel-input-wrap",{attrs:{data:a,errors:n[0]},model:{value:t.form.playerInputs[a.id].value,callback:function(e){t.$set(t.form.playerInputs[a.id],"value",e)},expression:"form.playerInputs[input.id].value"}})]}}],null,!0)})})),1):t._e()]),t.form.totalPrice?e("div",{staticClass:"register-summary-info",staticStyle:{"margin-top":"16px"}},[e("div",[e("div",[e("h4",[t._v("Do zapłaty")])]),e("h4",[t._v(t._s(t.form.totalPrice)+" zł")])])]):t._e()])])])]):t._e(),"insurance"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v("Ubezpiecz swój start "),e("span",{staticClass:"text-success text-normal"},[t._v("(opcjonalnie)")])])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[t._l(t.insuranceProducts,(function(a){return e("div",{key:a.id,staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"register-step-header"},[e("h4",[t._v(t._s(a.name))])])]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"section-wrap bg--gray"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 col-lg-7"},[e("base-input-checkbox",{attrs:{"checkbox-value":a.id,value:a.id,name:"insurances",wrap:""},model:{value:t.form.insurances,callback:function(e){t.$set(t.form,"insurances",e)},expression:"form.insurances"}},[e("h4",[t._v(t._s(a.name)+" "),e("span",[t._v(t._s(t._f("asPrice")(a.packages[0].price)))])]),4===a.id?e("p",[t._v(" maksymalny zwrot kosztów rehabilitacji "+t._s(t._f("asNumberFormat")(a.packages[0].max_refund))+" ")]):5===a.id?e("p",[t._v(" Złamania (max. suma ubezpieczenia "+t._s(t._f("asNumberFormat")(a.packages[0].max_bone_group_3))+"), urazy (max. suma ubezpieczenia "+t._s(t._f("asNumberFormat")(a.packages[0].max_injury_group_3))+"), śmierć w wyniku nieszczęśliwego wypadku (suma ubezpieczenia "+t._s(t._f("asNumberFormat")(a.packages[0].max_death_refund))+"). "),e("br"),e("br"),t._v("Okres ubezpieczenia: od godziny startu w wydarzeniu sportowym do przekroczenia linii mety. ")]):6===a.id?e("p",[t._v(" maksymalny zwrot kosztów rezygnacji z zawodów "+t._s(t._f("asNumberFormat")(a.packages[0].max_resignation_refund))+" ")]):t._e()])],1)])])])])})),t.additionalInsurancesData?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"section-wrap bg--gray"},[e("h4",[t._v("Dane do polisy ubezpieczeniowej")]),e("p",[t._v("W przypadku wyboru ubezpieczenia, podaj dodatkowe dane do polisy ubezpieczeniowej.")]),e("div",{staticClass:"row",staticStyle:{"margin-top":"16px"}},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"insurance_country",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-select",{staticClass:"no-border",attrs:{options:t.countries,clearable:!1,label:t.say.country,reduce:t=>t.id,error:a[0]}
1,on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.country,callback:function(e){t.$set(t.form,"country",e)},expression:"form.country"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"insurance_postcode",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.zip_code,border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.postcode,callback:function(e){t.$set(t.form,"postcode",e)},expression:"form.postcode"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"insurance_street",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.street,border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.street,callback:function(e){t.$set(t.form,"street",e)},expression:"form.street"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"insurance_house_number",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.house_number,border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.houseNumber,callback:function(e){t.$set(t.form,"houseNumber",e)},expression:"form.houseNumber"}})]}}],null,!0)})],1),e("div",{staticClass:"col-12 col-md-6"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"insurance_flat_number"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-text",{attrs:{error:a[0],label:t.say.flat_number,border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.flatNumber,callback:function(e){t.$set(t.form,"flatNumber",e)},expression:"form.flatNumber"}})]}}],null,!0)})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{name:"insurance_zgtel",rules:{required:{allowFalse:!1}}},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-checkbox",{attrs:{"checkbox-value":!0,value:!1,error:a[0],border:""},on:{"update:error":function(e){return t.$set(a,0,e)}},model:{value:t.form.zgtel,callback:function(e){t.$set(t.form,"zgtel",e)},expression:"form.zgtel"}},[e("p",[t._v("Wyrażam zgodę na przetwarzanie danych osobowych przez UNIQA Towarzystwo Ubezpieczeń S.A. w celu otrzymania komunikacji marketingowej drogą mailową. Zgodę można wycofać w dowolnym momencie. Wycofanie zgody ma skutek tylko na przyszłość i nie ma wpływu na zgodność z prawem dokonanego już przetwarzania,")])]),a[0]?e("span",{staticClass:"validation-text"},[t._v(t._s(t.say[a[0]]))]):t._e()]}}],null,!0)})],1)])])])]):t._e(),t.form.totalPrice?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"register-summary-info"},[e("div",[e("div",[e("h4",[t._v("Do zapłaty")])]),e("h4",[t._v(t._s(t.form.totalPrice)+" zł")])])])])]):t._e()],2)]):t._e(),"shop"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v("Sklep")])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[t.shopProducts&&t.shopProducts.length>0?e("div",{staticClass:"register-shop-items"},[t._l(t.shopProducts.filter(t=>t.visible),(function(a,n){return[e("div",{staticClass:"register-shop-item"},[a.images&&a.images.length>0&&a.images[0].visible?e("div",{staticClass:"register-shop-img"},[e("img",{attrs:{src:"https://dostartu.pl/files/shop/products/images/"+a.images[0].filename}})]):t._e(),e("div",{staticClass:"register-shop-details"},[e("div",{staticClass:"register-shop-name"},[t._v(t._s(a.name))]),e("div",{staticClass:"register-shop-price"},[t._v(t._s(a.price)+" zł")])]),a.models&&a.models.length>0?e("div",{staticClass:"register-shop-variants"},t._l(a.models.filter(t=>t.visible),(function(n){return e("div",{staticClass:"register-shop-variants-item"},[e("div",{staticClass:"register-shop-variants__name"},[t._v(t._s(n.name))]),e("QuantityInput",{attrs:{product:a,model:n,value:t.getShopProductValue(a.id,n.id)},on:{"quantity-change":t.handleQuantityChange}})],1)})),0):e("div",{staticClass:"register-shop-variants"},[e("div",{staticClass:"register-shop-variants-item"},[e("div",{staticClass:"register-shop-variants__name"},[t._v(" ")]),e("QuantityInput",{attrs:{product:a,value:t.getShopProductValue(a.id)},on:{"quantity-change":t.handleQuantityChange}})],1)]),a.description?e("p",{staticClass:"register-shop-description"},[t._v(t._s(a.description))]):t._e()])]}))],2):t._e(),t.form.totalPrice?e("div",{staticClass:"row",staticStyle:{"margin-top":"16px"}},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"register-summary-info"},[e("div",[e("div",[e("h4",[t._v("Do zapłaty")])]),e("h4",[t._v(t._s(t.form.totalPrice)+" zł")])])])])]):t._e()])]):t._e(),"summary"===t.currentFormStep?e("div",{staticClass:"register-step"},[e("div",{staticClass:"register-header"},[e("div",{staticClass:"left"},[e("h3",[t._v("Podsumowanie")])]),e("Progress",{attrs:{items:t.allFormSteps,current:t.currentFormStep}})],1),e("div",{staticClass:"register-step-section"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[e("div",{staticClass:"user-summary"},[e("div",[e("label",[t._v(t._s(t.say.firstname)+" "+t._s(t.say.lastname))]),e("b",[t._v(t._s(t.form.user.firstname)+" "+t._s(t.form.user.lastname))])]),e("div",[e("label",[t._v(t._s(t.say.email))]),e("b",[t._v(t._s(t.form.user.email))])]),e("div",[e("label",[t._v(t._s(t.say.birthtime))]),e("b",[t._v(t._s(new Date(t.form.user.birthDate).toLocaleDateString()))])])])]),e("div",{staticClass:"col-12 col-lg-9"},[t._l(t.form.items,(function(a){return e("div",{key:a.itemData.id,staticClass:"register-summary-info"},["competition"===a.itemData.itemType?e("div",[e("div",[e("h4",[t._v(t._s(a.itemData.name||"competition"))])]),a.price?e("h4",[t._v(t._s(a.price)+" zł")]):t._e()]):"classification"===a.itemData.itemType?e("div",[e("div",[e("h4",[t._v(t._s(a.itemData.name||"classification"))]),a.itemData.specialCategory&&Array.isArray(a.itemData.specialCategory)&&a.itemData.specialCategory.length>0?e("p",[t._v(" "+t._s(t.say.special_category)+": "+t._s(a.itemData.specialCategory.join(", "))+" ")]):t._e()]),a.price?e("h4",[t._v(t._s(a.price)+" zł")]):t._e()]):"shopProduct"===a.itemData.itemType?e("div",[e("div",[e("h4",[t._v(t._s(a.itemData.name||"shopProduct"))])]),e("h4",[a.itemData.quantity?e("span",{staticStyle:{"font-size":"14px","font-weight":"400"}},[t._v(t._s(a.itemData.quantity)+"x ")]):t._e(),a.price?e("span",[t._v(t._s(a.price)+" zł")]):t._e()])]):"insurance"===a.itemData.itemType?e("div",[e("div",[e("h4",[t._v(t._s(a.itemData.name||"insurance"))])]),e("h4",[a.itemData.quantity?e("span",{staticStyle:{"font-size":"14px","font-weight":"400"}},[t._v(t._s(a.itemData.quantity)+"x ")]):t._e(),a.price?e("span",[t._v(t._s(a.price)+" zł")]):t._e()])]):t._e(),Object.keys(a.itemData.extraAttributes).length>0?e("div",[t._v(" "+t._s(a.itemData.extraAttributes.modelName)+" ")]):t._e()])})),e("div",{staticClass:"register-summary-info"},[e("div",[e("div",[e("h4",[t._v("Do zapłaty")])]),e("h4",[t._v(t._s(t.form.totalPrice)+" zł")])])]),e("div",{staticStyle:{"margin-top":"24px"}},[e("div",{staticClass:"register-summary-info"},[e("ValidationProvider",{staticClass:"scroll-margin",attrs:{rules:{required:{allowFalse:!1}},name:"regulations_0"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("base-input-checkbox",{attrs:{"checkbox-value":1,name:"regulations_0",wrap:""},model:{value:t.form.regulations.reg0,callback:function(e){t.$set(t.form.regulations,"reg0",e)},expression:"form.regulations.reg0"}},[t._v(" "+t._s(t._f("asReplaceShortcode")(t.say.i_agree_with_data_processing_dostartu,"organizer",t.organizer.name))+" ")]),a[0]?e("span",{staticClass:"validation-text"},[t._v(t._s(t.say[a[0]]))]):t._e()]}}],null,!0)})],1),t._l(t.regulations,(function(a,n){return e("ValidationProvider",{key:n+1,staticClass:"scroll-margin",attrs:{rules:{required:{allowFalse:!1}},name:"regulations_"+(n+1)},scopedSlots:t._u([{key:"default",fn:function({errors:i}){return[e("div",{staticClass:"register-summary-info",staticStyle:{"margin-top":"8px"}},[e("base-input-checkbox",{attrs:{"checkbox-value":1,value:n+1,name:"regulations_"+(n+1),wrap:""},model:{value:t.form.regulations["reg"+(n+1)],callback:function(e){t.$set(t.form.regulations,"reg"+(n+1),e)},expression:"form.regulations[`reg${index+1}`]"}},[t._v(" "+t._s(t.say.i_agree_with_competition_statute)+" "),e("a",{attrs:{href:a,target:"_blank"}},[t._v(t._s(a))])]),i[0]?e("span",{staticClass:"validation-text"},[t._v(t._s(t.say[i[0]]))]):t._e()],1)]}}],null,!0)})}
1))],2)],2)])])]):t._e(),"status"===t.currentFormStep?e("div",{staticClass:"register-step status"},[e("div",{staticClass:"register-status"},[e("div",{staticClass:"register-status-image"},[e("img",{attrs:{src:a("53ea"),alt:""}})]),e("div",{staticClass:"register-status-content"},[e("h3",{staticClass:"text-success"},[t._v("Dziękujemy za zgłoszenie udziału.")]),e("p",[t._v("Przypominamy, że data startu to "),e("b",[t._v(t._s(t._f("asTime")(t.competition.startedTime)))])]),e("p",[t._v("Lokalizacja "),e("b",[t._v(t._s(t.competition.location))])]),e("base-button",{attrs:{btn1:""},on:{click:t.goToPayment}},[t._v(" "+t._s(t.say.pay_for_participation)+" ")]),(t.competition.status<=3||t.competition.isRemote)&&![4439,4094,4095,5165,8515,8502,8519,8520,8526].includes(t.competition.id)?e("base-button",{staticClass:"minisite__button",attrs:{btn2:""},on:{click:function(e){return t.$router.push({name:"minisite-list",params:t.competition,alias:!0})}}},[t._v(" "+t._s(t.say.start_list)+" ")]):t._e()],1)])]):t._e(),"status"!==t.currentFormStep?e("div",{staticClass:"register-step-section"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-lg-3"},[t._v(" ")]),e("div",{staticClass:"col-12 col-lg-9"},[e("div",{staticClass:"register-step-buttons row"},[e("div",{staticClass:"order-2 col-12 col-lg-3"},["playerData"===t.currentFormStep?e("base-button",{class:{tc2bo:t.layout.colourDefault},style:t.styleObject,attrs:{btn4:""},on:{click:function(e){return t.$router.back()}}},[t._v(" "+t._s(t.say.cancel)+" ")]):e("base-button",{class:{tc2bo:t.layout.colourDefault},style:t.styleObject,attrs:{btn4:""},on:{click:t.prevFormStep}},[t._v(" Cofnij ")])],1),e("div",{staticClass:"order-1 col-12 col-lg-4"},[e("base-button",{class:{tc1bg:t.layout.colourDefault},style:t.styleObject,attrs:{btn1:"",loading:t.isWaiting,disabled:t.isWaiting},on:{click:t.registerSubmit}},["summary"===t.currentFormStep&&t.form.totalPrice?[t._v(t._s(t.say.submit_form))]:"summary"===t.currentFormStep?[t._v(t._s(t.say.save))]:[t._v(" "+t._s(t.say.step_next)+" ")]],2)],1)])])])]):t._e()])]}}],null,!1,3805619887)})],1):t._e()},Rw=[],Lw=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"progress"},t._l(t.items,(function(a,n){return e("li",{key:n,staticClass:"progressItem",class:{active:t.items[n]===t.current}})})),0)},Mw=[],Dw={name:"MinisiteRegisterProgress",props:{items:{type:Array,required:!0},current:{type:String,required:!0}}},$w=Dw,Uw=(a("bb3a"),Object(U["a"])($w,Lw,Mw,!1,null,"753c1a28",null)),Bw=Uw.exports,Fw=function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-classification",class:{disabledCl:!t.inAgeRange||!t.classification.posible,error:t.error}},[e("div",{staticClass:"register-classification__header"},[e("div",{staticClass:"register-classification__name"},[t._v(t._s(t.classification.name))]),t.classificationSetting&&t.classificationSetting.isPay&&t.prices&&!t.prices.length?[e("div",{staticClass:"register-classification__price"},[t._v(t._s(t.say.unknown_payment_information))])]:t.classificationSetting&&!t.classificationSetting.isPay?[e("div",{staticClass:"register-classification__price"},[t._v(t._s(t.say.feeless))])]:t.ascSortPrices&&t.ascSortPrices.length?[e("div",{staticClass:"register-classification__price"},[t._v(t._s(t.ascSortPrices[0].price)+" "+t._s(t.currency))])]:t._e()],2),e("div",{staticClass:"register-classification__details"},[e("div",[e("div",[e("p",[t._v(t._s(t.say.distance))]),e("b",[t._v(t._s(t.classification.distance)+" km")])]),e("div",[e("p",[t._v(t._s(t.say.gender))]),e("b",[t.canM&&t.canK?[t._v(" "+t._s(t.say.woman_short)+","+t._s(t.say.man_short)+" ")]:t.canM?[t._v(" "+t._s(t.say.man_short)+" ")]:t.canK?[t._v(" "+t._s(t.say.woman_short)+" ")]:t._e()],2)]),e("div",[e("p",[t._v(t._s(t.say.age))]),e("b",[t._v(t._s(t.age.from)+"-"+t._s(t.age.to))])]),t.canRegisterClassification(t.competition,t.limits)?[e("div",[e("p",[t._v(t._s(t.say.available))]),e("b",[t._v(t._s(t.limits.playersAvailable)+" / "+t._s(t.limits.playersLimit))])])]:[e("div",[e("p",[t._v(t._s(t.say.number_of_participants))]),e("b",[t._v(t._s(t.limits.playersUnavailable))])])]],2),e("div",[e("div",{staticClass:"btnchk"},[e("label",{attrs:{for:`classifications[${t.competitionId}][${t.id}]`},on:{change:function(e){t.$emit("input",{value:e.target.value,price:t.prices&&Object.keys(t.prices).length>0?t.prices.price:0})}}},[e("input",{attrs:{type:"radio",id:`classifications[${t.competitionId}][${t.id}]`,name:`classification[${t.competitionId}]`},domProps:{value:t.id,checked:t.checked}}),t._m(0)])])])]),t.classificationSetting&&t.classificationSetting.isPay&&t.prices&&0===Object.keys(t.prices).length?[e("div",{staticClass:"register-classification__details"},[e("div",{staticClass:"register-classification__price",domProps:{innerHTML:t._s(t.say.unknown_payment_information)}})])]:t.classificationSetting&&!t.classificationSetting.isPay?[e("div",{staticClass:"register-classification__details"},[e("div",{staticClass:"register-classification__price",domProps:{innerHTML:t._s(t.say.feeless)}})])]:t.prices&&Object.keys(t.prices).length>0?[e("div",{staticClass:"register-classification__details"},[e("div",{staticClass:"register-classification__price"},[t._v(t._s(t.prices.price)+" "+t._s(t.currency))])])]:t._e(),t.classification&&t.classification.error_info?e("div",{staticClass:"validation-text"},[t._v(t._s(t.classification.error_info))]):t._e()],2)},qw=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"btnchk-wrap"},[e("span",{staticClass:"btnchk-txt"},[t._v("Wybierz klasyfikację")]),e("span",{staticClass:"btnchk-ico"})])}],Hw={name:"MinisiteRegisterClassification",mixins:[bi["a"]],props:{id:{type:Number,required:!0},classification:{type:Object,required:!0},competitionId:{type:Number,required:!0},playerAge:{type:Number,required:!1,default:0},checked:{type:Boolean,default:!1},error:{type:String,default:""}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["say","classifications","classificationsSettings","competitions","competitionsCurrency"])),{},{currency(){return this.competitionsCurrency[this.competition.id]?this.competitionsCurrency[this.competition.id].currencySymbol:"zł"},classificationSetting(){return this.classificationsSettings[this.id]},competition(){return this.competitions[this.competitionId]},limits(){return this.classification.limits},ages(){return this.classification.ages},prices(){return this.classification.price},ascSortPrices(){return"date"===this.classificationSetting.pricesControlledBy?qe.a.sortBy(this.prices,t=>
1t.endedTime):qe.a.sortBy(this.prices,t=>Number.parseFloat(t.price))},canM(){return!!this.ages.m},canK(){return!!this.ages.k},ageM(){return{from:this.ages.m.from||0,to:this.ages.m.to||99}},ageK(){return{from:this.ages.k.from||0,to:this.ages.k.to||99}},age(){const t=[],e=[];return this.canM&&(t.push(this.ageM.from),e.push(this.ageM.to)),this.canK&&(t.push(this.ageK.from),e.push(this.ageK.to)),{from:Math.min(...t),to:Math.max(...e)}},inAgeRange(){return this.playerAge>=this.age.from&&this.playerAge<=this.age.to}})},Gw=Hw,Ww=(a("1bf8"),Object(U["a"])(Gw,Fw,qw,!1,null,"008ac506",null)),Vw=Ww.exports,Kw=function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-classification",class:{error:t.error}},[e("div",{staticClass:"register-classification__header"},[e("div",{staticClass:"register-classification__name"},[t._v(t._s(t.category.namePl))])]),e("div",{staticClass:"register-classification__details"},[e("div",[t._v(" ")]),e("div",[e("div",{staticClass:"btnchk"},[e("label",{attrs:{for:`specialCategories[${t.category.id}][${t.id}]`},on:{change:function(e){return t.$emit("input",{value:e.target.value})}}},[e("input",{attrs:{type:"checkbox",id:`specialCategories[${t.category.id}][${t.id}]`,name:`specialCategory[${t.category.id}]`},domProps:{value:t.id,checked:t.checked}}),t._m(0)])])])])])},Zw=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"btnchk-wrap"},[e("span",{staticClass:"btnchk-txt"},[t._v("Wybierz kategorie")]),e("span",{staticClass:"btnchk-ico"})])}],Yw={name:"MinisiteRegisterSpecialCategory",props:{id:{type:Number,required:!0},category:{type:Object,required:!0},checked:{type:Boolean,default:!1},error:{type:String,default:""}}},Qw=Yw,Xw=(a("916d"),Object(U["a"])(Qw,Kw,Zw,!1,null,"520aaca6",null)),Jw=Xw.exports,tk=function(){var t,e=this,a=e._self._c;return a("div",{staticClass:"register-shop-variants__quantity"},[a("div",{staticClass:"jsQty jsQtyMinus",class:{"jsQty-disabled":e.quantity<=0},on:{click:e.decrement}},[a("i",{staticClass:"fa fa-minus"})]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.quantity,expression:"quantity"}],staticClass:"jsShopAssortment",attrs:{type:"text",name:`shop_assortment[${e.product.id}][${(null===(t=e.model)||void 0===t?void 0:t.id)||0}]`},domProps:{value:e.quantity},on:{input:[function(t){t.target.composing||(e.quantity=t.target.value)},e.emitQuantity]}}),a("div",{staticClass:"jsQty jsQtyPlus",on:{click:e.increment}},[a("i",{staticClass:"fa fa-plus"})])])},ek=[],ak={props:{product:{type:Object,required:!0},model:{type:Object,default:()=>{}},value:{type:Number,default:0}},data(){return{quantity:0}},created(){this.quantity=this.value},watch:{value(t){this.quantity=t}},methods:{increment(){this.quantity+=1,this.emitQuantity()},decrement(){this.quantity>0&&(this.quantity-=1,this.emitQuantity())},emitQuantity(){this.$emit("quantity-change",{id_product:this.product.id,model:this.model&&Object.keys(this.model).length>0?this.model.id:null,quantity:this.quantity})}}},nk=ak,ik=(a("5bfe"),Object(U["a"])(nk,tk,ek,!1,null,"6775a503",null)),sk=ik.exports;Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"})),Object(Pc["c"])("min",Ec["c"]),Object(Pc["c"])("max",Ec["b"]),Object(Pc["c"])("email",Ec["a"]);var ok={name:"MinisiteRegister",components:{Progress:Bw,Classification:Vw,SpecialCategory:Jw,QuantityInput:sk,PanelInputWrap:Q_,ValidationObserver:Pc["a"],ValidationProvider:Pc["b"]},props:{id:{type:Number,required:!0}},watch:{id:{immediate:!0,handler(){this.bootstrap()}},"form.user.city":{immediate:!0,handler(){this.searchValueCity=this.form.user.city}},"form.insurances":{handler(t,e){const a=Array.isArray(t)?t.map(Number):[Number(t)],n=Array.isArray(e)?e.map(Number):e?[Number(e)]:[];if(!a.length&&!n.length)return;const i=a.filter(t=>!n.includes(t))[0];if(i){this.additionalInsurancesData=!0,this.form.country="POL",this.form.postcode="",this.form.street="",this.form.houseNumber="",this.form.flatNumber="",this.form.insurance_zgtel=!1;const t=this.insuranceProducts.find(t=>t.id===i);t&&t.packages[0].price&&(this.form.totalPrice=(parseFloat(this.form.totalPrice)||0)+parseFloat(t.packages[0].price),this.form.totalPrice=parseFloat(this.form.totalPrice).toFixed(2))}const s=n.filter(t=>!a.includes(t))[0];if(s){const t=this.insuranceProducts.find(t=>
1t.id===s);t&&t.packages[0].price&&(this.form.totalPrice=(parseFloat(this.form.totalPrice)||0)-parseFloat(t.packages[0].price),this.form.totalPrice=parseFloat(this.form.totalPrice).toFixed(2)),0===a.length&&(this.additionalInsurancesData=!1,delete this.form.country,delete this.form.postcode,delete this.form.street,delete this.form.houseNumber,delete this.form.flatNumber,delete this.form.insurance_zgtel)}}},birthDay:{handler(){this.form.price=null,this.form.classificationId=null}},competition:{handler(){if(this.competition.frontFormType&&"old"===this.competition.frontFormType){const t={name:"minisite-register-old",params:this.competition,alias:!0};this.$router.push(t)}}}},data(){return{isWaiting:!1,basket:null,allFormSteps:["playerData","classification","specialCategories","inputs","additionalInformation","shop","insurance","summary","status"],formSteps:["playerData","classification"],nextInCycleIds:[],currentFormStep:"playerData",form:{totalPrice:null,price:null,insurances:[],classificationId:null,price:null,classifications:[],specialCategorieIds:[],shopProducts:[],playerInputs:{},userId:null,user:{},inputs:[],city:"",regulations:{}},countries:p,prefixes:Id,searchValueCity:"",errors:{},ready:!1,insuranceProducts:[],shopProducts:[],regulations:[],additionalInsurancesData:!1}},metaInfo(){var t,e;return{title:(null===(t=this.say)||void 0===t?void 0:t.register_to_competition)+" - "+(null===(e=this.competition)||void 0===e?void 0:e.name)||""}},created(){this.user||this.noAccount?this.user&&(this.form.userId=this.user.id,this.form.user=this.user):this.$router.push({name:"authentication-login",alias:!0,query:{redirect:this.$route.path}})},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["user","say","minisiteId","competitions","layoutsBy","competitionsSettings","classificationsBy","classificationsSettings","limitsBy","organizers"])),{},{competition(){return this.competitions[this.minisiteId]},layout(){return this.layoutsBy(this.competition)[0]},competitionSetting(){return this.competitionsSettings[this.minisiteId]},limits(){return this.limitsBy(this.competition)[0]},organizer(){return this.organizers[this.competition.organizer]},noAccount(){return!!this.$route.query.skip},birthDay(){return this.form.user&&this.form.user.birthDate?this.form.user.birthDate:null},birthAge(){return this.birthDay?Math.floor((new Date-new Date(this.birthDay).getTime())/315576e5):null},styleObject(){return{"--color":this.layout.colourDefault}},inputsSupportFormUser(){const t=this.form.inputs?this.form.inputs.filter(t=>"fc"===t.fType&&t.isPublic):[];if(t.length>0)for(const e of t)this.form.playerInputs[e.id]={value:null};return t},inputsAdditionalInformation(){const t=this.form.inputs?this.form.inputs.filter(t=>"fc"!==t.fType):[];if(t.length>0)for(const e of t)this.form.playerInputs[e.id]={value:null};return t},inputsConfirmationInformation(){const t=this.form.inputs?this.form.inputs.filter(t=>"fc"===t.fType):[];if(t.length>0)for(const e of t)this.form.playerInputs[e.id]={value:null};return t}}),methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])([g["jc"],g["Lb"],g["n"],g["Ub"],g["Tb"],g["Nb"],g["Ob"]])),{},{setSpecialCategory(t){const e=parseInt(t.value),a=this.form.specialCategorieIds.indexOf(e);-1===a?this.form.specialCategorieIds.push(e):this.form.specialCategorieIds.splice(a,1)},async goToPayment(){var t;const e=null===(t=this.basket)||void 0===t?void 0:t.order_id;try{const t=await Pt["a"].post("/p24/payment",{order:e});t&&t.redirectUrl&&(window.location.href=t.redirectUrl)}catch(a){return void(this.errors=a)}},async getBasket(){var t;const e=null===(t=this.basket)||void 0===t?void 0:t.basket_id;try{await Pt["a"].get(`/basket/${e}/view`)}catch(a){return void(this.errors=a)}},async createBasket(){const t={};this.user?t.userId=this.user.id:t.sessionId=this.$store.state.common.accessToken;try{const e=await Pt["a"].post("/basket/create",t);this.basket=e,await this.stepsCreator({formStep:"",competitionId:this.id})}catch(e){return void(this.errors=e)}},async saveOrder(){var t;this.isWaiting=!0;const e=null===(t=this.basket)||void 0===t?void 0:t.basket_id;try{const t=await Pt["a"].post(`/basket/${e}/save`);this.currentFormStep="status",this.basket.order_id=t.order}catch(a){return void(this.errors=a)}finally{this.isWaiting=!1}},async stepsCreator(t){var e;const a=null===(e=this.basket)||void 0===e?void 0:e.basket_id;try{const e=await Pt["a"].post(`/basket/${a}
1/steps`,t);var n,i,s,o,r,l,c,d,u;if(e)this.currentFormStep=e.formStep,this.formSteps.includes(e.formStep)||this.formSteps.push(e.formStep),null!==(n=e.data)&&void 0!==n&&n.playerData&&(this.form.user=e.data.playerData),null!==(i=e.data)&&void 0!==i&&i.classifications&&(this.form.classification=null,this.form.classifications=e.data.classifications),null!==(s=e.data)&&void 0!==s&&s.specialCategories&&(this.form.specialCategories=e.data.specialCategories),null!==(o=e.data)&&void 0!==o&&o.inputs&&(this.form.inputs=e.data.inputs),"insurance"===e.formStep&&null!==(r=e.data)&&void 0!==r&&r.insurance&&(this.insuranceProducts=e.data.insurance.products),"shop"===e.formStep&&null!==(l=e.data)&&void 0!==l&&l.shop&&(this.shopProducts=e.data.shop),null!==(c=e.data)&&void 0!==c&&c.items&&(this.form.items=e.data.items),e.price&&(this.form.totalPrice=e.price),null!==(d=e.data)&&void 0!==d&&d.totalPrice&&(this.form.totalPrice=e.data.totalPrice),null!==(u=e.data)&&void 0!==u&&u.regulations&&(this.regulations=e.data.regulations)}catch(p){return void(this.errors=p)}},async bootstrap(){this.ready=!1;const[{competitions:t}]=await Promise.all([this.READ_NEXT_IN_CYCLE_COMPETITIONS(this.id),this.createBasket(),this.READ_COMPETITION_CLASSIFICATIONS(this.id),this.BOOTSTRAP_MINISITE(this.id),this.READ_COMPETITION_LIMITS(this.id),this.READ_COMPETITION_CLASSIFICATIONS_AGES(this.id),this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.id),this.READ_COMPETITION_ORGANIZER(this.id)]);this.nextInCycleIds=t,this.ready=!0},async nextFormStep(){const t=this.formSteps.findIndex(t=>t===this.currentFormStep);this.isWaiting=!0;const e=Object(v["a"])({formStep:this.formSteps[t],competitionId:this.id,classificationId:this.form.classificationId},this.form.user),a=this.form.playerInputs;if(e.birthDate){const t=new Date(e.birthDate);t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),e.birthDate=t.toISOString().split("T")[0].replace(/-/g,".")}if(a&&Object.keys(a).length>0){e.playerInputs=[];for(let t in a)if(""!==a[t].value||null!==a[t].value){let n={input:parseFloat(t),value:a[t].value};a[t].id&&(n.id=a[t].id),e.playerInputs.push(n)}}this.form.specialCategorieIds&&this.form.specialCategorieIds.length>0&&(e.specialCategory=this.form.specialCategorieIds),this.form.insurances&&this.form.insurances.length>0&&(e.insurances=this.form.insurances,e.country=this.form.country,e.postcode=this.form.postcode,e.street=this.form.street,e.houseNumber=this.form.houseNumber,e.flatNumber=this.form.flatNumber,e.zgtel=this.form.zgtel),this.form.shopProducts&&this.form.shopProducts.length>0&&(e.shopProducts=this.form.shopProducts.filter(t=>t.quantity>0)),await this.stepsCreator(e),this.isWaiting=!1},prevFormStep(){const t=this.formSteps.findIndex(t=>t===this.currentFormStep);this.currentFormStep=this.formSteps[t-1]},selectCity(t){t&&(this.$set(this.form.user,"cityLng",t.cityLng),this.$set(this.form.user,"cityLat",t.cityLat),this.$set(this.form.user,"city",t.text),setTimeout(()=>{this.searchValueCity=t.text},40))},handleQuantityChange(t){const e=this.form.shopProducts.findIndex(e=>e.id_product===t.id_product&&e.model===t.model),a=this.shopProducts.find(e=>e.id===t.id_product&&e.models.some(e=>e.id===t.model));if(!a)return void console.error("Product not found for quantity change");const n=this.form.shopProducts[e],i=n?n.quantity:0,s=parseFloat(a.price)*(t.quantity-i);-1!==e?this.form.shopProducts.splice(e,1,t):this.form.shopProducts.push(t),this.form.totalPrice=(parseFloat(this.form.totalPrice)||0)+s,this.form.totalPrice=parseFloat(this.form.totalPrice).toFixed(2)},getShopProductValue(t,e=null){const a=this.form.shopProducts.find(a=>a.id_product===t&&a.model===e);return a?a.quantity:0},async registerSubmit(){this.$refs.registerFormObserver.validate().then(t=>{if(!t)for(const e of Object.keys(this.$refs.registerFormObserver.fields))if(this.$refs.registerFormObserver.fields[e].invalid){const t=this.$refs.registerFormObserver.refs[e].$el.getBoundingClientRect().top;return void this.$refs.registerFormObserver.refs[e].$el.scrollIntoView({top:t,behavior:"smooth"})}"summary"===this.currentFormStep?this.saveOrder():this.nextFormStep()})}})},rk=ok,lk=(a("53d0"),Object(U["a"])(rk,Nw,Rw,!1,null,"2e503c4a",null)),ck=lk.exports,dk=function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-step status"},["waiting"===t.status?e("div",{staticClass:"register-status"},[t._m(0),t._m(1)]):"success"===t.status?e("div",{staticClass:"register-status"},[t._m(2),t._m(3)]):"error"===t.status?e("div",{staticClass:"register-status"},[t._m(4),t._m(5)]):t._e()])},uk=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-status-image"},[e("img",{attrs:{src:a("38a6"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-status-content"},[e("h3",[t._v("Płatność jest przetwarzana.")]),e("p",[t._v("Czekamy na odpowied
1ź od operatora płatności, o statusie transakcji.")]),e("p",[t._v("Potwierdzenie płatności zwykle trwa kilka minut. Możesz spokojnie zamknąć tę stronę. O zmianie statusu płatności poinformujemy Cię w wiadomości e-mail.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-status-image"},[e("img",{attrs:{src:a("53ea"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-status-content"},[e("h3",{staticClass:"text-success"},[t._v("Dziękujemy za opłacenie udziału.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-status-image"},[e("img",{attrs:{src:a("03bb"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"register-status-content"},[e("h3",{staticClass:"text-error"},[t._v("Coś poszo nie tak i nie udało się zrealizować płatności.")]),e("p",[t._v("Spróbuj dokonać płatności jeszcze raz.")])])}],pk={name:"PaymentStatus",data(){return{status:"waiting"}},created(){this.$route.query.id&&this.getPaymentStatus(this.$route.query.id)},methods:{async getPaymentStatus(t){try{const e=await Pt["a"].get("/p24/success/"+t);null!==e&&void 0!==e&&e.status&&(this.status=e.status)}catch(e){return void console.log(e)}}}},mk=pk,fk=(a("8b88"),Object(U["a"])(mk,dk,uk,!1,null,"644917e5",null)),hk=fk.exports,bk=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[t._m(0),e("div",{staticClass:"row mat24 flex-nowrap"},[e("div",{staticClass:"side-bar none-mobile"},[e("base-button-group",[e("base-button",{attrs:{btn11:""},on:{click:function(e){return t.$router.push({name:"panel-competition-mail-new",params:t.competition,alias:!0})}}},[t._v(" Wyślij e-mail ")])],1)],1),t.competition?e("div",{staticClass:"content-wrap"},[e("validation-observer",{ref:"FormObserver",attrs:{tag:"div"},scopedSlots:t._u([{key:"default",fn:function({handleSubmit:a}){return[e("panel-competition-form-box",[e("p",[t._v("Wiadomości e-mail")]),e("p",{staticClass:"mat16"},[t._v(" Wiadomość wysłana zostanie wyłącznie do uczestników, którzy zapisali się na "),e("b",[t._v(t._s(t.competition.name))]),t._v(". Pamiętaj, że celem wysłania tej wiadomości jest komunikat dotyczący organizacji Twoich zawodów (np. zmiana godziny startu lub odwołanie imprezy). Wiadomość ta nie powinna być treścią marketingową a tym bardziej spamem. ")])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("validation-provider",{staticClass:"scroll-margin relative",attrs:{name:"name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-text",{attrs:{label:"Temat wiadomości",error:a.name},on:{"update:error":function(e){return t.$set(a,"name",e)}},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),a[0]?e("span",{staticClass:"input-error-alt"},[t._v("Pole wymagane")]):t._e()]}}],null,!0)})],1)]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12 col-lg-8"},[e("validation-provider",{staticClass:"scroll-margin relative",attrs:{name:"information",rules:"required"},scopedSlots:t._u([{key:"default",fn:function({errors:a}){return[e("panel-input-area",{ref:"messageArea",attrs:{label:"Treść wiadomości",rows:15,error:a.information},on:{"update:error":function(e){return t.$set(a,"information",e)}},model:{value:t.form.information,callback:function(e){t.$set(t.form,"information",e)},expression:"form.information"}}),a[0]?e("span",{staticClass:"input-error-alt"},[t._v("Pole wymagane")]):t._e()]}}],null,!0)})],1),e("div",{staticClass:"col-12 col-lg-3"},[e("p",{staticClass:"tags-title mat24"},[t._v("Znaczniki personalizacji")]),e("p",{staticClass:"tags-desc"},[t._v("Kliknij znacznik, aby wstawić go do treści:")]),e("ul",{staticClass:"tags-list"},t._l(t.availableTags,(function(a){return e("li",{key:a.key},[e("button",{staticClass:"tag-btn",attrs:{type:"button"},on:{click:function(e){return t.insertTag(a.key)}}},[t._v(" ["+t._s(a.key)+"] ")]),e("span",{staticClass:"tag-label"},[t._v(t._s(a.label))])])})),0)])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"w-full mab16"},[e("p",{staticClass:"title"},[t._v("Opcje wysyłki")])]),e("div",{staticClass:"radio-wrap"},[e("div",{staticClass:"radio-wrap-column"},[e("label",{staticClass:"mab8"},[t._v("Wyślij do uczestników")]),t._l(t.sendPaymentOptions,(function(a){return e("panel-input-base-radio",{key:a.value,attrs:{name:"formSendPayment",option:a},model:{value:t.form.send_payment,callback:function(e){t.$set(t.form,"send_payment",e)},expression:"form.send_payment"}})}))],2),e("div",{staticClass:"radio-wrap-column"},[e("label",{staticClass:"mab8"},[t._v("Wyślij do uczestników z wybranej kategorii")]),t._l(t.classificationOptions,(function(a){return e("panel-input-base-radio",{key:a.value,attrs:{name:"formSendClassification",option:a},model:{value:t.form.send_classification,callback:function(e){t.$set(t.form,"send_classification",e)},expression:"form.send_classification"}})}))],2),e("div",{staticClass:"radio-wrap-column"},[e("p",[t._v("Liczba odbiorców")]),t.loadingCount?e("span",{staticClass:"recipient-count recipient-count--loading"},[t._v("Ładowanie...")]):e("b",{staticClass:"recipient-count",class:{"recipient-count--zero":0===t.recipientCount}},[t._v(t._s(t.recipientCount))]),t.loadingCount||0!==t.recipientCount?t._e():e("p",{staticClass:"no-recipients-warning"},[t._v(" Brak odbiorców spełniających wybrane kryteria. Zmień opcje wysyłki, aby wysłać wiadomość. ")])])])]),e("div",{staticClass:"actions-wrap"},[e("base-button",{attrs:{btn2:"",short:"",disabled:t.loadingCsv},on:{click:t.downloadEmailsCsv}},[t.loadingCsv?e("span",[t._v("Pobieranie...")]):e("span",[t._v("Pobierz listę e-maili")])]),e("base-button",{attrs:{btn1:"",short:"",disabled:t.isWaiting||0===t.recipientCount||t.loadingCount},on:{click:function(e){return a(t.submit)}}},[t.isWaiting?e("span",[t._v("Wysyłanie...")]):e("span",[t._v("Wyślij wiadomość")])])],1)]}}],null,!1,3682926925)}),e("div",{staticClass:"mailings-section mat32"},[e("p",{staticClass:"mailings-section__title"},[t._v("Wysłane wiadomości e-mail")]),t.loadingMailings?e("div",{staticClass:"mailings-loading"},[t._v("Ładowanie listy mailingów...")]):t.mailingError?e("div",{staticClass:"mailings-error"},[t._v(t._s(t.mailingError))]):e("table",{staticClass:"mailings-table"},[t._m(1),e("tbody",[0===t.mailings.length?e("tr",[e("td",{staticClass:"mailings-table__empty",attrs:{colspan:"8"}},[t._v("Brak wysłanych wiadomości")])]):t._e(),t._l(t.mailings,(function(a){return e("tr",{key:a.id,staticClass:"mailings-table__row",on:{click:function(e){return t.openMailingDetail(a.id)}}},[e("td",[t._v(t._s(a.name))]),e("td",[t._v(t._s(a.type))]),e("td",[e("span",{staticClass:"status-badge",class:"status-badge--"+a.status},[t._v(" "+t._s(t.statusLabel(a.status))+" ")])]),e("td",[t._v(t._s(a.emails_send)+" / "+t._s(a.emails_count))]),e("td",[e("div",{staticClass:"progress-wrap"},[e("div",{staticClass:"progress-bar"},[e("div",{staticClass:"progress-bar__fill",style:{width:a.progress+"%"}})]),e("span",{staticClass:"progress-pct"},[t._v(t._s(a.progress)+"%")])])]),e("td",[t._v(t._s(t.formatDate(a.sended)))]),e("td",[t._v(t._s(t.formatDate(a.started_at)))]),e("td",[t._v(t._s(t.formatDate(a.completed_at)))])])}))],2)])]),e("modal",{ref:"mailingModal",attrs:{size:"xl"},scopedSlots:t._u([{key:"header",fn:function(){return[e("span",[t._v(t._s(t.selectedMailing?t.selectedMailing.name:"Szczegóły mailingu"))])]},proxy:!0},{key:"body",fn:function(){return[t.loadingDetail?e("div",{staticClass:"modal-loading"},[t._v("Ładowanie szczegółów...")]):t.selectedMailing?e("div",{staticClass:"mailing-detail"},[e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Status:")]),e("span",{staticClass:"status-badge",class:"status-badge--"+t.selectedMailing.status},[t._v(" "+t._s(t.statusLabel(t.selectedMailing.status))+" ")])]),e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Typ:")]),e("span",[t._v(t._s(t.selectedMailing.type))])]),e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Postęp:")]),e("div",{staticClass:"progress-wrap"},[e("div",{staticClass:"progress-bar"},[e("div",{staticClass:"progress-bar__fill",style:{width:t.selectedMailing.progress+"%"}})]),e("span",{staticClass:"progress-pct"},[t._v(t._s(t.selectedMailing.progress)+"%")])])]),e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Wysłano / Całość / Niewysłane:")]),e("span",[t._v(t._s(t.selectedMailing.emails_send)+" / "+t._s(t.selectedMailing.emails_count)+" / "+t._s(t.selectedMailing.emails_nosend))])]),e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Data wysłania:")]),e("span",[t._v(t._s(t.formatTimestamp(t.selectedMailing.sended)))])]),e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Data startu:")]),e("span",[t._v(t._s(t.formatDate(t.selectedMailing.started_at)))])]),e("div",{staticClass:"mailing-detail__row"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Data zakończenia:")]),e("span",[t._v(t._s(t.formatDate(t.selectedMailing.completed_at)))])]),t.selectedMailing.information?e("div",{staticClass:"mailing-detail__row mailing-detail__row--col"},[e("span",{staticClass:"mailing-detail__label"}
1,[t._v("Treść:")]),e("pre",{staticClass:"mailing-detail__content"},[t._v(t._s(t.selectedMailing.information))])]):t._e(),t.selectedMailing.emails_list?e("div",{staticClass:"mailing-detail__row mailing-detail__row--col"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Lista e-maili:")]),e("p",{staticClass:"mailing-detail__emails"},[t._v(t._s(t.selectedMailing.emails_list))])]):t._e(),t.selectedMailing.emails_error?e("div",{staticClass:"mailing-detail__row mailing-detail__row--col"},[e("span",{staticClass:"mailing-detail__label"},[t._v("Błędy:")]),e("p",{staticClass:"mailing-detail__error-list"},[t._v(t._s(t.selectedMailing.emails_error))])]):t._e()]):t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("div"),e("base-button",{attrs:{btn2:"",short:""},on:{click:function(e){return t.$refs.mailingModal.closeModal()}}},[t._v("Zamknij")])]},proxy:!0}],null,!1,2932772239)})],1):t._e()])])},_k=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mat32"},[e("div",{staticClass:"col-12 title"},[t._v("Wiadmości")])])},function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Nazwa")]),e("th",[t._v("Typ")]),e("th",[t._v("Status")]),e("th",[t._v("Wysłano / Całość")]),e("th",[t._v("Postęp")]),e("th",[t._v("Data wysłania")]),e("th",[t._v("Data startu")]),e("th",[t._v("Data zakończenia")])])])}];Object(Pc["c"])("required",Object(v["a"])(Object(v["a"])({},Ec["d"]),{},{message:"required_field"}));var vk={name:"PanelCompetitionMessagesMail",components:{ValidationObserver:Pc["a"],ValidationProvider:Pc["b"],PanelCompetitionFormBox:kh,PanelInputText:jh,PanelInputArea:k_,PanelInputBaseRadio:Kh["default"],Modal:$t["a"]},props:{competition:{type:Object,required:!0}},data(){return{isWaiting:!1,form:{name:"",information:"",send_classification:"all",send_payment:"all",type:"newsletter"},recipientCount:0,loadingCount:!1,loadingCsv:!1,mailings:[],loadingMailings:!1,mailingError:null,selectedMailing:null,loadingDetail:!1,errors:{},availableTags:[{key:"firstname",label:"imię"},{key:"lastname",label:"nazwisko"},{key:"playernumber",label:"numer startowy"},{key:"date",label:"data startu"},{key:"time",label:"godzina startu"},{key:"pay_link",label:"link do płatności"},{key:"statement",label:"link do deklaracji"},{key:"regulations",label:"link do regulaminu"},{key:"qrCode",label:"kod QR"},{key:"classification",label:"kategoria"}],sendPaymentOptions:[{value:"all",title:"Wszystkim"},{value:"1",title:"Tylko opłaconym"},{value:"0",title:"Tylko nieopłaconym"},{value:"organ",title:"Wszystkim z Twoich imprez"}]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["classificationsBy"])),{},{classifications(){return this.classificationsBy(this.competition)},classificationOptions(){const t=[{value:"all",title:"Wszystkim"}];if(!this.classifications||0===this.classifications.length)return t;const e=this.classifications.map(t=>({value:String(t.id),title:t.short||t.namePl}));return[...t,...e]}}),watch:{"form.send_classification":function(){this.fetchRecipientCount()},"form.send_payment":function(){this.fetchRecipientCount()},"form.type":function(){this.fetchRecipientCount()}},mounted(){this.fetchRecipientCount(),this.fetchMailings()},methods:{async fetchRecipientCount(){if(this.competition){this.loadingCount=!0;try{var t,e;const a=await Jl()({method:"get",url:`/competitions/${this.competition.id}/mailings/count`,params:{send_classification:this.form.send_classification,send_payment:this.form.send_payment}});this.recipientCount="object"===typeof a?null!==(t=null!==(e=a.recipients_count)&&void 0!==e?e:a.count)&&void 0!==t?t:0:a}catch(a){console.error("fetchRecipientCount error:",a),this.recipientCount=0}finally{this.loadingCount=!1}}},async fetchMailings(){if(this.competition){this.loadingMailings=!0,this.mailingError=null;try{const t=await Jl()({method:"get",url:`/competitions/${this.competition.id}/mailings`});this.mailings=Array.isArray(t)?t:[]}catch(t){console.error("fetchMailings error:",t),this.mailingError="Nie udało się pobrać listy mailingów."}finally{this.loadingMailings=!1}}},async openMailingDetail(t){this.selectedMailing=null,this.loadingDetail=!0,this.$refs.mailingModal.openModal();try{const e=await Jl()({method:"get",url:"/mailings/"+t});this.selectedMailing=e}catch(e){console.error("openMailingDetail error:",e)}finally{this.loadingDetail=!1}},async submit(){try{this.isWaiting=!0,await Jl()({method:"post",url:`/competitions/${this.competition.id}/mailings`,data:{name:this.form.name,information:this.form.information,send_classification:this.form.send_classification,send_payment:this.form.send_payment,type:this.form.type}}),this.form.name="",this.form.information="",this.form.send_classification="all",this.form.send_payment="all",this.form.type="newsletter",this.$refs.FormObserver.reset(),await this.fetchMailings(),this.$emit("update")}catch(t){console.error("submit error:",t)}finally{this.isWaiting=!1}},async downloadEmailsCsv(){if(this.competition){this.loadingCsv=!0;try{const t=await Jl()({method:"get",url:`/competitions/${this.competition.id}/emails/csv`,responseType:"blob"}),e=window.URL.createObjectURL(new Blob([t])),a=document.createElement("a");a.href=e,a.setAttribute("download",`emails-${this.competition.id}.csv`),document.body.appendChild(a),a.click(),a.remove(),window.URL.revokeObjectURL(e)}catch(t){console.error("downloadEmailsCsv error:",t)}finally{this.loadingCsv=!1}}},insertTag(t){var e,a;const n=`[${t}]`,i=null===(e=this.$refs.messageArea)||void 0===e||null===(a=e.$el)||void 0===a?void 0:a.querySelector("textarea");if(i){var s,o;const t=null!==(s=i.selectionStart)&&void 0!==s?s:i.value.length,e=null!==(o=i.selectionEnd)&&void 0!==o?o:i.value.length,a=this.form.information;this.form.information=a.slice(0,t)+n+a.slice(e),this.$nextTick(()=>{i.focus();const e=t+n.length;i.setSelectionRange(e,e)})}else this.form.information+=n},statusLabel(t){var e;const a={pending:"Oczekuje",completed:"Zakończony",in_progress:"W toku",failed:"Błąd"};return null!==(e=a[t])&&void 0!==e?e:t},formatDate(t){return t?t.replace("T"," ").slice(0,16):"—"},formatTimestamp(t){if(null==t||""===t)return"—";const e=new Date(1e3*Number(t));if(Number.isNaN(e.getTime()))return"—";const a=t=>String(t).padStart(2,"0");return`${e.getFullYear()}-${a(e.getMonth()+1)}-${a(e.getDate())} ${a(e.getHours())}:${a(e.getMinutes())}`}}},gk=vk,yk=(a("6ad4"),Object(U["a"])(gk,bk,_k,!1,null,"895c9530",null)),Ck=yk.exports,wk=function(){var t=this,e=t._self._c;return e("div",{staticClass:"competition-cycle"},[t.ready?[t.submitSuccess?e("panel-info-box",[e("img",{staticStyle:{"max-height":"48px"},attrs:{src:a("8a7d")}}),e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.submitMessage))])])]):t._e(),e("panel-competition-cycle-form",{attrs:{"available-cycles":t.availableCycles,"assigned-cycle-id":t.assignedCycleId,errors:t.errors,loading:t.loading},on:{save:t.save,detach:t.detach},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})]:e("div",{staticClass:"row mat32"},[t._m(0)])],2)},kk=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}],xk=function(){var t=this,e=t._self._c;return e("div",[e("panel-competition-form-box",[e("div",{staticClass:"col-12"},[e("div",{staticClass:"form__headline mab16"},[t._v("Zawody cykliczne")]),e("p",{staticClass:"mab8"},[t._v(" Umieszczenie zawodów w cyklu pozwala uczestnikom na jednoczesną rejestrację we wszystkich zawodach w danej serii. Opłata za udział może uwzględniać rabat za jednoczesną rejestrację w wielu zawodach z cyklu. ")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12 col-lg-7"},[e("div",{staticClass:"cycle-mode-option"},[e("panel-input-base-radio",{attrs:{name:"cycle-mode",option:{value:"existing",title:"Dodaj zawody do istniejącego cyklu"}},model:{value:t.form.mode,callback:function(e){t.$set(t.form,"mode",e)},expression:"form.mode"}}),"existing"===t.form.mode?e("div",{staticClass:"cycle-mode-option__field"},[e("p",{staticClass:"form-input__label"},[t._v("Wybierz istniejący cykl")]),e("base-input-select",{attrs:{"is-panel":"",placeholder:"Wpisz nazwę cyklu","label-select":"name",options:t.cycleOptions,reduce:t=>t.id,error:t.errors.id||t.errors.cycle},model:{value:t.form.selectedCycleId,callback:function(e){t.$set(t.form,"selectedCycleId",e)},expression:"form.selectedCycleId"}})],1):t._e()],1),e("div",{staticClass:"cycle-mode-option"},[e("panel-input-base-radio",{attrs:{name:"cycle-mode",option:{value:"create",title:"Stwórz nowy cykl"}},model:{value:t.form.mode,callback:function(e){t.$set(t.form,"mode",e)},expression:"form.mode"}}),"create"===t.form.mode?e("div",{staticClass:"cycle-mode-option__field"},[e("panel-input-text",{attrs:{label:"Nazwa nowego cyklu",hint:"Wpisz nazwę cyklu",error:t.errors.id}
1,on:{"update:error":function(e){return t.$set(t.errors,"id",e)}},model:{value:t.form.newCycleName,callback:function(e){t.$set(t.form,"newCycleName",e)},expression:"form.newCycleName"}})],1):t._e()],1)])]),t.isJoiningExistingCycle?e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__hint",staticStyle:{"margin-top":"0"}},[t._v(" Ustawienia rabatów należą do cyklu i wczytają się po zapisaniu przypisania. Edycja zniżek jest wspólna dla wszystkich zawodów w serii. ")])])]):t._e(),t.hasCycleSettings?[e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12 col-lg-7"},[e("p",{staticClass:"form-input__label mab16"},[t._v("Możliwość przenoszenia rejestracji po dokonaniu opłaty")]),e("panel-input-base-radio",{attrs:{value:t.moveRegistrationValue,name:"move-registration",option:{value:"yes",title:"Tak"}},on:{input:t.setMoveRegistration}}),e("panel-input-base-radio",{attrs:{value:t.moveRegistrationValue,name:"move-registration",option:{value:"no",title:"Nie"}},on:{input:t.setMoveRegistration}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Uczestnicy mogą przenieść swoją rejestrację do innych zawodów w cyklu nawet po opłaceniu startu. Różnica w opłacie nie zostanie wyrównana. ")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12"},[e("p",{staticClass:"form-input__label mab8"},[t._v("Rabaty dla opłat startowych w cyklu")])]),e("div",{staticClass:"col-12 col-lg-7"},[e("div",{staticClass:"discount-headers mab8"},[e("span",{staticClass:"discount-headers__starts"},[t._v("Liczba startów od której zostanie naliczany rabat")]),e("span",{staticClass:"discount-headers__amount"},[t._v("Rabat zł")]),e("span",{staticClass:"discount-headers__trash",attrs:{"aria-hidden":"true"}})]),t._l(t.form.discountRows,(function(a,n){return e("div",{key:"discount-"+n,staticClass:"discount-row",class:{"discount-row--error":t.isDuplicateStarts(n)}},[e("div",{staticClass:"discount-stepper"},[e("button",{staticClass:"discount-stepper__btn",attrs:{type:"button",disabled:!t.canChangeStarts(n,-1)},on:{click:function(e){return t.changeStarts(n,-1)}}},[e("i",{staticClass:"fas fa-minus"})]),e("input",{directives:[{name:"model",rawName:"v-model.number",value:a.starts,expression:"row.starts",modifiers:{number:!0}}],staticClass:"discount-stepper__input",attrs:{type:"number",min:"2"},domProps:{value:a.starts},on:{blur:[function(e){return t.normalizeStarts(n)},function(e){return t.$forceUpdate()}],input:function(e){e.target.composing||t.$set(a,"starts",t._n(e.target.value))}}}),e("button",{staticClass:"discount-stepper__btn",attrs:{type:"button",disabled:!t.canChangeStarts(n,1)},on:{click:function(e){return t.changeStarts(n,1)}}},[e("i",{staticClass:"fas fa-plus"})])]),e("span",{staticClass:"discount-row__label"},[t._v("liczba startów")]),e("input",{directives:[{name:"model",rawName:"v-model",value:a.amount,expression:"row.amount"}],staticClass:"discount-row__amount",attrs:{type:"text",inputmode:"decimal",placeholder:"0"},domProps:{value:a.amount},on:{input:function(e){e.target.composing||t.$set(a,"amount",e.target.value)}}}),e("button",{staticClass:"discount-row__trash",attrs:{type:"button",title:"Usuń próg"},on:{click:function(e){return t.removeDiscountRow(n)}}},[e("i",{staticClass:"fas fa-trash"})])])})),t.hasDuplicateStarts?e("p",{staticClass:"discount-error mat8"},[t._v(" Każdy próg musi mieć unikalną liczbę startów. ")]):t._e(),t.isDiscountLimitReached?e("p",{staticClass:"discount-error mat8"},[t._v(" Możesz dodać maksymalnie "+t._s(t.maxDiscounts)+" progów rabatowych. ")]):t._e(),e("div",{staticClass:"discount-add mat8"},[e("base-button",{attrs:{btn2:"",short:"",disabled:t.isDiscountLimitReached},on:{click:t.addDiscountRow}},[t._v(" Dodaj nowy próg ")])],1)],2),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v(" Ustal progi liczby startów i odpowiadające im kwoty rabatów do opłaty startowej."),e("br"),e("br"),t._v(" Wpisana kwota rabatu zmniejsza każdą opłatę startową w cyklu, nie sumę wszystkich opłat. Rabaty są wspólne dla całego cyklu — maksymalnie "+t._s(t.maxDiscounts)+" progów. ")])])]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"col-12 col-lg-7"},[e("p",{staticClass:"form-input__label"},[t._v(" Data zakończenia uwzględniania rabatów "),e("span",{staticClass:"form-input__label--positive"},[t._v("(opcjonalnie)")])]),e("base-input-date",{staticClass:"form-input__date mat8",attrs:{"is-short":"",border:"",hint:"Wybierz",placeholder:"DD.MM.RRRR",error:t.errors.discountEndedDate},model:{value:t.form.discountEndedDate,callback:function(e){t.$set(t.form,"discountEndedDate",e)},expression:"form.discountEndedDate"}})],1),e("div",{staticClass:"col-12 col-lg-4"},[e("p",{staticClass:"form-input__hint"},[t._v("Nie wybieraj daty aby rabaty były dostępne cały czas.")])])])]:t._e(),e("div",{staticClass:"col-lg-12 mat16 mab64"},[e("div",{staticClass:"row",class:t.assignedCycleId?"justify-content-between":"justify-content-end"},[t.assignedCycleId?e("div",{staticClass:"col-12 col-lg-4 cycle-actions__detach"},[e("base-button",{attrs:{btn2:"",loading:t.loading,disabled:t.loading},on:{click:function(e){return t.$emit("detach")}}},[t._v(" Odepnij zawody od cyklu ")])],1):t._e(),e("div",{staticClass:"col-12 col-lg-4"},[e("base-button",{attrs:{btn1:"",loading:t.loading,disabled:t.loading||t.hasDuplicateStarts||!t.canSave},on:{click:function(e){return t.$emit("save")}}},[t._v(" Zapisz ")])],1)])])],2)},Ok=[],Ak={name:"PanelCompetitionCycleForm",components:{PanelCompetitionFormBox:kh,PanelInputBaseRadio:Kh["default"],PanelInputText:jh},props:{value:{type:Object,required:!0},availableCycles:{type:Array,default:()=>[]},assignedCycleId:{type:[Number,String],default:null},maxDiscounts:{type:Number,default:20},errors:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1}},computed:{form:{get(){return this.value},set(t){this.$emit("input",t)}},cycleOptions(){return(this.availableCycles||[]).map(t=>({id:t.id,name:t.name||t.short||"Cykl #"+t.id}))},moveRegistrationValue(){return this.form.moveRegistrationOn?"yes":"no"},hasSelectedExistingCycle(){return null!=this.form.selectedCycleId&&""!==this.form.selectedCycleId},isAssignedCycleSelected(){return this.hasSelectedExistingCycle&&null!=this.assignedCycleId&&Number(this.form.selectedCycleId)===Number(this.assignedCycleId)},isJoiningExistingCycle(){return"existing"===this.form.mode&&this.hasSelectedExistingCycle&&!this.isAssignedCycleSelected},hasCycleSettings(){return"create"===this.form.mode?Boolean((this.form.newCycleName||"").trim()):this.isAssignedCycleSelected},hasDuplicateStarts(){const t=(this.form.discountRows||[]).map(t=>Number(t.starts));return t.some((e,a)=>t.indexOf(e)!==a)},isDiscountLimitReached(){return(this.form.discountRows||[]).length>=this.maxDiscounts}
1,canSave(){return"create"===this.form.mode?Boolean((this.form.newCycleName||"").trim()):this.hasSelectedExistingCycle}},methods:{setMoveRegistration(t){this.form.moveRegistrationOn="yes"===t||!0===t||1===t||"1"===t},usedStarts(t=-1){const e=new Set;return(this.form.discountRows||[]).forEach((a,n)=>{n!==t&&e.add(Number(a.starts))}),e},isDuplicateStarts(t){const e=this.form.discountRows[t];return!!e&&this.usedStarts(t).has(Number(e.starts))},nextFreeStarts(t=2,e=-1){const a=this.usedStarts(e);let n=Math.max(2,t);while(a.has(n))n+=1;return n},addDiscountRow(){this.isDiscountLimitReached||this.form.discountRows.push({starts:this.nextFreeStarts(2),amount:""})},removeDiscountRow(t){this.form.discountRows.splice(t,1)},canChangeStarts(t,e){const a=this.form.discountRows[t];if(!a)return!1;const n=Number(a.starts||2)+e;return!(n<2)&&!this.usedStarts(t).has(n)},changeStarts(t,e){if(!this.canChangeStarts(t,e))return;const a=this.form.discountRows[t];this.$set(a,"starts",Number(a.starts||2)+e)},normalizeStarts(t){const e=this.form.discountRows[t];if(!e)return;const a=Number(e.starts),n=Number.isFinite(a)&&a>=2?Math.floor(a):2;this.usedStarts(t).has(n)?this.$set(e,"starts",this.nextFreeStarts(n,t)):this.$set(e,"starts",n)}}},Sk=Ak,zk=(a("af98"),Object(U["a"])(Sk,xk,Ok,!1,null,"44395d29",null)),jk=zk.exports;function Ik(t){return Pt["a"].get(`panel/competitions/${t}/cycle`)}function Pk(t,e){return Pt["a"].put(`panel/competitions/${t}/cycle`,e)}const Ek=20;function Tk(t){return t&&"object"===typeof t?Object.entries(t).map(([t,e])=>({starts:Number(t),amount:null==e?"":String(e)})).sort((t,e)=>t.starts-e.starts):[]}function Nk(t){const e={};return(t||[]).forEach(t=>{const a=Number(t.starts);if(!Number.isFinite(a)||a<2)return;const n=Number(String(t.amount).replace(",","."));Number.isFinite(n)&&(e[String(a)]=n)}),e}function Rk(){return{mode:"existing",selectedCycleId:null,newCycleName:"",moveRegistrationOn:!1,discountRows:[],discountEndedDate:null}}var Lk={name:"PanelCompetitionCycle",components:{PanelCompetitionCycleForm:jk,PanelInfoBox:ub},props:{competition:{type:Object,required:!0},id:{type:Number,default:null}},data(){return{ready:!1,loading:!1,submitSuccess:!1,submitMessage:"Dane zostały poprawnie zapisane",availableCycles:[],assignedCycleId:null,assignedSettings:Rk(),syncingFromServer:!1,form:Rk(),errors:{}}},computed:{competitionId(){var t;return this.id||(null===(t=this.competition)||void 0===t?void 0:t.id)||this.$route.params.id},isAssignedCycleSelected(){return"existing"===this.form.mode&&null!=this.assignedCycleId&&Number(this.form.selectedCycleId)===Number(this.assignedCycleId)}},watch:{submitSuccess(t){t&&document.querySelector("body").scrollIntoView({top:0,behavior:"smooth"})},"form.mode":"applyCycleSelection","form.selectedCycleId":"applyCycleSelection"},created(){this.load()},methods:{cloneSettings(t){return{moveRegistrationOn:Boolean(t.moveRegistrationOn),discountRows:(t.discountRows||[]).map(t=>Object(v["a"])({},t)),discountEndedDate:t.discountEndedDate||null}},applySettings(t){this.form.moveRegistrationOn=Boolean(t.moveRegistrationOn),this.form.discountRows=(t.discountRows||[]).map(t=>Object(v["a"])({},t)),this.form.discountEndedDate=t.discountEndedDate||null},clearSettings(){this.applySettings({moveRegistrationOn:!1,discountRows:[],discountEndedDate:null})},applyCycleSelection(){this.syncingFromServer||(this.isAssignedCycleSelected?this.applySettings(this.assignedSettings):this.clearSettings())},mapResponseToForm(t){const e=(null===t||void 0===t?void 0:t.cycle)||null;this.availableCycles=Array.isArray(null===t||void 0===t?void 0:t.availableCycles)?t.availableCycles:[],this.syncingFromServer=!0;const a=Rk();null!==e&&void 0!==e&&e.id?(a.mode="existing",a.selectedCycleId=e.id,a.moveRegistrationOn=Boolean(e.moveRegistrationOn),a.discountRows=Tk(e.discounts).slice(0,Ek),e.discountEndedDate?a.discountEndedDate=f()(e.discountEndedDate,"YYYY-MM-DD"):e.discountEndedTime&&(a.discountEndedDate=f.a.unix(e.discountEndedTime)),this.assignedCycleId=e.id,this.assignedSettings=this.cloneSettings(a)):(a.mode=this.availableCycles.length?"existing":"create",this.assignedCycleId=null,this.assignedSettings=this.cloneSettings(Rk())),this.form=a,this.$nextTick(()=>{this.syncingFromServer=!1})},buildPayload(){if("create"===this.form.mode)return this.buildCycleSettingsPayload((this.form.newCycleName||"").trim()||null);const t=Number(this.form.selectedCycleId);return this.isAssignedCycleSelected?this.buildCycleSettingsPayload(t):{id:t}},buildCycleSettingsPayload(t){let e=null;return this.form.discountEndedDate&&f()(this.form.discountEndedDate).isValid()&&(e=f()(this.form.discountEndedDate).format("YYYY-MM-DD")),{id:t,moveRegistrationOn:Boolean(this.form.moveRegistrationOn),discounts:Nk(this.form.discountRows),discountEndedDate:e}},async load({silent:t=!1}={}){t||(this.ready=!1);try{const t=await Ik(this.competitionId);this.mapResponseToForm(t)}catch(e){console.error("Error loading competition cycle",e),this.errors=e||{},this.syncingFromServer=!0,this.assignedCycleId=null,this.assignedSettings=this.cloneSettings(Rk()),this.availableCycles=[],this.form=Rk(),this.$nextTick(()=>{this.syncingFromServer=!1})}finally{this.ready=!0}},async save(){if(this.loading=!0,this.submitSuccess=!1,this.errors={},"create"===this.form.mode&&!(this.form.newCycleName||"").trim())return this.errors={id:"required field"},void(this.loading=!1);if("existing"===this.form.mode&&(null==this.form.selectedCycleId||""===this.form.selectedCycleId))return this.errors={id:"required field"},void(this.loading=!1);const t=this.form.discountRows||[];if(t.length>Ek)return this.errors={discounts:"too many discounts"},void(this.loading=!1);const e=t.map(t=>Number(t.starts));if(e.some((t,a)=>e.indexOf(t)!==a))return this.errors={discounts:"duplicate starts"},void(this.loading=!1);try{await Pk(this.competitionId,this.buildPayload()),this.submitMessage="Dane zostały poprawnie zapisane",this.submitSuccess=!0,await this.load({silent:!0})}catch(a){this.errors=a||{}}finally{this.loading=!1}}
1,async detach(){if(null!=this.assignedCycleId&&!this.loading){this.loading=!0,this.submitSuccess=!1,this.errors={};try{await Pk(this.competitionId,{id:null}),this.submitMessage="Zawody zostały odpięte od cyklu",this.submitSuccess=!0,await this.load({silent:!0})}catch(t){this.errors=t||{}}finally{this.loading=!1}}}}},Mk=Lk,Dk=(a("f0e8"),Object(U["a"])(Mk,wk,kk,!1,null,"0ad4c7c3",null)),$k=Dk.exports,Uk=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[t._m(0),e("div",{staticClass:"row mat24 flex-nowrap"},[e("div",{staticClass:"side-bar none-mobile"},[e("base-button-group",t._l(t.languages,(function(a){return e("base-button",{key:a.code,class:{"is-active-lang":a.code===t.currentLanguage},attrs:{btn11:""},on:{click:function(e){return t.goToLanguage(a)}}},[e("span",{staticClass:"lang-btn"},[e("span",[t._v(t._s(a.label)+" | "+t._s(a.code.toUpperCase()))]),e("i",{staticClass:"fa fa-circle lang-status",class:t.isLanguageEnabled(a.code)?"lang-status--on":"lang-status--off",attrs:{"aria-hidden":"true"}})])])})),1)],1),e("div",{staticClass:"content-wrap"},[e("div",{staticClass:"mobile-lang-nav none-desktop mab16"},t._l(t.languages,(function(a){return e("base-button",{key:"m-"+a.code,staticClass:"mab8",class:{"is-active-lang":a.code===t.currentLanguage},attrs:{btn11:"",short:""},on:{click:function(e){return t.goToLanguage(a)}}},[t._v(" "+t._s(a.code.toUpperCase())+" "),e("i",{staticClass:"fa fa-circle lang-status",class:t.isLanguageEnabled(a.code)?"lang-status--on":"lang-status--off",attrs:{"aria-hidden":"true"}})])})),1),e("div",{ref:"saveFeedback"},[t.successMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.successMessage))])])]):t._e(),t.errorMessage?e("panel-info-box",{staticClass:"mab16"},[e("p",{staticClass:"text-lg"},[e("b",[t._v(t._s(t.errorMessage))])])]):t._e()],1),t.loading?e("div",{staticClass:"row mat16"},[t._m(1)]):t.form?[e("panel-competition-form-box",[e("div",{staticClass:"lang-header"},[e("p",{staticClass:"lang-header__title"},[t._v(t._s(t.currentLanguageTitle))]),e("div",{staticClass:"lang-header__toggle"},[e("panel-input-switch",{attrs:{value:t.languageEnabled,name:"languageEnabled",label:"",options:t.toggleOptions},on:{input:t.onToggle}})],1)])]),e("panel-competition-languages-form",{model:{value:t.form,callback:function(e){t.form=e},expression:"form"}}),e("div",{staticClass:"actions-wrap"},[e("base-button",{attrs:{btn1:"",short:"",disabled:t.saving},on:{click:t.save}},[t.saving?e("span",[t._v("Zapisywanie...")]):e("span",[t._v("Zapisz")])])],1)]:t._e()],2)])])},Bk=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mat32"},[e("div",{staticClass:"col-12 title"},[t._v("Wersje językowe")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12"},[e("div",{staticClass:"admin-header__loading-state"},[t._v(" Trwa wczytywanie "),e("div",{staticClass:"mal15 lds-ellipsis"},[e("div"),e("div"),e("div")])])])}];function Fk(t,e){return Pt["a"].get(`panel/competitions/${t}/translations/${e}`)}function qk(t,e,a){return Pt["a"].put(`panel/competitions/${t}/translations/${e}`,a)}function Hk(t,e){return Pt["a"].put(`panel/competitions/${t}/settings`,e)}var Gk=function(){var t=this,e=t._self._c;return e("div",{staticClass:"languages-form"},[e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"w-full mab16"},[e("p",{staticClass:"section-title"},[t._v("Informacje o zawodach")])]),e("div",{staticClass:"w-full"},[e("p",{staticClass:"field-label mab8"},[t._v("Opis zawodów")]),e("div",{staticClass:"i18n-pair i18n-pair--fill"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border",domProps:{innerHTML:t._s(t.formatHtml(t.baseCompetition.description))}})]),e("div",{staticClass:"i18n-col i18n-col--area"},[e("panel-input-area",{attrs:{rows:12},model:{value:t.translationCompetition.description,callback:function(e){t.$set(t.translationCompetition,"description",e)},expression:"translationCompetition.description"}})],1)])]),e("div",{staticClass:"w-full mat24"},[e("p",{staticClass:"field-label mab8"},[t._v("Ważny komunikat")]),e("div",{staticClass:"i18n-pair i18n-pair--fill"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border",domProps:{innerHTML:t._s(t.formatHtml(t.baseCompetition.remarks))}})]),e("div",{staticClass:"i18n-col i18n-col--area"},[e("panel-input-area",{attrs:{rows:4},model:{value:t.translationCompetition.remarks,callback:function(e){t.$set(t.translationCompetition,"remarks",e)},expression:"translationCompetition.remarks"}})],1)])]),e("div",{staticClass:"w-full mat24"},[e("p",{staticClass:"field-label mab8"},[t._v("Oficjalna strona zawodów")]),e("div",{staticClass:"i18n-pair i18n-pair--center"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border"},[t._v(t._s(t.baseCompetition.website||"—"))])]),e("div",{staticClass:"i18n-col"},[e("panel-input-text",{attrs:{hint:"http://"},model:{value:t.translationCompetition.website,callback:function(e){t.$set(t.translationCompetition,"website",e)},expression:"translationCompetition.website"}})],1)])]),t.hasCycle?e("div",{staticClass:"w-full mat24"},[e("p",{staticClass:"field-label mab8"},[t._v("Zawody cykliczne")]),e("div",{staticClass:"i18n-pair i18n-pair--center"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border"},[t._v(t._s(t.baseCycleName||"—"))])]),e("div",{staticClass:"i18n-col"},[e("panel-input-text",{model:{value:t.local.cycle.translation.name,callback:function(e){t.$set(t.local.cycle.translation,"name",e)},expression:"local.cycle.translation.name"}})],1)])]):t._e()]),t.local.classifications&&t.local.classifications.length?e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"w-full mab16"},[e("p",{staticClass:"section-title"},[t._v("Klasyfikacje i kategorie")])]),e("div",{staticClass:"w-full mab8"},[e("p",{staticClass:"field-label"},[t._v("Nazwa klasyfikacji")])]),t._l(t.local.classifications,(function(a,n){return e("div",{key:a.id,staticClass:"w-full classification-block",class:{mat16:n>0}},[e("div",{staticClass:"i18n-pair i18n-pair--center"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--strong"},[t._v(" "+t._s(a.base&&a.base.name||"—")+" ")])]),e("div",{staticClass:"i18n-col"},[e("panel-input-text",{model:{value:a.translation.name,callback:function(e){t.$set(a.translation,"name",e)},expression:"classification.translation.name"}})],1)]),a.specialCategories&&a.specialCategories.length?e("div",{staticClass:"categories-pair"},[e("div",{staticClass:"i18n-col categories-col"},t._l(a.specialCategories,(function(a){return e("p",{key:"base-"+a.id,staticClass:"i18n-text i18n-text--nested"},[t._v(" "+t._s(a.base&&a.base.name||"—")+" ")])})),0),e("div",{staticClass:"i18n-col categories-col"},t._l(a.specialCategories,(function(a){return e("div",{key:a.id,staticClass:"category-input"},[e("panel-input-text",{model:{value:a.translation.name,callback:function(e){t.$set(a.translation,"name",e)},expression:"category.translation.name"}})],1)})),0)]):t._e()])}
1))],2):t._e(),t.local.inputs&&t.local.inputs.length?e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"w-full mab16"},[e("p",{staticClass:"section-title"},[t._v("Pola dodatkowe formularza")])]),t._l(t.local.inputs,(function(a,n){return e("div",{key:a.id,staticClass:"w-full",class:{mat24:n>0}},[e("p",{staticClass:"field-label mab8"},[t._v(t._s(t.inputTypeLabel(a.type)))]),"fc"===a.type?[e("div",{staticClass:"i18n-pair i18n-pair--fill"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border",domProps:{innerHTML:t._s(t.formatHtml(a.base&&a.base.description))}})]),e("div",{staticClass:"i18n-col i18n-col--area"},[e("panel-input-area",{attrs:{rows:3},model:{value:a.translation.description,callback:function(e){t.$set(a.translation,"description",e)},expression:"input.translation.description"}})],1)])]:"fs"===a.type||"fr"===a.type?[e("div",{staticClass:"i18n-pair i18n-pair--center mab8"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--strong i18n-text--border"},[t._v(" "+t._s(a.base&&a.base.name||"—")+" ")])]),e("div",{staticClass:"i18n-col"},[e("panel-input-text",{model:{value:a.translation.name,callback:function(e){t.$set(a.translation,"name",e)},expression:"input.translation.name"}})],1)]),e("div",{staticClass:"categories-pair"},[e("div",{staticClass:"i18n-col categories-col"},t._l(t.inputOptions(a),(function(n,i){return e("p",{key:`base-opt-${a.id}-${i}`,staticClass:"i18n-text i18n-text--nested"},[t._v(" "+t._s(t.baseInputOption(a,i))+" ")])})),0),e("div",{staticClass:"i18n-col categories-col"},t._l(t.inputOptions(a),(function(n,i){return e("div",{key:`${a.id}-opt-${i}`,staticClass:"category-input"},[e("panel-input-text",{attrs:{value:n},on:{input:function(e){return t.setOption(a,i,e)}}})],1)})),0)])]:[e("div",{staticClass:"i18n-pair i18n-pair--center"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border"},[t._v(t._s(a.base&&a.base.name||"—"))])]),e("div",{staticClass:"i18n-col"},[e("panel-input-text",{model:{value:a.translation.name,callback:function(e){t.$set(a.translation,"name",e)},expression:"input.translation.name"}})],1)])]],2)}))],2):t._e(),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"w-full mab16"},[e("p",{staticClass:"section-title"},[t._v("Pliki dla uczestnika")])]),e("div",{staticClass:"w-full"},[e("p",{staticClass:"field-label mab8"},[t._v("Regulamin zawodów")]),e("div",{staticClass:"i18n-pair i18n-pair--center"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border"},[t.baseCompetition.statuteLink?e("a",{attrs:{href:t.baseCompetition.statuteLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.baseCompetition.statuteLink)+" ")]):[t._v("—")]],2)]),e("div",{staticClass:"i18n-col"},[e("panel-input-text",{attrs:{hint:"http://"},model:{value:t.translationCompetition.statuteLink,callback:function(e){t.$set(t.translationCompetition,"statuteLink",e)},expression:"translationCompetition.statuteLink"}})],1)])]),t.translationCompetition.statementContents&&t.translationCompetition.statementContents.length?e("div",{staticClass:"w-full mat24"},[e("p",{staticClass:"field-label mab8"},[t._v("Zgody uczestników")]),e("p",{staticClass:"field-hint mab16"},[t._v(" Możesz korzystać ze znaczników html: <b>, <i>, <u>, <br>. ")]),t._l(t.translationCompetition.statementContents,(function(a,n){return e("div",{key:"statement-"+n,staticClass:"i18n-pair i18n-pair--fill mat8"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border",domProps:{innerHTML:t._s(t.formatHtml(t.baseStatementContent(n)))}})]),e("div",{staticClass:"i18n-col i18n-col--area"},[e("panel-input-area",{attrs:{value:a,rows:6},on:{input:function(e){return t.setStatementContent(n,e)}}})],1)])}))],2):t._e()]),e("panel-competition-form-box",{staticClass:"mat16"},[e("div",{staticClass:"w-full mab16"},[e("p",{staticClass:"section-title"},[t._v("Potwierdzenie rejestracji")])]),e("div",{staticClass:"w-full"},[e("p",{staticClass:"field-label mab8"},[t._v("Treść e-maila z potwierdzeniem rejestracji")]),e("p",{staticClass:"field-hint mab16"},[t._v(" imię [firstname], nazwisko [lastname], data startu [date], godzina startu [time] ")]),e("div",{staticClass:"i18n-pair i18n-pair--fill"},[e("div",{staticClass:"i18n-col"},[e("p",{staticClass:"i18n-text i18n-text--border",domProps:{innerHTML:t._s(t.formatHtml(t.baseCompetition.registerMailContent))}})]),e("div",{staticClass:"i18n-col i18n-col--area"},[e("panel-input-area",{attrs:{rows:10},model:{value:t.translationCompetition.registerMailContent,callback:function(e){t.$set(t.translationCompetition,"registerMailContent",e)},expression:"translationCompetition.registerMailContent"}}
1)],1)])])])],1)},Wk=[];const Vk={fi:"Krótka odpowiedź",fj:"Krótka odpowiedź",fl:"Krótka odpowiedź",fh:"Krótka odpowiedź",fd:"Krótka odpowiedź",fs:"Lista wyboru",fr:"Wybór",fc:"Potwierdzenie"};var Kk={name:"PanelCompetitionLanguagesForm",components:{PanelCompetitionFormBox:kh,PanelInputText:jh,PanelInputArea:k_},props:{value:{type:Object,required:!0}},computed:{local:{get(){return this.value},set(t){this.$emit("input",t)}},baseCompetition(){return this.local.competition&&this.local.competition.base||{}},translationCompetition(){return this.local.competition&&this.local.competition.translation||{}},hasCycle(){return Boolean(this.local.cycle)},baseCycleName(){return this.local.cycle&&this.local.cycle.base&&this.local.cycle.base.name||""}},methods:{formatHtml(t){if(null==t||""===t)return"—";const e=String(t);return e.includes("<br")||e.includes("<p")||e.includes("<div")?e:e.replace(/\n/g,"<br>")},inputTypeLabel(t){return Vk[t]||"Pole formularza"},inputOptions(t){return t.translation&&t.translation.options||[]},baseInputOption(t,e){const a=t.base&&t.base.options||[];return null!=a[e]?a[e]:"—"},baseStatementContent(t){const e=this.baseCompetition.statementContents||[];return null!=e[t]?e[t]:""},setOption(t,e,a){t.translation.options||this.$set(t.translation,"options",[]),this.$set(t.translation.options,e,a)},setStatementContent(t,e){this.$set(this.translationCompetition.statementContents,t,e)}}},Zk=Kk,Yk=(a("cd56"),Object(U["a"])(Zk,Gk,Wk,!1,null,"2331c02e",null)),Qk=Yk.exports;const Xk=[{code:"en",label:"angielski",route:"panel-competition-languages",settingKey:"enOn"},{code:"cz",label:"czeski",route:"panel-competition-languages-cz",settingKey:"czOn"},{code:"de",label:"niemiecki",route:"panel-competition-languages-de",settingKey:"deOn"},{code:"fr",label:"francuski",route:"panel-competition-languages-fr",settingKey:"frOn"},{code:"lt",label:"litewski",route:"panel-competition-languages-lt",settingKey:"ltOn"},{code:"ua",label:"ukraiński",route:"panel-competition-languages-ua",settingKey:"UaOn"}],Jk={"panel-competition-languages":"en","panel-competition-languages-cz":"cz","panel-competition-languages-de":"de","panel-competition-languages-fr":"fr","panel-competition-languages-lt":"lt","panel-competition-languages-ua":"ua"},tx={en:"Język angielski",cz:"Język czeski",de:"Język niemiecki",fr:"Język francuski",lt:"Język litewski",ua:"Język ukraiński"};function ex(t){return JSON.parse(JSON.stringify(t))}function ax(t){return!t||"object"!==typeof t||Array.isArray(t)?{}:t}function nx(t){return null==t?"":t}function ix(t){return Array.isArray(t)?t:[]}function sx(t,e){const a=ix(t).slice();while(a.length<e)a.push("");return a}function ox(){return{language:"",competition:{base:{description:"",remarks:"",website:"",registerMailContent:"",statuteLink:"",statementContents:[]},translation:{description:"",remarks:"",website:"",registerMailContent:"",statuteLink:"",statementContents:[]}},cycle:null,classifications:[],inputs:[]}}function rx(t){const e=ax(t);return e.base=ax(e.base),e.translation=ax(e.translation),e.translation.name=nx(e.translation.name),e}function lx(t){const e=ex(t||ox());e.competition=ax(e.competition),e.competition.base=ax(e.competition.base),e.competition.translation=ax(e.competition.translation);const a=e.competition.translation;["description","remarks","website","registerMailContent","statuteLink"].forEach(t=>{a[t]=nx(a[t])});const n=ix(e.competition.base.statementContents);return e.competition.base.statementContents=n,e.competition.translation.statementContents=sx(a.statementContents,n.length),e.cycle&&(e.cycle=rx(e.cycle)),e.classifications=ix(e.classifications).map(t=>{const e=rx(t);return e.specialCategories=ix(e.specialCategories).map(rx),e}),e.inputs=ix(e.inputs).map(t=>{const e=ax(t);return e.base=ax(e.base),e.translation=ax(e.translation),"fc"===e.type?e.translation.description=nx(e.translation.description):"fs"===e.type||"fr"===e.type?(e.translation.name=nx(e.translation.name),e.base.options=ix(e.base.options),e.translation.options=sx(e.translation.options,e.base.options.length)):e.translation.name=nx(e.translation.name),e}),e}var cx={name:"PanelCompetitionLanguages",components:{PanelCompetitionFormBox:kh,PanelCompetitionLanguagesForm:Qk,PanelInputSwitch:nv,PanelInfoBox:ub},props:{competition:{type:Object,required:!0}},data(){return{languages:Xk,loading:!0,saving:!1,toggling:!1,form:null,successMessage:"",errorMessage:"",toggleOptions:[{value:!0,title:"Aktywny"},{value:!1,title:"Nieaktywny"}]}},computed:Object(v["a"])(Object(v["a"])({},Object(R["c"])(["competitionsSettings"])),{},{competitionId(){return this.competition.id},competitionSetting(){return this.competitionsSettings[this.competitionId]||{}},currentLanguage(){return Jk[this.$route.name]||"en"},currentLanguageMeta(){return this.languages.find(t=>t.code===this.currentLanguage)||this.languages[0]},currentLanguageTitle(){return tx[this.currentLanguage]||"Język"},languageEnabled(){const t=this.currentLanguageMeta.settingKey;return Boolean(this.competitionSetting[t])}}),watch:{currentLanguage:{immediate:!0,handler(){this.loadTranslations()}}},methods:Object(v["a"])(Object(v["a"])({},Object(R["b"])({readPanelCompetition:g["sc"]})),{},{isLanguageEnabled(t){const e=this.languages.find(e=>e.code===t);return!!e&&Boolean(this.competitionSetting[e.settingKey])},goToLanguage(t){t.code!==this.currentLanguage&&this.$router.push({name:t.route,params:this.competition,alias:!0})},clearMessages(){this.successMessage="",this.errorMessage=""},async loadTranslations(){if(this.competitionId){this.loading=!0,this.clearMessages();try{const t=await Fk(this.competitionId,this.currentLanguage);this.form=lx(t)}catch(t){this.form=ox(),this.errorMessage="Nie udało się wczytać tłumaczeń."}finally{this.loading=!1}}},async onToggle(t){if(this.toggling)return;const e=this.currentLanguageMeta.settingKey,a=Boolean(this.competitionSetting[e]),n=!0===t||"true"===t||1===t||"1"===t;if(n!==a){this.toggling=!0,this.clearMessages(),this.competitionSetting&&this.$set(this.competitionSetting,e,n);try{await Hk(this.competitionId,{[e]:n});try{await this.readPanelCompetition(this.competitionId)}catch(i){}}catch(s){this.competitionSetting&&this.$set(this.competitionSetting,e,a),this.errorMessage="Nie udało się zmienić statusu języka."}finally{this.toggling=!1}}},scrollToFeedback(){this.$nextTick(()=>{const t=this.$refs.saveFeedback;t&&"function"===typeof t.scrollIntoView&&t.scrollIntoView({behavior:"smooth",block:"start"})})},async save(){if(this.form&&!this.saving){this.saving=!0,this.clearMessages();try{await qk(this.competitionId,this.currentLanguage,ex(this.form)),this.successMessage="Tłumaczenia zostały zapisane."}catch(t){this.errorMessage="Nie udało się zapisać tłumaczeń."}finally{this.saving=!1,this.scrollToFeedback()}}}})},dx=cx,ux=(a("ba99"),Object(U["a"])(dx,Uk,Bk,!1,null,"045a0256",null)),px=ux.exports;const mx=[{name:"main",path:"main",component:Ca,meta:{layout:"front"},children:[{name:"main-landing",path:"landing",component:Ss,alias:"/"},{name:"main-list",path:"list",beforeEnter:up,component:Es,alias:"/lista-zawodow"},{name:"main-list-map",path:"list-map",beforeEnter:up,component:Ys,alias:"/lista-zawodow-mapa"}],alias:"/"},{name:"edit-credentials",path:"edit-credentials",component:kf,meta:{layout:"front",userRole:["user","organizer","operator","admin"]},alias:"/edycja-uwierzytelnienia"},{name:"player-transfer-start",path:"przekaz-start/:competitionId(\\d+)/:playerId(\\d+)",component:If,props:!0,meta:{layout:"front",userRole:["user"]},alias:"/przekaz-start/:competitionId(\\d+)/:playerId(\\d+)"},{name:"main-site-operator",path:":name-op:id(\\d+)",component:bp,meta:{layout:"front"},alias:"/:name-op:id(\\d+)"},{name:"main-site-organizer",path:":name-or:id(\\d+)",component:wp,meta:{layout:"front"},alias:"/:name-or:id(\\d+)"},{name:"timing-offer",path:"timing-offer",meta:{isLegacyRoute:!0},alias:"/oferta-pomiaru"},{name:"payment-status",path:"payment-status",component:hk,meta:{layout:"front"},alias:"/status-platnosci"},{name:"minisite",path:"minisite",component:Na,meta:{layout:"front"},children:[{name:"minisite-landing",path:"landing/:id(\\d+)",component:qo,alias:"/:name-v:id(\\d+)"},{name:"minisite-contact",path:":name-vc:id(\\d+)",component:bo,alias:"/:name-vc:id(\\d+)"},{name:"minisite-list",path:":name-c:id(\\d+)",component:Zo,alias:"/:name-c:id(\\d+)"},{name:"minisite-paylink",path:":name-cp:playerId-cv:id",component:er,alias:"/:name-cp:playerId-cv:id"},{name:"minisite-paylink-confirmation",path:":name-cg:id",component:rr,alias:"/:name-cg:id"},{name:"minisite-results-pick-classification",path:":name-cc:id(\\d+)",component:Or,alias:"/:name-cc:id(\\d+)"},{name:"minisite-results-live",path:":name-c:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-c:id(\\d+)"},{name:"minisite-results",path:":name-cc:id(\\d+)-ccx:classificationId(\\d+)",component:mr,alias:"/:name-cc:id(\\d+)-ccx:classificationId(\\d+)"},{name:"minisite-registered",path:":name-xyz:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-xyz:id(\\d+)"},{name:"minisite-declare-result",path:"declare/:token",component:wo,alias:"/dodaj-swoj-wynik/:token"},{name:"minisite-declare-result-confirmation",path:"declare/:playerId/confirmation/:isTimeCompetition",component:Up,alias:"/potwierdzenie-dodania-wyniku/:playerId/:isTimeCompetition"},{name:"minisite-transfer-files",path:"transfer/:token",component:zp,alias:"/dodaj-pliki/:token"},{name:"minisite-transfer-confirmation",path:"transfer/:id/confirmation",component:Np,alias:"/dodaj-pliki/:id/potwierdzenie"},{name:"minisite-register",path:":name-rn:id(\\d+)",component:ck,alias:"/:name-rn:id(\\d+)"},{name:"minisite-register-old",path:":name-r:id(\\d+)",component:ck,meta:{isLegacyRoute:!0},alias:"/:name-r:id(\\d+)"},{name:"minisite-pay",path:":name-jk:id(\\d+)-p:token(\\w+)",meta:{isLegacyRoute:!0},alias:"/:name-jk:id(\\d+)-p:token(\\w+)"},{name:"minisite-edit",path:":name-r:id(\\d+)-p:token(\\w+)",meta:{isLegacyRoute:!0},alias:"/:name-r:id(\\d+)-p:token(\\w+)"},{name:"minisite-shop",path:":name-r:id(\\d+)-p:token(\\w+)",meta:{isLegacyRoute:!0},alias:"/:name-r:id(\\d+)-p:token(\\w+)"},{name:"minisite-transfer",path:":name-t:id(\\d+)-p:token(\\w+)",meta:{isLegacyRoute:!0},alias:"/:name-t:id(\\d+)-p:token(\\w+)"}]},{name:"authentication",path:"authentication",component:Nn,meta:{layout:"front"},children:[{name:"authentication-login",path:"login",component:Qi,alias:"/logowanie"},{name:"authentication-register",path:"register",component:ns,alias:"/zaloz-nowe-konto"},{name:"authentication-reset",path:"reset",component:cs,meta:{userRole:"anonymous"},alias:"/reset-hasla"},{name:"authentication-reset-confirmation",path:"confirmation",component:hs,meta:{from:"authentication-reset",userRole:"anonymous"},alias:"/reset-hasla-potwierdzenie"},{name:"authentication-choose-profile",path:"choose-profile",component:Wp,alias:"/wybor-profilu"},{name:"authentication-create-organizer",path:"create-organizer",component:Ff,alias:"/tworzenie-profilu-organizatora"}]},{name:"user",path:"user",component:Fi,meta:{layout:"front",userRole:["user"]},children:[{name:"user-edit",path:"edit",component:Nn,children:[{name:"user-edit-profile",path:"profile",component:Dd,alias:"/edytuj-dane-osobowe"},{name:"user-edit-insurance",path:"insurance",component:Od,alias:"/edytuj-dane-dla-ubezpieczenia"}]}
1,{name:"user-competitions",path:"competition",component:Nn,children:[{name:"user-competitions-future",path:"future",component:Kc,alias:"/twoje-nadchodzace-zawody"},{name:"user-competitions-past",path:"past",component:td,alias:"/twoje-minione-zawody"},{name:"user-competitions-proposed",path:"proposed",component:od,alias:"/twoje-proponowane-zawody"}]},{name:"user-insurance",path:"insurance",component:Nn,children:[{name:"user-insurance-policies",path:"policies",component:ap,alias:"/ubezpieczenia"}]},{name:"user-family",path:"family",component:Nn,children:[{name:"user-family-parents",path:"parents",component:Yu,alias:"/kto-moze-mnie-zapisywac"},{path:"children",component:Nn,children:[{name:"user-family-children-edit",path:"edit/:id",component:Du,alias:"/edytuj-dane-dziecka/:id"},{name:"user-family-children-add",path:"add",component:Eu,alias:"/dodaj-osobe"},{name:"user-family-children",path:"",component:yu,alias:"/zarzadzaj-rodzina"}]}]},{name:"user-more",path:"more",component:Hd,alias:"/dane-osobowe-wiecej"},{name:"user-notifications",path:"notifications ",component:Yd,alias:"/powiadomienia"},{name:"user-messages",path:"messages ",component:lu,alias:"/wiadomosci"}]},{name:"panel",path:"panel",component:Nn,meta:{layout:"back",userRole:["admin","organizer","operator"]},children:[{name:"panel-admin",path:"admin",component:Wm,alias:"/panel-administratora",meta:{userRole:["admin"]}},{name:"panel-provision-admin",path:"provision-admin",component:Bg,alias:"/panel-platnosci",meta:{userRole:["admin"]}},{name:"panel-provision-agreements-admin",path:"provision-agreements-admin",component:Kg,alias:"/panel-platnosci/umowy",meta:{userRole:["admin"]}},{name:"panel-provision",path:"provision",component:ty,alias:"/moje-oplaty",meta:{userRole:["admin","operator","organizer"]}},{name:"panel-changelog",path:"changelog",component:oy,alias:"/lista-zmian",meta:{userRole:["admin","organizer","operator"]}},{name:"panel-users-list",path:"users",component:Xm,alias:"/lista-uzytkownikow",meta:{userRole:["admin"]}},{name:"panel-operator",path:"operator/:operatorId?",component:Nm,alias:"/panel-operatora/:operatorId?",meta:{userRole:["operator","admin"]}},{name:"panel-organizer",path:"organizer/:organizerId?",component:bm,alias:"/panel-organizatora/:organizerId?"},{name:"panel-create-competition",path:"create-competition-i-:organizerId",component:Mh,alias:"/zorganizuj-nowe-zawody-i-:organizerId"},{name:"panel-competition",path:"competition",component:_n,meta:{userRole:["admin","organizer","operator"]},children:[{name:"panel-competition-dashboard",path:":name-m:id(\\d+)",component:mh,alias:"/:name-m:id(\\d+)"},{name:"panel-competition-setting",path:"setting",component:jn,children:[{name:"panel-competition-setting-info",path:":name-i:id(\\d+)",component:qh,alias:"/:name-i:id(\\d+)"},{name:"panel-competition-setting-classifications-new",path:":name-y-n:id(\\d+)",component:Wy,alias:"/:name-y-n:id(\\d+)"},{name:"panel-competition-setting-classifications",path:":name-y:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-y:id(\\d+)"},{name:"panel-competition-setting-numbers",path:":name-nn:id(\\d+)",component:Cb,alias:"/:name-nn:id(\\d+)"},{name:"panel-competition-setting-rebates",path:":name-re:id(\\d+)",component:sC,alias:"/:name-re:id(\\d+)"},{name:"panel-competition-setting-discount",path:":name-di:id(\\d+)",redirect:t=>({name:"panel-competition-setting-cycle",params:t.params}),alias:"/:name-di:id(\\d+)"},{name:"panel-competition-setting-register",path:":name-k:id(\\d+)",component:Tw,alias:"/:name-k:id(\\d+)"},{name:"panel-competition-setting-cycle",path:":name-ic:id(\\d+)",component:$k,alias:"/:name-ic:id(\\d+)"},{name:"panel-competition-setting-regulation",path:":name-if:id(\\d+)",component:sg,alias:"/:name-if:id(\\d+)"},{name:"panel-competition-setting-statement",path:":name-ig:id(\\d+)",component:hg,alias:"/:name-ig:id(\\d+)"},{name:"panel-competition-setting-confirmation",path:":name-ie:id(\\d+)",component:Rg,alias:"/:name-ie:id(\\d+)"},{name:"panel-competition-setting-layout",path:":name-ma:id(\\d+)",component:ow,alias:"/:name-ma:id(\\d+)"},{name:"panel-competition-setting-stoper",path:":name-mn:id(\\d+)",component:il,alias:"/:name-mn:id(\\d+)"}]},{name:"panel-competition-stoper",path:":name-s:id(\\d+)",component:Zl,alias:"/:name-s:id(\\d+)"},{name:"panel-competition-list",path:":name-l:id(\\d+)",component:yv,meta:{isLegacyRoute:!0},alias:"/:name-l:id(\\d+)"},{name:"panel-competition-list-new",path:":name-ln:id(\\d+)",component:yv,alias:"/:name-ln:id(\\d+)"},{name:"panel-competition-result",path:":name-u:id(\\d+)",component:zb,alias:"/:name-u:id(\\d+)"},{name:"panel-competition-payment-result",path:":name-pp:id(\\d+)",component:Wb,alias:"/:name-pp:id(\\d+)"},{name:"panel-competition-results-live",path:":name-rsl:id(\\d+)-:classificationId(\\d+)",component:Nb,alias:"/:name-rsl:id(\\d+)-:classificationId(\\d+)"},{name:"panel-competition-results-live-all",path:":name-rsl:id(\\d+)-all",component:Ub,alias:"/:name-rsl:id(\\d+)-all"},{name:"panel-competition-result-legacy",path:":name-uu:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-uu:id(\\d+)"},{name:"panel-competition-mail",path:":name-me:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-me:id(\\d+)"},{name:"panel-competition-mail-new",path:":name-men:id(\\d+)",component:Ck,alias:"/:name-men:id(\\d+)"},{name:"panel-competition-sms",path:":name-ms:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-ms:id(\\d+)"},{name:"panel-competition-shop",path:":name-sa:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-sa:id(\\d+)"},{name:"panel-competition-shop-orders",path:":name-ss:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-ss:id(\\d+)"},{name:"panel-competition-insurance",path:":name-is:id(\\d+)",component:Av,alias:"/:name-is:id(\\d+)"},{name:"panel-competition-setting-scaner-qr",path:":name-mscqr:id(\\d+)",component:nc,alias:"/:name-mscqr:id(\\d+)"},{name:"panel-competition-languages",path:":name-in_en:id(\\d+)",component:px,alias:"/:name-in_en:id(\\d+)"},{name:"panel-competition-languages-cz",path:":name-in_cz:id(\\d+)",component:px,alias:"/:name-in_cz:id(\\d+)"},{name:"panel-competition-languages-de",path:":name-in_de:id(\\d+)",component:px,alias:"/:name-in_de:id(\\d+)"},{name:"panel-competition-languages-fr",path:":name-in_fr:id(\\d+)",component:px,alias:"/:name-in_fr:id(\\d+)"},{name:"panel-competition-languages-lt",path:":name-in_lt:id(\\d+)",component:px,alias:"/:name-in_lt:id(\\d+)"},{name:"panel-competition-languages-ua",path:":name-in_ua:id(\\d+)",component:px,alias:"/:name-in_ua:id(\\d+)"},{name:"panel-competition-map",path:":name-im:id(\\d+)",component:Er,alias:"/:name-im:id(\\d+)"}]},{name:"panel-competition-setting-stoper-fullscreen",path:":name-mnfs:id(\\d+)",component:Xb,alias:"/:name-mnfs:id(\\d+)",meta:{userRole:["admin","organizer","operator"]}},{path:":name-set-account-new:id(\\d+)?",component:uC,children:[{name:"panel-setting-ne
1w",path:"",alias:"/:name-set-a-n:id(\\d+)?",component:_C},{name:"panel-setting-new-agreements",path:"/:name-set-account-new:id(\\d+)?/agreements",alias:"/:name-set-a-n:id(\\d+)?/agreements",component:jC},{name:"panel-setting-new-info-payments",path:"/:name-set-account-new/payments/:id(\\d+)?",alias:"/:name-set-a-n:id(\\d+)?/payments",component:RC},{name:"panel-setting-new-operator-payments",path:"/:name-set-account-new-operator/payments/:id(\\d+)?",alias:"/:name-set-a-no:id(\\d+)?/payments",component:BC},{name:"panel-setting-new-web",path:"/:name-set-account-new/web/:id(\\d+)?",alias:"/:name-set-a-n:id(\\d+)?/web",component:VC},{name:"panel-setting-new-custom",path:"/:name-set-account-new/custom/:id(\\d+)?",alias:"/:name-set-a-n:id(\\d+)?/custom",component:tw}]},{name:"panel-setting",path:":name-set-account",meta:{isLegacyRoute:!0},alias:"/:name-set-account"},{name:"panel-setting-organizer",path:":name-set-ao:id(\\d+)",meta:{isLegacyRoute:!0},alias:"/:name-set-ao:id(\\d+)"},{name:"panel-gate",path:"gate/:secureId(\\w+)",component:Fc,alias:"/pomiar-:secureId(\\w+)"},{name:"panel-competition-scanner-qr",path:"qrreader/:secureId(\\w+)",component:Lc,alias:"/qrreader-:secureId(\\w+)"}]},{name:"insurance-standalone",path:":name-ins:id(\\d+)",meta:{isLegacyRoute:!0}},{path:"/logout-user",meta:{layout:"front"},component:Lf,alias:"/wyloguj"},{path:"/index",redirect:{name:"main-landing"}},{name:"error-not-found",path:"/*",meta:{layout:"front"},component:Cs}];function fx(t){for(const n of t){var e,a;null!==(e=n.children)&&void 0!==e&&e.length||(n.props=!0),fx(null!==(a=n.children)&&void 0!==a?a:[])}return t}var hx=[{path:"/",component:Pe,props:({matched:t})=>({layout:t.find(({meta:t})=>null===t||void 0===t?void 0:t.layout).meta.layout}),children:fx(mx)}];function bx(t,e){return 0===e.length||e.includes("anonymous")&&!t||e.includes("user")&&t&&t.roles.includes("ROLE_USER")||e.includes("organizer")&&t&&t.roles.includes("ROLE_ORGANIZER")||e.includes("operator")&&t&&t.roles.includes("ROLE_OPERATOR")||e.includes("admin")&&t&&t.roles.includes("ROLE_ADMIN")}function _x(t,e){return t?{name:"main-landing",alias:!0}:{name:"authentication-login",query:{redirect:e.fullPath},alias:!0}}function vx(t,e,a){const n=["panel-gate","panel-competition-scanner-qr"];for(const i of t.matched){const e=Object(w["c"])(i.meta.userRole);if(!bx(a,e)&&!n.includes(t.name))return _x(a,t)}return null}var gx=(t,e,a)=>{const{user:n}=l["a"].getters,i=vx(t,e,n);i?a(A.getParsed(i,hx)):a()},yx=async(t,e,a)=>{const{bootstraped:n}=l["a"].getters;n||await l["a"].dispatch(g["l"]),a()},Cx=t=>{t.params.id&&(t.params.id=Number.parseInt(t.params.id,10)),t.params.playerId&&(t.params.playerId=Number.parseInt(t.params.playerId,10)),t.params.competitionId&&(t.params.competitionId=Number.parseInt(t.params.competitionId,10)),t.params.classificationId&&(t.params.classificationId=Number.parseInt(t.params.classificationId,10)),t.params.organizerId&&(t.params.organizerId=Number.parseInt(t.params.organizerId,10)),t.params.operatorId&&(t.params.operatorId=Number.parseInt(t.params.operatorId,10))},wx=a("4328"),kx=(t,e,a)=>{const n=t.fullPath.replace(/\.[a-z]{2}\.html/i,"");if(n===t.fullPath)return t.meta.isLegacyRoute?"minisite-register"!==t.name||null!==l["a"].state.authentication.userId||/skip=true/.test(t.fullPath)?void(window.location.href=`${t.path}.pl.html?${Object(wx["stringify"])(t.query)}`):void zx.push({name:"authentication-login",query:{redirect:t.fullPath},alias:!0}):void(void 0===t.meta.from||t.meta.from===e.name?a():a(A.getParsed({name:"main-landing",alias:!0},hx)));a({path:n,replace:!0})},xx=(t,e,a)=>{const n=t.matched.find(t=>t.meta.layout);"back"===n.meta.layout?(Pt["a"].defaults.baseURL=s["b"],Pt["a"].defaults.headers.get={"Cache-Control":"no-cache, no-store, must-revalidate"}):(Pt["a"].defaults.baseURL=s["a"],Pt["a"].defaults.headers.get={}),a()},Ox=async(t,e,a)=>{var n;const{langs:i}=l["a"].getters,s=null===(n=t.query)||void 0===n?void 0:n.lang;i&&s&&Array.isArray(i)&&i.includes(s)&&await l["a"].dispatch(g["s"],s),a()},Ax={authentication:y,authorization:gx,bootstrap:yx,props:Cx,redirect:kx,api:xx,lang:Ox};n["default"].use(A);const Sx=new A({mode:"history",routes:hx});Sx.beforeEach(Ax.bootstrap),Sx.beforeEach(Ax.redirect),Sx.beforeEach(Ax.authentication),Sx.beforeEach(Ax.authorization),Sx.beforeEach(Ax.api),Sx.beforeEach(Ax.lang),Sx.afterEach(Ax.props),_["a"].$on("router:push",t=>Sx.push(t)),_["a"].$on("router:replace",t=>Sx.replace(t)),_["a"].$on("router:go",t=>Sx.go(t));var zx=Sx,jx=a("31bd");Object(jx["sync"])(l["a"],zx);var Ix=a("a584");n["default"].use(Ix["a"],{config:{id:s["k"]}},zx);var Px=a("660e");n["default"].use(Px["a"],{breakpoints:{sm:768,md:992,lg:1200,xl:1/0}
1,defaultBreakpoint:"sm"});var Ex=a("add2"),Tx=a.n(Ex);n["default"].use(Tx.a,{id:s["m"],isProduction:s["n"]});var Nx=a("a8e2");n["default"].use(Nx["a"],{gtmId:s["l"]});var Rx=a("58ca");n["default"].use(Rx["a"]);var Lx=a("9483");Object(Lx["a"])("/app/service-worker.js",{registrationOptions:{scope:"/"},updated(t){setTimeout(()=>{document.dispatchEvent(new CustomEvent("serviceWorkerUpdated",{detail:t}))},5e3)},error(t){console.error("Error during service worker registration:",t)}});var Mx=a("260b"),Dx=(a("0098"),{apiKey:"AIzaSyAx9uOU6awdibE6-HQ28sVTgCcdoOSUWI0",authDomain:"dostartu-push-test.firebaseapp.com",projectId:"dostartu-push-test",storageBucket:"dostartu-push-test.appspot.com",messagingSenderId:"388058786669",appId:"1:388058786669:web:1ba58abb39c8a671010864",measurementId:"G-3HCPKVCFCQ"});Mx["a"].initializeApp(Dx);const $x=Mx["a"].messaging.isSupported()?Mx["a"].messaging():null;var Ux=$x;window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),l["a"].commit(ce["g"],t)}),n["default"].prototype.$messaging=Ux,new n["default"]({router:zx,store:l["a"],render:t=>t("router-view")}).$mount("#app")},5789:function(t,e,a){},"57fd":function(t,e,a){},"58d8":function(t,e,a){"use strict";a("7eb6")},5936:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder overflow-hidden",class:{"input-field--error":t.error}},[e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.isInput}},[t._v(t._s(t.label))]),e("textarea",{staticClass:"input-field__textarea",class:{"
1input-field__textarea--padding-top":!t.label},attrs:{placeholder:t.placeholder,rows:t.rows},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])])},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l={mixins:[r["a"]],props:{rows:{type:Number,required:!0}},computed:Object(s["a"])({},Object(o["c"])(["say"]))},c=l,d=a("2877"),u=Object(d["a"])(c,n,i,!1,null,null,null);e["default"]=u.exports},5967:function(t,e,a){"use strict";a("2a0f")},"59d8":function(t,e,a){t.exports=a.p+"img/settings-icon-white.376b2db6.svg"},"5a59":function(t,e,a){t.exports=a.p+"img/edit-pencil-white.9a548fbe.svg"},"5baf":function(t,e,a){},"5bfe":function(t,e,a){"use strict";a("c393")},"5c21":function(t,e,a){"use strict";a("430b")},"5c70":function(t,e,a){},"5c79":function(t,e,a){"use strict";a("0ca1")},"5cb3":function(t,e,a){"use strict";a("54c3")},"5cf2":function(t,e,a){},"5da6":function(t,e,a){"use strict";a("1061")},"5e93":function(t,e,a){var n=a("24fb"),i=a("1de5"),s=a("5f91");e=n(!1);var o=i(s);e.push([t.i,".filters {\n    margin-top: 24px;\n}\n\n.filters__section {\n    justify-content: start;\n    margin-top: 48px;\n}\n\n.filters__section--first {\n    margin-top: 25px;\n}\n\n.filters__section--last {\n    margin-bottom: 112px;\n}\n\n.filters-datepicker__input {\n    width: 100%;\n    height: 100%;\n    border: none;\n    padding-left: 8px;\n    border-radius: 4px;\n}\n\n.filters-datepicker__calendar-icon {\n    position: absolute;\n    right: 10px;\n    top: 18px;\n}\n\n.filters-datepicker {\n    position: relative;\n    height: 48px;\n    box-sizing: border-box;\n}\n\n.filters-datepicker__input-error input {\n    padding-bottom: 10px;\n}\n\n.filters-datepicker__wrapper-class {\n    height: 100%;\n    margin: 0 4px;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);\n    background-color: var(--white);\n    border-radius: 4px;\n}\n\n.filters-datepicker__wrapper-class>div:first-child {\n    height: 100%;\n}\n\n.filters__bottom-label {\n    position: fixed;\n    bottom: 0;\n    right: 0;\n    left: 0;\n    justify-content: center;\n    background-color: var(--color-white);\n    padding: 12px 0;\n}\n\n.filters__bottom-label .btn {\n    padding: 10px 16px;\n}
1\n\n.items-center {\n    align-items: center;\n}\n\n.home-filter {\n    margin-top: 40px;\n}\n\n.home-filter--desktop {\n    display: none;\n}\n\n.home-filter--other-filters {\n    position: fixed;\n    top: 0;\n    z-index: 9999;\n    background: white;\n    right: 0;\n    left: 0;\n    bottom: 0;\n    overflow: scroll;\n    overscroll-behavior: contain;\n    display: block;\n}\n\n.home-promote__competition-info--bottom {\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n    margin-top: auto;\n}\n\n.home-competitions {\n    margin-top: 40px;\n}\n\n.home-promote {\n    margin-top: -148px;\n    overflow: hidden;\n    max-height: 999px;\n}\n\n.home-promote--person {\n    overflow: visible!important;\n    margin-top: -100px;\n}\n\n.home-promote-enter-active {\n    transition: max-height var(--animation-slow), margin-top var(--animation-slow) 0.1s, opacity var(--animation-fast);\n}\n\n.home-promote-leave-active {\n    transition: max-height var(--animation-slow), margin-top var(--animation-slow), opacity var(--animation-fast);\n}\n\n.home-promote-leave-to, .home-promote-enter {\n    max-height: 0;\n    opacity: 0;\n    margin-top: -4px !important;\n    padding-top: 4px;\n}\n\n.incoming-competitions__listing {\n    margin-top: 40px;\n}\n\n.home-filter__buttons {\n    justify-content: start;\n    margin-top: 16px;\n}\n\n.home-filter__buttons .btn {\n    margin-top: 4px;\n    margin-right: 4px;\n}\n\n.home-filter--hide {\n    display: none;\n}\n\n.home-promote__competition-poster {\n    min-height: 296px;\n    max-height: 296px;\n    width: 208px;\n    border-radius: 4px;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);\n}\n\n.home-promote__competition-poster--skeleton {\n    display: flex;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1), 0 0 2px 0 rgba(0, 0, 0, 0.2);\n    background-color: white\n}\n\n.home-promote__btn {\n    position: absolute;\n    bottom: 180px;\n    width: 32px;\n    height: 32px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    border-radius: 4px;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);\n    background-color: white;\n    cursor: pointer;\n    overflow: visible;\n    display: none;\n    z-index: 20;\n}\n\n.home-promote__btn--high {\n    top: 150px;\n}\n\n.home-promote__btn--left {\n    left: -16px;\n}\n\n.home-promote__btn--right {\n    right: -16px;\n}\n\n.home-top {\n    background-blend-mode: normal, hue;\n    background-image: url("+o+"), linear-gradient(to top, var(--color-charcoal-grey), var(--color-slate-two)), linear-gradient(to bottom, var(--color-black), var(--color-black));\n    background-repeat: no-repeat;\n    background-size: cover;\n    background-position: bottom center;\n    z-index: 1;\n    position: relative;\n    transition: min-height var(--animation-slow);\n}\n\n.home-top--short {\n    min-height: 0;\n}\n\n.home-top--tall {\n    min-height: 525px;\n}\n\n.home-top__counter-enter-active {\n    transition: opacity var(--animation-slow) 0.2s, margin-bottom var(--animation-slow);\n}\n\n.home-top__counter-leave-active {\n    transition: opacity var(--animation-fast), margin-bottom var(--animation-slow);\n}\n\n.home-top__counter-leave-to, .home-top__counter-enter {\n    margin-bottom: -60px;\n    opacity: 0;\n}\n\n.scroll-point {\n    display: none;\n}\n\n.home-top__info {\n    color: white;\n    padding: 24px 8px 0 8px;\n}\n\n.home-promote__competition-info {\n    opacity: 0;\n    transition: opacity var(--animation-slow);\n    height: 100%;\n}\n\n.home-promote__competition {\n    scroll-snap-align: center;\n    cursor: pointer;\n    margin: 0 12px;\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n}\n\n.home-promote__competition--active .home-promote__competition-info {\n    opacity: 1;\n}\n\n.home-promote__competition-title {\n    margin-top: 6px;\n    width: 100%;\n}\n\n.home-promote__competition-date {\n    width: 100%;\n}\n\n.home-promote__competition-place {\n    margin-top: 12px;\n    width: 100%;\n}\n\n.home-promote__competition-price {\n    margin-top: 8px;\n}\n\n.home-promote__competition-hint {\n    margin-top: 20px;\n    display: flex;
1\n    align-items: center;\n    margin-left: 10px;\n    margin-bottom: 20px;\n}\n\n.home-promote__competition-category {\n    font-weight: bold;\n    width: 100%;\n}\n\n.home-promote__carousel {\n    overflow: scroll;\n    flex-wrap: nowrap !important;\n    scroll-snap-type: x mandatory;\n    z-index: 15;\n    position: relative;\n    margin-right: -19px;\n    margin-left: -19px;\n    scrollbar-width: none;\n}\n\n.home-promote__carousel::-webkit-scrollbar {\n    display: none;\n}\n\n.home-promote__carousel-item:first-child {\n    padding-left: calc(50vw - 120px);\n}\n\n.home-promote__carousel-item:last-child {\n    padding-right: calc(50vw - 120px);\n}\n\n.home__organize-button {\n    padding-left: 0;\n}\n\n.incoming-competitions__listing-button {\n    white-space: normal;\n    text-align: center;\n}\n\n@media (min-width: 576px) {\n    .scroll-point {\n        display: block;\n        scroll-snap-align: center;\n    }\n    .home-promote__competition {\n        scroll-snap-align: unset;\n        margin-right: 29px;\n        margin-left: 29px;\n    }\n    .home-promote__carousel-item:last-child .scroll-point {\n        display: none;\n    }\n}\n\n@media (min-width: 768px) {\n    .home-promote__competition-poster {\n        min-height: 330px;\n        max-height: 330px;\n        width: 232px;\n    }\n    .home-promote__competition-hint {\n        margin-bottom: 40px;\n    }\n}\n\n@media (min-width: 992px) {\n    .home__organize-button {\n        padding-left: 15px;\n    }\n    .incoming-competitions__listing--padding {\n        padding-left: 15px;\n    }\n    .home-top__counter {\n        padding-top: 64px;\n        margin-bottom: 64px;\n    }\n    .home-top__counter-leave-to, .home-top__counter-enter {\n        margin-bottom: -197px;\n    }\n    .incoming-competitions__listing {\n        margin-top: 0;\n    }\n    .filters__section--first {\n        margin-top: 0;\n    }\n    .home-competitions {\n        margin-top: 0;\n        padding-left: 15px;\n    }\n    .filters {\n        margin-top: 0;\n    }\n    .home-promote {\n        margin-top: -110px;\n    }\n    .home-promote__btn {\n        display: flex;\n    }\n    .home-top--tall {\n        min-height: 485px;\n    }\n    .home-top__info {\n        padding: 0;\n        font-size: 48px;\n    }\n    /* .home-top__logo {\n        margin-top: 64px;\n    } */\n    .home-promote__carousel {\n        margin: 0;\n        padding: 0;\n    }\n    .home-promote__carousel-item {\n        scroll-snap-align: start;\n    }\n    .home-promote__carousel-item:first-child {\n        padding-left: 0;\n    }\n    .home-promote__carousel-item:last-child {\n        padding-right: 0;\n        scroll-snap-align: end;\n    }\n    .scroll-point {\n        display: none;\n    }\n    .home-filter {\n        display: none;\n    }\n    .home-filter--desktop {\n        display: block;\n    }\n    .filters__bottom-label {\n        display: none;\n    }\n    .incoming-competitions {\n        margin-top: 64px;\n    }\n}",""]),t.exports=e},"5eb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOySURBVHgB7VldThsxEJ6EAkK85AZdTtC9AcsDEvBCOEHhBNATEE7Q5gSEEzRPgMQD4QSkN9jeIE8ggZL0+zbjKGqx4/3L9mE/yVnHstcz9njm86xIjRo1alSJhhSEg4ODoNFotFG+TKfTqNlstvBsJZM0GiPUYxb8vbm7u+tLQfgkOXF0dHQKwb5CyMi0oS5om/dRRUK0h6gHqFevAFacq3yNKleeTSOU/mQyeUL78OXlJR4MBmyTw8PDC/T5zj54nkmBSK1AFEWt7e3tS6zkBf+rWXRfX197RuC/AaHPte8VzGcoBSLVGaCdY3V/ohqijFSgH64xNDE8rqko+u5IwfDeARX+EdVAD+Te/f197DH0mD9UVkpA06cTzcYIjzJMITzNh2NkPB4XajoGXgrQ5kVXHof0xFd4AmNobvLw8FCNAuomeWBHaVZ+VfDZAa5+YsMZhY/5g4X4LCXAqYB6kEA9iNPbOJCYDt5xIiXAqcCi/5aMwNgnrR5LCbAqQLepB3AE0+lJRmxubvbIhUg1GJGlYFgVIDHTai7e0u/3R/BcZ/rOy/39/dB3LEw4RHmG4m1bH5cCu3yS20hOKPvsorTW19cffXYCgp9DBsYekkCr+VkjMQMQGWVRAej29vYCQpErXZLYUUDUr97f34cmRhhKLrPzEi0w2kjSKiCzqCuYIJaCACU6EDKmKWmEvsaOcLU/6p5wLWWxLds7rSZkLiM2hpkVdAgkdXou+spmzZyxtn0DHd9ZcN1WBXJfaLJCPVtPcsJ1iJOVJ5GTitBut83cVitwmVAyCDYaSEV4e3sLROam9SFcCiTuEwp4++0SEKosv20dXFTCuM9dqQ7J3DDnga2DawdMBG5XdQ4MG1iQ5R9YFSB1xsABqq2tra1TWTH0HsLc0tBF451sFINv+DSsdMUw95Cuq5NTAfpq9QBBGUzSBqUZyT1kGRNeeiPDS+ZMklxFSobyoY7OvfQeslQBrMBAlEkyM1GmEiZ1o7bf9bmHeGUlNjY2OjJzq0liqwwlFpJmiekg09fxGeedmdOtfVQWyfRKYRmKHEkzvx0g1K3umUONCZ+LONg8sGtra8+SIWlGpP4+QIIFjtJB1bjWGOUKXL/n+w4GRsYWdc8B22jzNJu09D3zBw5s++nCxcR8xGDEfOItixchIwwFJinESofYuV1GWHPfUJM5U2eRGrm/0FARCMWVTEX6GOUZKPNkPIgyPjGRgAVa5nye9JykDM9f3Kn/LUVZo0aNGtnwB+0QF3J4yfcsAAAAAElFTkSuQmCC"},"5f45":function(t,e,a){t.exports=a.p+"img/[email protected]"},"5f6d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder",class:{"
1input-field--error":t.error}},[t.error?t._e():e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.value}},[t._v(t._s(t.label))]),e("input",{staticClass:"input-field__input",class:{"input-field__input--padding-bottom":t.error,"input-field__input--padding-top":t.isInputValid},attrs:{placeholder:t.label,type:t.hidden?"password":"text"},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))]),e("i",{staticClass:"input-field__icon",class:t.hidden?"far fa-eye":"far fa-eye-slash",on:{click:function(e){t.hidden=!t.hidden}}})])},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l={mixins:[r["a"]],data(){return{hidden:!0}},computed:Object(s["a"])({},Object(o["c"])(["say"]))},c=l,d=a("2877"),u=Object(d["a"])(c,n,i,!1,null,null,null);e["default"]=u.exports},"5f91":function(t,e,a){t.exports=a.p+"img/photo-home.9a719e5e.png"},6:function(t,e){},6048:function(t,e,a){},"61b9":function(t,e,a){},"62f5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAP6SURBVHgB7VnbUdtAFF2b8P5xOpAriKkg4oMZHh9xKkBUgFMBooJABTYVIH6AgQ+UCnAqQB3EXzDDyzlHrDKbtWztyrIcJj4zYmXtan0fe8+91wgxwwz/Nypiitjc3HSr1epuv993K5WKw2e4Dy4uLr6a7vFBTAEQ3IHAbVwuP2NUpxvCAlVRMra3txtzc3O3UvgersPX19c6Pnc5//Ly8s1mv1KPEC1P4XFMarhOHh4eWmEYUgkq1ud4fn5uJVOpHsB5v5HCH+Oce4nwKlzXrQkLlKbA1tZWE4MD4SNY3tfn8TzkuLS09G/GAM74F44Q9DDN8pj/EQtUrbZtvFCaAhD8p3gL2jBtfmFh4Yjewa2zsrJyKz0WHynSLWKEz07198YKYm6+vLzs4fYzrkbC5RJklS6EOsN5D0z2k/R6o+3zF/Qgz60ALUR3MygNlkegyvXLy8vIYC0V8bD3vpA5gfGR5IxCFNjZ2fmOTVvJ5hjOmEFVAcn3EJpeOZAW7T09Pa1fX193hSW4FwbSbxfeXFPnrDMxNjuQwvcYkNjwKG0dLBUfoWazGTw+Pvq435+fn7+BdddMPaEg9kSS7FRYKQDhPQy+eAvGdQifac0gCLi2hSNXgwC7LCH4rjCEZKQD3j8/P5/p87YsFG9Ey0sLG2NxcbEF4Xs8y2QV0/dWV1f5nXH+uLq6GiAD4xiQ1mfQRrB8XeQA9vCFNIKCkWyFePuFOYF4Sj16Nh74k4hETkCITspjnm8PnjmFgnekUnUSxR2DdiiDGSuQcDM2tGaRBKoQpENJiWtQbC9JYqDP242NjYb6zqjjaqwAviDeNA8NavtEUtgYFA5CdhAjtPQxrppkK8dkv5ExQAZAWt/HF3qJB2zLXVuArTpkK+YXxEQmWw31AIJnFwxwh1tfafciMWHYslWqAggmWr0ja/eQZcD9/f3HvOxjA+YN9guxcOiXs9YPJDJZUPmkLoCZ1hclg2wF4Um3btbaAQ/wRVmgdXDefTEFKGzlZK0dUADWj9kGVjgR7wADCiR0CSuEYkqQ1SdlyaTsoSxk21wXjKHVp440BSL+sW2ui0JW9akjTYH47LMREVNAVvWpY0ABNtdJImHzIizBgoyXsAQtj/faSrNk1DOklgWyJ23Ljx0ykmlQ2/7CxrzDhAWDtSR9x82Sab8x9EtQk7SUnJCAlWFdE/hOClxPU0Cf195z1GfM+rj2bFrOoS0le11YJ2BWxvUJjxoyO+twNCGiUfPKuvhXaa7HGNp4WcXInlhawhMWMK2Xiqqrxv7/QFaFWkYFWyjyslBeTOI/NI4oEWP/uJtl8Ul7pAgPOOoHUxYqCoUfoTK6NhUzFpphhneO3xhcNS845yc0AAAAAElFTkSuQmCC"},"62f9":function(t,e,a){},"634b":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".remote-competition__title {\n    margin-bottom: 16px;\n    margin-top: 24px;\n}\n\n/* person style  */\n\n.person__birthdate {\n    margin-top: 16px;\n    line-height: 1.5;\n}\n\n.person__location {\n    margin-top: 16px;\n    line-height: 1.5;\n}\n\n.person__email {\n    margin-top: 16px;\n    line-height: 1.5;\n}\n\n.person__classification {\n    margin-top: 16px;\n    line-height: 1.5;\n}\n\n/* /person style  */\n\n.remote-competition__box {\n    padding: 16px;\n    margin-top: 24px;\n}\n\n.remote-competition__box-time {\n    margin-top: 16px;\n}\n\n.remote-competition__box-file {\n    margin-top: 16px;\n}\n\n.remote-competition__box-description {\n    margin-top: 16px;\n}\n\n.remote-competition__hint {\n    line-height: 1.43;\n    margin-bottom: 16px;\n}\n\n.remote-competition__button {\n    margin-top: 24px;\n}\n\n.remote-competition__box-distance {\n    margin-top: 16px;\n}\n\n/* Remote info with button from results list */\n\n.results__remote {\n    padding: 16px;\n}\n\n.results__remote-img {\n    height: auto;\n    width: 100%;\n    max-height: 121px;\n}\n\n.results__remote-description {\n    margin-top: 16px;\n    line-height: 1.5;\n}\n\n.results__remote-header {\n    font-weight: 600;\n    font-size: 16px;\n}\n\n@media(min-width: 768px) {\n    .results__remote-description {\n        margin-top: 0;\n        display: flex;\n        flex-direction: column;\n        justify-content: center;\n    }\n}\n\n/* Header from results list */\n\n.results-header {\n    background-color: rgba(84, 110, 122, 0.1);\n    padding: 24px 0;\n    margin-bottom: 16px;\n}\n\n.results-header__select {\n    margin-top: 16px;\n    background-color: white;\n    height: 48px;\n}\n\n.results-header__select .vs__dropdown-toggle {\n    height: 100%;\n    padding-bottom: 0;\n    border: 1px solid var(--color-slate-two)\n}\n\n.results-header__select .vs__selected {\n    height: 100%;\n    margin-top: 0;\n}\n\n.results-header__search-input {\n    margin-top: 16px;\n}\n\n@media (min-width: 992px) {\n    .remote-competition__box-distance {\n        margin-top: 32px;\n    }\n    .remote-competition__button {\n        margin-top: 64px;\n    }
1\n    .remote-competition__box {\n        margin-top: 0;\n    }\n    .remote-competition__title {\n        margin: 40px 0;\n    }\n    .remote-competition__box-file {\n        flex-direction: row-reverse;\n        justify-content: flex-end;\n    }\n    .remote-competition__box-description {\n        flex-direction: row-reverse;\n        justify-content: flex-end;\n    }\n    .remote-competition__hint {\n        margin-bottom: 0;\n        margin-left: 30px\n    }\n    .remote-competition__box {\n        padding: 32px 98px;\n    }\n    .remote-competition__box-time {\n        margin-top: 32px;\n    }\n    .remote-competition__box-file {\n        margin-top: 32px;\n    }\n    .remote-competition__box-description {\n        margin-top: 32px;\n    }\n}",""]),t.exports=e},"639b":function(t,e,a){},"63e9":function(t,e,a){t.exports=a.p+"img/[email protected]"},6583:function(t,e,a){"use strict";a.r(e);var n=a("5530"),i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row input-time--margin-right"},[e("div",{staticClass:"col-3"},[e("div",{staticClass:"input-time__field"},[e("base-input-text",{attrs:{value:t.value.hours,hint:"00",label:t.say.hours,error:t.error,"without-error-message":""},on:{input:function(e){return t.$emit("input",Object(n["a"])(Object(n["a"])({},t.value),{},{hours:e}))},"update:error":function(e){return t.$emit("update:error",e)}}})],1)]),e("div",{staticClass:"col-3"},[e("div",{staticClass:"input-time__field"},[e("base-input-text",{attrs:{value:t.value.minutes,hint:"00",label:t.say.minutes,error:t.error,"without-error-message":""},on:{input:function(e){return t.$emit("input",Object(n["a"])(Object(n["a"])({},t.value),{},{minutes:e}))},"update:error":function(e){return t.$emit("update:error",e)}}})],1)]),e("div",{staticClass:"col-3"},[e("div",{staticClass:"input-time__field"},[e("base-input-text",{attrs:{value:t.value.seconds,hint:"00",label:t.say.seconds,error:t.error,"without-error-message":""},on:{input:function(e){return t.$emit("input",Object(n["a"])(Object(n["a"])({},t.value),{},{seconds:e}))},"update:error":function(e){return t.$emit("update:error",e)}}})],1)]),e("div",{staticClass:"col-3"},[e("div",{staticClass:"input-time__field"},[e("base-input-text",{attrs:{value:t.value.milliseconds,hint:"00",label:t.say.centyseconds,error:t.error,"without-error-message":""},on:{input:function(e){return t.$emit("input",Object(n["a"])(Object(n["a"])({},t.value),{},{milliseconds:e}))},"update:error":function(e){return t.$emit("update:error",e)}}})],1)])])},s=[],o=a("2f62"),r={props:{value:{type:Object,default:()=>{}},error:{type:String,default:""}},computed:Object(n["a"])({},Object(o["c"])(["say"]))},l=r,c=a("2877"),d=Object(c["a"])(l,i,s,!1,null,null,null);e["default"]=d.exports},"65dbe":function(t,e,a){},"65ed":function(t,e,a){},"662d":function(t,e,a){"use strict";a("a0c1")},"666c":function(t,e,a){"use strict";a("8848")},6759:function(t,e,a){},"68da":function(t,e,a){},6961:function(t,e,a){},"6a02":function(t,e,a){t.exports=a.p+"img/sign-out.ba5b84be.svg"},"6abe":function(t,e,a){"use strict";a("c3d7")},"6ac7":function(t,e,a){},"6ad4":function(t,e,a){"use strict";a("5534")},"6b76":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\r\n\r\n/* Document\r\n   ========================================================================== */\r\n\r\n/**\r\n * 1. Correct the line height in all browsers.\r\n * 2. Prevent adjustments of font size after orientation changes in iOS.\r\n */\r\n\r\nhtml {\r\n  line-height: 1.15; /* 1 */\r\n  -webkit-text-size-adjust: 100%; /* 2 */\r\n}\r\n\r\n/* Sections\r\n   ========================================================================== */\r\n\r\n/**\r\n * Remove the margin in all browsers.\r\n */\r\n\r\nbody {\r\n  margin: 0;\r\n}\r\n\r\n/**\r\n * Render the `main` element consistently in IE.\r\n */\r\n\r\nmain {\r\n  display: block;\r\n}\r\n\r\n/**\r\n * Correct the font size and margin on `h1` elements within `section` and\r\n * `article` contexts in Chrome, Firefox, and Safari.\r\n */\r\n\r\nh1 {\r\n  font-size: 2em;\r\n  margin: 0.67em 0;\r\n}\r\n\r\n/* Grouping content\r\n   ========================================================================== */\r\n\r\n/**\r\n * 1. Add the correct box sizing in Firefox.\r\n * 2. Show the overflow in Edge and IE.\r\n */\r\n\r\nhr {\r\n  box-sizing: content-box; /* 1 */\r\n  height: 0; /* 1 */\r\n  overflow: visible; /* 2 */\r\n}\r\n\r\n/**\r\n * 1. Correct the inheritance and scaling of font size in all browsers.\r\n * 2. Correct the odd `em` font sizing in all browsers.\r\n */\r\n\r\npre {\r\n  font-family: monospace, monospace; /* 1 */\r\n  font-size: 1em; /* 2 */\r\n}\r\n\r\n/* Text-level semantics\r\n   ========================================================================== */\r\n\r\n/**\r\n * Remove the gray background on active links in IE 10.\r\n */\r\n\r\na {\r\n  background-color: transparent;\r\n}\r\n\r\n/**\r\n * 1. Remove the bottom border in Chrome 57-\r\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\r\n */\r\n\r\nabbr[title] {\r\n  border-bottom: none; /* 1 */\r\n  text-decoration: underline; /* 2 */\r\n  -webkit-text-decoration: underline dotted;\r\n          text-decoration: underline dotted; /* 2 */\r\n}\r\n\r\n/**\r\n * Add the correct font weight in Chrome, Edge, and Safari.\r\n */\r\n\r\nb,\r\nstrong {\r\n  font-weight: bolder;\r\n}\r\n\r\n/**\r\n * 1. Correct the inheritance and scaling of font size in all browsers.\r\n * 2. Correct the odd `em` font sizing in all browsers.\r\n */\r\n\r\ncode,\r\nkbd,\r\nsamp {\r\n  font-family: monospace, monospace; /* 1 */\r\n  font-size: 1em; /* 2 */\r\n}\r\n\r\n/**\r\n * Add the correct font size in all browsers.\r\n */\r\n\r\nsmall {\r\n  font-size: 80%;\r\n}\r\n\r\n/**\r\n * Prevent `sub` and `sup` elements from affecting the line height in\r\n * all browsers.\r\n */\r\n\r\nsub,\r\nsup {\r\n  font-size: 75%;\r\n  line-height: 0;\r\n  position: relative;\r\n  vertical-align: baseline;\r\n}\r\n\r\nsub {\r\n  bottom: -0.25em;\r\n}\r\n\r\nsup {\r\n  top: -0.5em;\r\n}\r\n\r\n/* Embedded content\r\n   ========================================================================== */\r\n\r\n/**\r\n * Remove the border on images inside links in IE 10.\r\n */\r\n\r\nimg {\r\n  border-style: none;\r\n}\r\n\r\n/* Forms\r\n   ========================================================================== */\r\n\r\n/**\r\n * 1. Change the font styles in all browsers.\r\n * 2. Remove the margin in Firefox and Safari.\r\n */\r\n\r\nbutton,\r\ninput,\r\noptgroup,\r\nselect,\r\ntextarea {\r\n  font-family: inherit; /* 1 */\r\n  font-size: 100%; /* 1 */\r\n  line-height: 1.15; /* 1 */\r\n  margin: 0; /* 2 */\r\n}\r\n\r\n/**\r\n * Show the overflow in IE.\r\n * 1. Show the overflow in Edge.\r\n */\r\n\r\nbutton,\r\ninput { /* 1 */\r\n  overflow: visible;\r\n}\r\n\r\n/**\r\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\r\n * 1. Remove the inheritance of text transform in Firefox.\r\n */\r\n\r\nbutton,\r\nselect { /* 1 */\r\n  text-transform: none;\r\n}\r\n\r\n/**\r\n * Correct the inability to style clickable types in iOS and Safari.\r\n */\r\n\r\nbutton,\r\n[type="button"],\r\n[type="reset"],\r\n[type="submit"] {\r\n  -webkit-appearance: button;\r\n}\r\n\r\n/**\r\n * Remove the inner border and padding in Firefox.\r\n */\r\n\r\nbutton::-moz-focus-inner,\r\n[type="button"]::-moz-focus-inner,\r\n[type="reset"]::-moz-focus-inner,\r\n[type="submit"]::-moz-focus-inner {\r\n  border-style: none;\r\n  padding: 0;\r\n}\r\n\r\n/**\r\n * Restore the focus styles unset by the previous rule.\r\n */\r\n\r\nbutton:-moz-focusring,\r\n[type="button"]:-moz-focusring,\r\n[type="reset"]:-moz-focusring,\r\n[type="submit"]:-moz-focusring {\r\n  outline: 1px dotted ButtonText;\r\n}\r\n\r\n/**\r\n * Correct the padding in Firefox.\r\n */\r\n\r\nfieldset {\r\n  padding: 0.35em 0.75em 0.625em;\r\n}\r\n\r\n/**\r\n * 1. Correct the text wrapping in Edge and IE.\r\n * 2. Correct the color inheritance from `fieldset` elements in IE.\r\n * 3. Remove the padding so developers are not caught out when they zero out\r\n *    `fieldset` elements in all browsers.\r\n */\r\n\r\nlegend {\r\n  box-sizing: border-box; /* 1 */\r\n  color: inherit; /* 2 */\r\n  display: table; /* 1 */\r\n  max-width: 100%; /* 1 */\r\n  padding: 0; /* 3 */\r\n  white-space: normal; /* 1 */\r\n}\r\n\r\n/**\r\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\r\n */\r\n\r\nprogress {\r\n  vertical-align: baseline;\r\n}\r\n\r\n/**\r\n * Remove the default vertical scrollbar in IE 10+.\r\n */\r\n\r\ntextarea {\r\n  overflow: auto;\r\n}\r\n\r\n/**\r\n * 1. Add the correct box sizing in IE 10.\r\n * 2. Remove the padding in IE 10.\r\n */\r\n\r\n[type="checkbox"],\r\n[type="radio"] {\r\n  box-sizing: border-box; /* 1 */\r\n  padding: 0; /* 2 */\r\n}\r\n\r\n/**\r\n * Correct the cursor style of increment and decrement buttons in Chrome.\r\n */\r\n\r\n[type="number"]::-webkit-inner-spin-button,\r\n[type="number"]::-webkit-outer-spin-button {\r\n  height: auto;\r\n}\r\n\r\n/**\r\n * 1. Correct the odd appearance in Chrome and Safari.\r\n * 2. Correct the outline style in Safari.\r\n */\r\n\r\n[type="search"] {\r\n  -webkit-appearance: textfield; /* 1 */\r\n  outline-offset: -2px; /* 2 */\r\n}\r\n\r\n/**\r\n * Remove the inner padding in Chrome and Safari on macOS.\r\n */\r\n\r\n[type="search"]::-webkit-search-decoration {\r\n  -webkit-appearance: none;\r\n}\r\n\r\n/**\r\n * 1. Correct the inability to style clickable types in iOS and Safari.\r\n * 2. Change font properties to `inherit` in Safari.\r\n */\r\n\r\n::-webkit-file-upload-button {\r\n  -webkit-appearance: button; /* 1 */\r\n  font: inherit; /* 2 */\r\n}\r\n\r\n/* Interactive\r\n   ========================================================================== */\r\n\r\n/*\r\n * Add the correct display in Edge, IE 10+, and Firefox.\r\n */\r\n\r\ndetails {\r\n  display: block;\r\n}\r\n\r\n/*\r\n * Add the correct display in all browsers.\r\n */\r\n\r\nsummary {\r\n  display: list-item;\r\n}\r\n\r\n/* Misc\r\n   ========================================================================== */\r\n\r\n/**\r\n * Add the correct display in IE 10+.\r\n */\r\n\r\ntemplate {\r\n  display: none;\r\n}\r\n\r\n/**\r\n * Add the correct display in IE 10.\r\n */\r\n\r\n[hidden] {\r\n  display: none;\r\n}\r\n',""]),t.exports=e},"6bca":function(t,e,a){t.exports=a.p+"img/calendar.f7dc82b0.svg"},"6be5":function(t,e,a){},"6beb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMPSURBVHgB7ZhJjtpAFIYfqBHThtzAuQGcIGaBxLAIN8B9giYnaPcJOn0CnBMENoBgEW4QbgBH6BULxvzPKksWoezyRFpKfVJhG8r2G+oNBZFGo9Fo/mdylAKmadbK5bKF0y8Y9VwuZ/h+XvO4XC6T2Ww2ppRJrECn0+nn8/kRBKwpTN+ez+fmfD7fUkokUqDX671C8CGf47jCYYLj2C9gt9utQ2j2yrPwzPvhcGgul8s1pUBsBSDYMw42CwShX7A8vgfN7/f7tf1+z/Of+B4o1UjDE7EUgPAWDiMWBKM5nU6VrYkl58ATA/YYlG5SQvIUD7Y+L5uXKMIzxWJxCAXeMcx2u21SQiJ7wLM+hN/Cgp8pBniGTcIIPmJlqzge+M
1ofbH2KCda/c+PrOoYFz/yEght4xyAFIivg5fjT6RQ7i/iDF0swxwOnDSj2yJ7FuYHU/LvVatXDnhVZAbzAfWjSNMiCCmFdOJagmIMYaeDyDaNWKBR+hXlCKQa40lYqlSe80PI8IKyWGarZKtQDKFaDarW6wantCe+3XFaoZqtABRBMbHWH2wS2BLcBu93uU9zsE4XxeMwF8s0VMp8fyOY9yH7gtQftbTyEL7nS2nRnOFtBeE63pmyO1AN8o2jQHKx3m/4BvmxlyOZIFYD13WwDK/ygD4xUAS9dwgorUoCLDw9KEe5khSzSlB2ahTiFkhoGBbg6Jq4CWA1SBR4Cbt5iGKVSiR+ykk0SVjd81xz1W8RNokwlDOf2S8fjcSKbF+QBd+3zRiRgDoksFfpdVFB7+L0G15zFYiFt7qTVlDcg2DltRCayYdHA5k1YXlqhvfgI84yo+q84tUhh4yP1ABcSNGzfxKUNAUZBFfG6t7mBQQExwnWHd3mi6lskNkthu7bQfgY9ydBXEzyU1/h1jFzff+t3rvoYjypbztAsxHtdeKKBB3JMrMULSJWwGPHOhfccble4eUvzn4tIyOoBx4gXJ2nyQOlj3Poyqw42tZ4+bK1nRdx/Jf4iq3pwd7Ja6zJSj4F77NY0Go1Go9F8FP4Aw3yxOa90rCMAAAAASUVORK5CYII="},"6bf2":function(t,e,a){},"6c33":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"f",(function(){return s})),a.d(e,"i",(function(){return o})),a.d(e,"j",(function(){return r})),a.d(e,"l",(function(){return l})),a.d(e,"n",(function(){return c})),a.d(e,"q",(function(){return d})),a.d(e,"r",(function(){return u})),a.d(e,"s",(function(){return p})),a.d(e,"t",(function(){return m})),a.d(e,"w",(function(){return f})),a.d(e,"A",(function(){return h})),a.d(e,"D",(function(){return b})),a.d(e,"G",(function(){return _})),a.d(e,"N",(function(){return v})),a.d(e,"O",(function(){return g})),a.d(e,"S",(function(){return y})),a.d(e,"Q",(function(){return C})),a.d(e,"K",(function(){return w})),a.d(e,"Y",(function(){return k})),a.d(e,"Z",(function(){return x})),a.d(e,"cb",(function(){return O})),a.d(e,"ib",(function(){return A})),a.d(e,"lb",(function(){return S})),a.d(e,"kb",(function(){return z})),a.d(e,"hb",(function(){return j})),a.d(e,"mb",(function(){return I})),a.d(e,"nb",(function(){return P})),a.d(e,"ob",(function(){return E})),a.d(e,"pb",(function(){return T})),a.d(e,"Sc",(function(){return N})),a.d(e,"Tc",(function(){return R})),a.d(e,"sb",(function(){return L})),a.d(e,"tb",(function(){return M})),a.d(e,"ub",(function(){return D})),a.d(e,"vb",(function(){return $})),a.d(e,"yb",(function(){return U})),a.d(e,"Bb",(function(){return B})),a.d(e,"xb",(function(){return F})),a.d(e,"Cb",(function(){return q})),a.d(e,"Eb",(function(){return H})),a.d(e,"Ab",(function(){return G})),a.d(e,"Lb",(function(){return W})),a.d(e,"Ub",(function(){return V})),a.d(e,"Wb",(function(){return K})),a.d(e,"Hb",(function(){return Z})),a.d(e,"Jb",(function(){return Y})),a.d(e,"Ib",(function(){return Q})),a.d(e,"dc",(function(){return X})),a.d(e,"cc",(function(){return J})),a.d(e,"gc",(function(){return tt})),a.d(e,"ic",(function(){return et})),a.d(e,"jc",(function(){return at}
1)),a.d(e,"mc",(function(){return nt})),a.d(e,"kc",(function(){return it})),a.d(e,"pc",(function(){return st})),a.d(e,"qc",(function(){return ot})),a.d(e,"nc",(function(){return rt})),a.d(e,"wc",(function(){return lt})),a.d(e,"yc",(function(){return ct})),a.d(e,"zc",(function(){return dt})),a.d(e,"Dc",(function(){return ut})),a.d(e,"Ec",(function(){return pt})),a.d(e,"Gc",(function(){return mt})),a.d(e,"Hc",(function(){return ft})),a.d(e,"Fc",(function(){return ht})),a.d(e,"Ic",(function(){return bt})),a.d(e,"Mc",(function(){return _t})),a.d(e,"Bc",(function(){return vt})),a.d(e,"Rb",(function(){return gt})),a.d(e,"Nc",(function(){return yt})),a.d(e,"Oc",(function(){return Ct})),a.d(e,"Pc",(function(){return wt})),a.d(e,"Qc",(function(){return kt})),a.d(e,"Uc",(function(){return xt})),a.d(e,"Vc",(function(){return Ot})),a.d(e,"Wc",(function(){return At})),a.d(e,"Zc",(function(){return St})),a.d(e,"dd",(function(){return zt})),a.d(e,"Rc",(function(){return jt})),a.d(e,"ed",(function(){return It})),a.d(e,"fd",(function(){return Pt})),a.d(e,"gd",(function(){return Et})),a.d(e,"jd",(function(){return Tt})),a.d(e,"id",(function(){return Nt})),a.d(e,"kd",(function(){return Rt})),a.d(e,"ld",(function(){return Lt})),a.d(e,"md",(function(){return Mt})),a.d(e,"od",(function(){return Dt})),a.d(e,"wd",(function(){return $t})),a.d(e,"vd",(function(){return Ut})),a.d(e,"g",(function(){return Bt})),a.d(e,"qb",(function(){return Ft})),a.d(e,"fc",(function(){return qt})),a.d(e,"ec",(function(){return Ht})),a.d(e,"bc",(function(){return Gt})),a.d(e,"ac",(function(){return Wt})),a.d(e,"E",(function(){return Vt})),a.d(e,"P",(function(){return Kt})),a.d(e,"Xb",(function(){return Zt})),a.d(e,"hc",(function(){return Yt})),a.d(e,"ud",(function(){return Qt})),a.d(e,"nd",(function(){return Xt})),a.d(e,"jb",(function(){return Jt})),a.d(e,"db",(function(){return te})),a.d(e,"zb",(function(){return ee})),a.d(e,"x",(function(){return ae})),a.d(e,"c",(function(){return ne})),a.d(e,"B",(function(){return ie})),a.d(e,"Gb",(function(){return se})),a.d(e,"Db",(function(){return oe})),a.d(e,"b",(function(){return re})),a.d(e,"pd",(function(){return le})),a.d(e,"Tb",(function(){return ce})),a.d(e,"Ob",(function(){return de})),a.d(e,"Nb",(function(){return ue})),a.d(e,"Mb",(function(){return pe})),a.d(e,"Pb",(function(){return me})),a.d(e,"Fb",(function(){return fe})),a.d(e,"L",(function(){return he})),a.d(e,"hd",(function(){return be})),a.d(e,"Zb",(function(){return _e})),a.d(e,"U",(function(){return ve})),a.d(e,"V",(function(){return ge})),a.d(e,"k",(function(){return ye})),a.d(e,"R",(function(){return Ce})),a.d(e,"o",(function(){return we})),a.d(e,"p",(function(){return ke})),a.d(e,"oc",(function(){return xe})),a.d(e,"e",(function(){return Oe})),a.d(e,"h",(function(){return Ae})),a.d(e,"I",(function(){return Se})),a.d(e,"Yc",(function(){return ze})),a.d(e,"Xc",(function(){return je})),a.d(e,"ab",(function(){return Ie})),a.d(e,"fb",(function(){return Pe})),a.d(e,"H",(function(){return Ee})),a.d(e,"m",(function(){return Te})),a.d(e,"lc",(function(){return Ne})),a.d(e,"eb",(function(){return Re})),a.d(e,"u",(function(){return Le})),a.d(e,"z",(function(){return Me})),a.d(e,"Qb",(function(){return De})),a.d(e,"C",(function(){return $e})),a.d(e,"bb",(function(){return Ue})),a.d(e,"y",(function(){return Be})),a.d(e,"sc",(function(){return Fe})),a.d(e,"Sb",(function(){return qe})),a.d(e,"v",(function(){return He})),a.d(e,"F",(function(){return Ge})),a.d(e,"Vb",(function(){return We})),a.d(e,"vc",(function(){return Ve})),a.d(e,"Kb",(function(){return Ke})),a.d(e,"Lc",(function(){return Ze})),a.d(e,"T",(function(){return Ye})),a.d(e,"yd",(function(){return Qe})),a.d(e,"Kc",(function(){return Xe})),a.d(e,"Jc",(function(){return Je})),a.d(e,"xd",(function(){return ta})),a.d(e,"xc",(function(){return ea})),a.d(e,"M",(function(){return aa})),a.d(e,"td",(function(){return na})),a.d(e,"rb",(function(){return ia})),a.d(e,"Ac",(function(){return sa})),a.d(e,"cd",(function(){return oa})),a.d(e,"bd",(function(){return ra})),a.d(e,"X",(function(){return la})),a.d(e,"W",(function(){return ca})),a.d(e,"sd",(function(){return da})),a.d(e,"Yb",(function(){return ua})),a.d(e,"wb",(function(){return pa})),a.d(e,"Cc",(function(){return ma})),a.d(e,"tc",(function(){return fa})),a.d(e,"uc",(function(){return ha})),a.d(e,"J",(function(){return ba})),a.d(e,"rd",(function(){return _a})),a.d(e,"qd",(function(){return va})),a.d(e,"gb",(function(){return ga})),a.d(e,"ad",(function(){return ya})),a.d(e,"rc",(function(){return Ca}));
1const n="ADD_CHECKPOINT_GROUP",i="ADD_OPERATOR_DEVICE",s="ADD_STOPER_MEASURE",o="AUTOCOMPLETE_COMPETITION_NAME",r="AUTOCOMPLETE_COMPETITION_PLAYER",l="BOOTSTRAP",c="BOOTSTRAP_MINISITE",d="BOOTSTRAP_STOPER",u="BOOTSTRAP_STOPER_SETTING",p="CHANGE_LANG",m="CONTINUE_VIA_FACEBOOK",f="CREATE_CHECKPOINT",h="CREATE_DEVICE",b="CREATE_GATE",_="CREATE_MEASURE",v="CREATE_RESULT",g="CREATE_SESSION",y="CREATE_USER_CHILD",C="CREATE_USER",w="CREATE_PLAYER",k="DECLARE_RESULT",x="DELETE_CHECKPOINT",O="DELETE_GATE",A="DELETE_SESSION",S="DELETE_USER_CHILD",z="DELETE_USER",j="DELETE_PLAYER",I="DISABLE_CHECKPOINT",P="DISABLE_FAMILY",E="ENABLE_CHECKPOINT",T="ENABLE_FAMILY",N="SEARCH_COMPETITIONS_CAROUSEL",R="SEARCH_COMPETITIONS_LIST",L="LOGIN_USER",M="LOGOUT_USER",D="MOVE_CHECKPOINT_GROUP",$="READ_ACCESS_TOKEN",U="READ_CLASSIFICATION_CHECKPOINTS",B="READ_CLASSIFICATION_PLAYERS",F="READ_CLASSIFICATION",q="READ_CLASSIFICATION_RESULTS",H="READ_CLASSIFICATION_RESULTS_POSITIONS",G="READ_CLASSIFICATION_MEASURES",W="READ_COMPETITION_CLASSIFICATIONS",V="READ_COMPETITION_ORGANIZER",K="READ_COMPETITION_PLAYERS",Z="READ_COMPETITION",Y="READ_COMPETITIONS_COUNT",Q="READ_COMPETITIONS",X="READ_GATE_MEASURES",J="READ_GATE",tt="READ_LANGS",et="READ_MESSAGES",at="READ_NEXT_IN_CYCLE_COMPETITIONS",nt="READ_OPERATOR_DEVICES",it="READ_OPERATOR",st="READ_ORGANIZER",ot="READ_ORGANIZER_LAYOUT",rt="READ_OPERATOR_LAYOUT",lt="READ_PLAYER",ct="READ_PLAYER_CYCLE",dt="READ_PLAYER_SHOP",ut="READ_USER_CHILD",pt="READ_USER_CHILDREN",mt="READ_USER_COMPETITION_PLAYERS",ft="READ_USER_COMPETITION_POLICIES_PDF",ht="READ_USER_COMPETITIONS",bt="READ_USER_ID",_t="READ_USER_PARENTS",vt="READ_USER",gt="READ_COMPETITION_GATES",yt="REGISTER_USER",Ct="REMOVE_CHECKPOINT_GROUP",wt="RESET_PASSWORD",kt="RESET_PASSWORD_LINK",xt="SELECT_CHECKPOINT_GROUP_DEVICE",Ot="SELECT_STOPER_GATE",At="SEND_CONTACT_MAIL",St="SEND_PAYLINK_MAIL",zt="START_STOPER",jt="RESET_STOPER",It="SWAP_STOPER_MEASURES",Pt="TEARDOWN_STOPER",Et="TEARDOWN_STOPER_SETTING",Tt="UPDATE_CHECKPOINT_GROUP",Nt="UPDATE_CHECKPOINT",Rt="UPDATE_CLASSIFICATION",Lt="UPDATE_COMPETITION",Mt="UPDATE_GATE",Dt="UPDATE_MEASURE",$t="UPDATE_USER_CHILD",Ut="UPDATE_USER",Bt="ADD_STOPER_MEASURE_NUMBERS",Ft="IMPORT_MEASURES",qt="READ_GOOGLE_PLACE_PREDICTIONS",Ht="READ_GOOGLE_GEOCODE",Gt="READ_FACEBOOK_SIGNED_REQUEST",Wt="READ_DEVICE",Vt="CREATE_LOCATION",Kt="CREATE_TRACKPOINT",Zt="READ_COMPETITION_TRACKPOINTS",Yt="READ_LOCATION",Qt="UPDATE_TRACKPOINT",Xt="UPDATE_LOCATION",Jt="DELETE_TRACKPOINT",te="DELETE_LOCATION",ee="READ_CLASSIFICATION_GPX_FILE",ae="CREATE_CLASSIFICATION_GPX_FILE",ne="ADD_FILES",ie="CREATE_FILES",se="READ_CLASSIFICATION_RESULTS_SPLIT",oe="READ_CLASSIFICATION_RESULTS_LAP",re="ADD_CHECKPOINT_GROUP_META",le="UPDATE_MEASURE_WITHOUT_ID",ce="READ_COMPETITION_LIMITS",de="READ_COMPETITION_CLASSIFICATIONS_LIMITS",ue="READ_COMPETITION_CLASSIFICATIONS_AGES",pe="READ_COMPETITION_CLASSIFICATIONS_ACTIVE_PRICE",me="READ_COMPETITION_CLASSIFICATIONS_TOP_RESULTS",fe="READ_CLASSIFICATION_RESULTS_POSITIONS_OPEN",he="CREATE_PLAYER_ADDRESS",be="TRANSFER_PLAYER_START",_e="READ_DECLARE_RESULT_CONFIG",ve="DECLARE_ADDRESS",ge="DECLARE_FILES",ye="AUTOCOMPLETE_LOCATION",Ce="CREATE_USER_AVATAR",we="BOOTSTRAP_OPERATOR",ke="BOOTSTRAP_ORGANIZER",xe="READ_OPERATOR_ORGANIZERS",Oe="ADD_ORGANIZER_ROLE",Ae="ADD_USER_ROLE",Se="CREATE_ORGANIZER",ze="SEND_ORGANIZER_ACCESS",je="SEND_OPERATOR_ACCESS",Ie="DELETE_COMPETITION",Pe="DELETE_ORGANIZER",Ee="CREATE_OPERATOR",Te="BOOTSTRAP_ADMIN",Ne="READ_OPERATORS",Re="DELETE_OPERATOR",Le="COPY_COMPETITION",Me="CREATE_DEFAULT_COMPETITION",De="READ_COMPETITION_COUNT",$e="CREATE_GAMIFICATION",Ue="DELETE_GAMIFICATION",Be="CREATE_COMPETITION",Fe="READ_PANEL_COMPETITION",qe="READ_COMPETITION_LAYOUT",He="CREATE_BASE_POINT",Ge="CREATE_LOCATION_POINT",We="READ_COMPETITION_PAYMENT_COUNT",Ve="READ_PANEL_PLAYER_PRICE",Ke="READ_COMPETITION_CATEGORY_COUNT",Ze="READ_USER_NOTIFICATIONS",Ye="CREATE_USER_NOTIFICATIONS",Qe="UPDATE_USER_NOTIFICATIONS",Xe="READ_USER_MESSAGES_UNREAD",Je="READ_USER_MESSAGES",ta="UPDATE_USER_MESSAGES",ea="READ_PLAYERS_MEASURES",aa="CREATE_PLAYER_MEASURES",na="UPDATE_PLAYER_MEASURES",ia="INVALIDATED_PLAYER_MEASURES",sa="READ_RESULTS_EDIT_STATUS",oa="SET_PLAYERS_REGIST
1ERED",ra="SET_PLAYERS_PAID",la="DECLARE_PLAYERS_REGISTERED",ca="DECLARE_PLAYERS_PAID",da="UPDATE_PLAYERS",ua="READ_COMPETITION_WEATHER",pa="READ_CHRONOMETRY_FTP_FILES",ma="READ_USERS_LIST",fa="READ_PANEL_COMPETITION_PLAYERS",ha="READ_PANEL_COMPETITION_PLAYERS_INPUTS",ba="CREATE_PANEL_COMPETITION_PLAYERS_INPUTS",_a="UPDATE_PANEL_COMPETITION_PLAYERS_INPUTS",va="UPDATE_PANEL_COMPETITION_INPUTS",ga="DELETE_PANEL_COMPETITION_PLAYERS_INPUTS",ya="SET_COMPETITION_CHRONO_DEFAULT",Ca="READ_ORGANIZER_SETUP"},"6c4f":function(t,e,a){"use strict";a("faf5")},"6c5b":function(t,e,a){t.exports=a.p+"img/logo-visa.e8609d19.svg"},"6ca1":function(t,e,a){"use strict";a("de9d")},"6cb4":function(t,e,a){},"6d1e":function(t,e,a){},"6e0e":function(t,e,a){t.exports=a.p+"img/novelty-msg.66338075.png"},"6f73":function(t,e,a){t.exports=a.p+"img/[email protected]"},7007:function(t,e,a){t.exports=a.p+"img/novelty-insurance.63ba22ca.png"},7046:function(t,e,a){"use strict";a("133d")},7132:function(t,e,a){},"714b":function(t,e,a){"use strict";var n=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[t.show?e("div",t._b({staticClass:"modal"},"div",t.$attrs,!1),[e("div",t._g({staticClass:"modal__backdrop"},t.disabledBackdrop?{}:{click:()=>t.closeModal()})),e("div",{staticClass:"modal__dialog",class:t.size},[e("div",{staticClass:"modal__header"},[t._t("header"),e("button",{directives:[{name:"show",rawName:"v-show",value:!t.disabledBackdrop,expression:"!disabledBackdrop"}],staticClass:"modal__close",attrs:{type:"button"},on:{click:function(e){return t.closeModal()}}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 352 512"}},[e("path",{attrs:{fill:"currentColor",d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}})])])],2),e("div",{staticClass:"modal__body",class:t.bodyClass},[t._t("body")],2),e("div",{staticClass:"modal__footer"},[t._t("footer")],2)])]):t._e()])},i=[],s={name:"Modal",props:{maxHeight:{type:Boolean,default:!1},bodyClass:{type:String,required:!1,default:""},size:{type:String,required:!1,default:""},disabledBackdrop:{type:Boolean,default:!1}},data(){return{show:!1}},methods:{closeModal(){this.$emit("modal-close"),this.show=!1,document.querySelector("body").classList.remove("overflow-hidden")},openModal(){this.$emit("modal-open"),this.show=!0,document.querySelector("body").classList.add("overflow-hidden")}}},o=s,r=(a("e629"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"3f0725e4",null);e["a"]=l.exports},"719a":function(t,e,a){"use strict";a("f43a")},"71ab":function(t,e,a){"use strict";a("e6e2")},7262:function(t,e,a){t.exports=a.p+"img/link.441767fc.svg"},7282:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("VTooltip",{staticClass:"ds-panel",attrs:{triggers:["click","hover"],distance:0,skidding:-8,placement:"top-end"},scopedSlots:t._u([{key:"popper",fn:function(){return[t.data.html?e("span",{domProps:{innerHTML:t._s(t.data.content)}}):e("span",[t._v(t._s(t.data.content))])]},proxy:!0}])},[t._t("default")],2)},i=[],s=a("003c"),o={directives:{tooltip:s["e"],"close-popper":s["d"]},components:{VDropdown:s["a"],VTooltip:s["c"],VMenu:s["b"]},props:{data:{type:Object,required:!0}},data(){return{}}},r=o,l=(a("b6a6"),a("7046"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,null,null);e["default"]=c.exports},"73ab":function(t,e,a){},"73c1":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALwSURBVHgB7VfJjeJAFC1Qs1+YDEwGEMHAAYnlMGSAO4Img3ZHMN0R4Ilg4AIIDtMZDBlACH3iwDrvWWXJQtguL0CP2k8qV9kul//7v+ovQiRIkCBBgq+MlIgB9Xq9XCgUdAy/o1VTqZTmeL1kO51O4+l0OhIxIzKBdrvdS6fTQwhYVpi+Ph6PjdlsthYxIRKBbrf7E4IPOEb/jm6MfuQUsNPpVCE0rfIsLfOx2+0ai8ViKWJAaAIQ7BmdQYEg9Au2x6vX/F6vV95ut5z/xG9AqhaHJUIRgPA6uiEFQWtMJhNlbWLLmbBEnxYD6YaIiLQIB2qf2+YliPBELpcbgMAHWr3VatVFRAS2gK19CL+GBisiBLCGIaQSHAjlrcJY4Acv1L4ICex/88LjKpoOy/wGwRWsowkFBCZg+/jD4RDaizgPL7Zgig3DGog90rIYa3DNf5vNZtVvrcAE8ANr0ahukIJKYS3wLIGYiTNSw+0bWjmTyfzxs4TSGWCkLRaLT/ihbltAau1qUPVWvhZAsOqXSqUVhoYtvFNz14Kqt/IkgMNErZtME6gJpgGbzeZbWO8TBKPRiAHyzRIyne67zXtwe8G9B/YGFuEtI60hbgx6KwhPd1t3m+NqAX4oEzQT+90Qd4DDW2luc1wJQPuWt4EWfolPDFcCtruEFt7FncBMVsri6rJ9vRBdqLgfLALYDaEIrHnJ5/O+0fAakIqz8qX9fj92m+dFwNr7LETEHYDYw/9qjDnz+dw1uXMlkM1mX+1AIouXQGBCxiYCgprHd0NZ6TEWeNYMnukAYoHOelfemvRIqocaQlgBRDXlYNxhwILCBtJ9KxVLvosjJxk4YoKNNRaunAm8kgJXLhE4f3/2neZ8xqiP9qhScvp6Ida6SJ1rWJBnYil/cGmqJjwCjtt7ey2ZX9HKDSZvqvXyg8okuZguroCoeVXYmvjTICFwb/z3BJQOcRjcomojrkbgFlUbERsBP43fyiIJEiRIkOBr4R+FUIhUyCWAZAAAAABJRU5ErkJggg=="},7439:function(t,e,a){},7498:function(t,e,a){t.exports=a.p+"img/[email protected]"},"74c2":function(t,e,a){"use strict";a("7132")},"74c8":function(t,e,a){"use strict";a("9b79")},"751a":function(t,e,a){},"75dc":function(t,e,a){t.exports=a.p+"img/[email protected]"},7605:function(t,e,a){"use strict";a("b4ad")},7630:function(t,e,a){t.exports=a.p+"fonts/fa-brands-400.64bfc3b3.woff2"},"76b1":function(t,e,a){t.exports=a.p+"img/cancel-icon.606c2543.svg"},"76bd":function(t,e,a){t.exports=a.p+"img/arrow-down.2f1f42de.svg"},"76e4":function(t,e,a){"use strict";a("d187")},7793:function(t,e,a){},"77a8":function(t,e,a){"use strict";a("1084")},"77f2":function(t,e,a){},7876:function(t,e,a){"use strict";a("3c85")},"78ac":function(t,e,a){},7936:function(t,e,a){t.exports=a.p+"img/home.3bd5a0d6.svg"},"79d5":function(t,e,a){t.exports=a.p+"fonts/fa-solid-900.f6121be5.woff2"},"79e2":function(t,e,a){"use strict";a("0dfc")},"7a0f":function(t,e,a){"use strict";a("9463")},"7a4c":function(t,e,a){"use strict";a("aade")},"7a74":function(t,e,a){t.exports=a.p+"img/user-circle-white.93dd6c30.svg"},"7ade":function(t,e,a){"use strict";a("0995")},"7af7":function(t,e,a){t.exports=a.p+"img/[email protected]"},"7b1d":function(t,e,a){"use strict";a("26d0")},"7b57":function(t,e,a){},"7b6d":function(t,e,a){t.exports=a.p+"img/user-circle.2b584b2e.svg"},"7bb4":function(t,e,a){},"7c9b":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return o}
1));var n=a("5530");a("13d5");function i(t,e){const a=Object.keys(Object(n["a"])(Object(n["a"])({},t),e));return a.filter(a=>t[a]!==e[a])}function s(t,e){return 0===i(t,e).length}function o(t,e){return e.reduce((e,a)=>Object(n["a"])(Object(n["a"])({},e),{},{[a]:t[a]}),{})}},"7cb8":function(t,e,a){},"7cd5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANgSURBVHgB7VfbcdpAFF1w/IIf0gGuIFBBxAczPD5CB+AKTCpAVBCnAnAFwT/AwIfVgUkFpoPwBTMMj5wjrzwavSWMmMQ6M8uu2NXqPs/eFSJBggQJEnxkpMQJUalUlHQ63dzv90oqlcrLv2ds+O9xNBoN/PY4iQIQPA+Be2iKz9L5brcrjcfjuduCtIgZtVqtcHZ29iyFX6B1IeTNcDhMseG5iOdbeGCOcR4eei6XywW3/WL1AC1P4SFcDu1htVq1NU1bOK1tNBq59XqtYniHtoBSRSdPfBIxAtZ8ksL/RHy3vdYOBgMq1q5Wqzl4q8mQw3PJtqeICRCkgS7P0IDl1aDvXV5etiH8giHHpLfOx6YABPjGHgp03cLGCfQEPcYxGcs6H5sCEOK3eE1aTYQE4r8vh4p17qAkVhQld3193cLwK1rBxOVEKD73A9hrz14y1RsiJzFjGi7tMSldlpD6qFQLH/fl86iIFEL1ev0HBPslGUVD+27m8ih87gWeHeyx18w6F9oD2KyDjUiBTK4uwuPeaR2U0EMIfD4w+Pz8/PwJTFKM4AldARjtMAUgfAudKl6TsQThZ37vBOVzNzDP0HU43mw2j9b5sCGkb0TLSwsHhh+fuyGbzfKb+vkxmUxsZBCYhaT1mbRzWP5GRAD2UIU0ggmebIV8+4M54VZKhPHA20EkIsLE52YwvlskBSj4wnrJPLndbovoXBkssAIGx2PDUKFjhlmIoGzFd7zCNbAC+IC+6XQ6jayA3GcuhdVB4SBkHzlCS7NkyEm2ygfZzzMHyACZTOYOH2wZHrCehO8NsFWfbMXzBTnhy1auHkDyNMEALxiqhvBmyx0LYdnKUQEkE63eN05algHL5fJzVPYJA7/q0wrbQSbvqyqpC+BJq4qYQbaC8KRbxW+tzQN8URZofcS7Kk4AE1vl/dbaFID1dbaBFR7EPwCbAgZdwgqaOBG8qk8rXFlIFlGngmv1aYWTAnP+XF1dRardD4Vf9WmFkwJ67EP7jjgB/KpPK2wKXFxc3BsHCS8vIibQ8vhez3RZCnRncCwLcBa0eN+Vj30y0rGSmucODywYrC3pW78sBb1vuNY1qEnapjMhFsj79W2YK6dnYWacymhfhGSG9wZjHftrx/RyggQJEiT4f/EXGWD4HyJlhIQAAAAASUVORK5CYII="},"7d6a":function(t,e,a){"use strict";a("5cf2")},"7d77":function(t,e,a){t.exports=a.p+"img/dostartu-podcast-logo.be77a1dd.svg"},"7d9f":function(t,e,a){t.exports=a.p+"img/refund-zl.e4a338a4.svg"},"7e3a":function(t,e,a){},"7ea1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn btn-download",class:{disabled:t.disabled},on:{click:function(e){!t.disabled&&t.download()}}},[e("i",{staticClass:"btn-download__icon fas fa-file-download"}),t._t("default")],2)},i=[],s=(a("ddb0"),a("2b3d"),a("9861"),a("bc3a")),o=a.n(s),r={props:{url:{required:!0,validator:t=>"string"===typeof t||null===t},fileName:{type:String,required:!0},disabled:{type:Boolean,default:!1}},methods:{downloadFileLink(t){const e=window.URL.createObjectURL(new Blob([t])),a=document.createElement("a");a.href=e,a.setAttribute("download",this.fileName),document.body.appendChild(a),a.click(),a.style.display="none"},download(){this.url&&o()({method:"get",url:this.url}).then(t=>{this.downloadFileLink(t)}).catch(()=>console.log("download error"))}}},l=r,c=(a("801b"),a("2877")),d=Object(c["a"])(l,n,i,!1,null,"02c22936",null);e["default"]=d.exports},"7eb6":function(t,e,a){},"7f02":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"link-input"},[e("p",{staticClass:"link-input__value"},[t._v(" "+t._s(t.link)+" ")]),e("base-button",{staticClass:"link-input__btn",attrs:{btn9:""},on:{click:function(e){return t.onClick()}}},[t.isMobile?e("img",{attrs:{src:a("4638"),alt:"link-icon"}}):t._e(),t.isMobile?t._e():e("span",[t._v(" "+t._s(t.buttonName))])]),t.hint?e("div",{staticClass:"link-input__hint"},[t._v(" "+t._s(t.hint)+" ")]):t._e()],1)},i=[],s={props:{link:{type:String,required:!0},withHint:{type:Boolean,default:!0},buttonName:{type:String,required:!0},type:{type:String,default:"copy"},hint:{type:String,default:""}},computed:{isMobile(){return["sm","md"].includes(this.$mq)}},methods:{onClick(){"copy"===this.type&&this.copy(),"open"===this.type&&window.open(this.link,"_blank")},copy(){const t=document.createElement("textarea");t.value=this.link,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}},o=s,r=(a("8f8f"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"3d100630",null);e["default"]=l.exports},"7f17":function(t,e,a){t.exports=a.p+"img/[email protected]"},"801b":function(t,e,a){"use strict";a("5199")},"807c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAlCAYAAABReInxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASXSURBVHgBvVdNjFRFEP76eQXlJkNYGROiqER3jYmiQV0PRl2UuajEv51lCSaedP1BVw1qMJ7cP1hjCJA
118eDqAbxxMa4HTcQDS+LVOAph9+aQxRtM0dXd1V39ZgaW3076db/+qa++qup6/QyWUYjocdtstZXbqq2rwlTT1vlQfzTGzOFqigWq2/o3Lb/w2vrFZJouQFXbHLa11w0sLQEz3wLHfgdO/wssnLQ7z1meK4ANG4AnngT6nwLW9IiIhq39lnHjkoAWbNA2E2CznVoA3t0N/HHMrjwPFFxbHozfb2r5VuaeewF4/T2gchuLYnMPWdAjXQEtWC0wAw7OAlP7LbtmAsI5sn2TgB2QH5P+zSsMdu4Ctr0hYusW9Js2wGDG447Z+CHLcX9ikwlvWeEW2Ni24NYxNZGlCcrsfJ8wPGoC0z4xb6EI/uzADvwAjB1Uuhjpk+sQKVWNBTJltxCrjwOfG8zuA3xEH5bJIrCrg8P95KIFm8n2CX0vWAHnEKRaI9txaA+w+A+/9Ur0CsPd7jlmTX1mSVNApBmZmSRQUUW2iZmD/U/YMwyNUYRD7dnNHhUNPT2xlicmdP1DeT9fl1Rx5fgvhLPsRlQZixnW3MTR30jrCJGS3oMekTFF8dRSa8QC5CeZ6/dTIqTGgPd5wF8NOvkm1zcJNsFs2qIeJCI5cJYwPycbH2NAn03+/KuDYCqhyKAKplzJEFykvWqw0BBBVQb0ifjMWS03bDKmhJoCSkxaVsnroE1OWGwI/KoiWxzUDgMUNcxFijLo4GcTUU2cy5RmwIbrrb1VOOQh3s5DorI98bvzKsCqrK7KezMBblyv4TxMi9TpjyRK2Qbp4Os5UnOVquyeZ8ATrrvpXiVCm6psNhUn1HkA2Tm1ZXNNeicY0H8+nn5EaUtaRUJZYxlLqlCmkTYKs968Vd6OFOFa0ETPauDh3uRkElklf/ic6qMwyTXhtHi2OtD6HrU+XMe9BmNJlE6659uDKZPEPK1SczwOKgqR6ZTlOG+51yI7fgjghGO5yTLkakpJxygWIc2kiFQmNMoXPF+xzJ6JgJMR0CrbRGQ5hJC7JWuUgib42EUkfHgYHTMmBd72j2TPTKcPcGDZBzx0vzrwpYg0pfMXswvCnpBPB14BBl7lUQb6VJZHwMDST4yNAitXllN3CP/k3OhjHcNcK+sMdozKvkl9eysyZY1hlnNYWwFGhsuZJH12TPYBTA6XgNvxAZz/fGROaCEF2gs7sYnt24DnBwQkP8hUOqP6y7DlJWDLy7Kyvyy8DTDQ96b9eMTm2DU+DpJxfS4llVXE9HwfHflCxt9a1kU4kaAZ2wzi1Gng2ReB/5vp0lu+AHN7i72Ff/eTXII5Koc6yS3QvbwJjjBm+PV4dgQdO53q+IB8slfAGsyum9CugCFq+52ABx8APtyFeHUUEK+DwTufGfdvkf4pmrjSYk3Ld8r/3L/R1D6iO+9o0V3rie6utmhjT4u++lL+nHhNL65FCb9tvuydIgd4z+1E0+P6V62Ga1ky0GkLOj2hweq4HiUDvd5gXUDruBGFr+zhF+GyywUFDIg6w1E91gAAAABJRU5ErkJggg=="},"80ad":function(t,e,a){"use strict";a("57fd")},"80b6":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".result-label {\n    background-color: rgba(84, 110, 122, 0.1);\n    padding: 16px;\n}\n\n.result-classification__header {\n    padding: 16px;\n}\n\n.result__classification-item {\n    padding: 18px 15px 16px 15px;\n    margin-top: 16px;\n    margin-right: 0;\n    margin-left: 0;\n}\n\n.result__classification-item:first-of-type {\n    margin-top: 16px;\n}\n.result__classification-list {\n    margin-top: 16px;\n}\n\n.result__best-time h3 {\n    margin-top: 8px;\n}\n\n.result__player-name {\n    margin-top: 4px;\n}\n\n.result__classification-info {\n    display: flex;\n    align-items: baseline;\n    justify-content: space-between;\n}\n\n@media (min-width: 992px) {\n    .result-classification__header {\n        padding: 32px 0;\n    }\n\n    .result__best-time {\n        display: flex;\n        align-items: center;\n    }\n    .result__classification-item:first-of-type {\n        margin-top: 24px;\n    }\n    .result__classification-item {\n        padding: 16px 15px;\n        justify-content: start;\n        align-items: center;\n        margin-top: 10px;\n    }\n    .result__classification-info {\n        align-items: center;\n        border-right: 1px rgba(0, 0, 0, 0.1) solid;\n        padding-right: 24px;\n        margin-right: 24px;\n    }\n    .result__best-time > p {\n        margin-right: 27px;\n    }\n\n    .result__player-name {\n        display: inline;\n    }\n    .result__player-country {\n        display: inline;\n    }\n    .result__btn {\n        margin-left: auto;\n    }\n}\n",""]),t.exports=e},8106:function(t,e,a){"use strict";a("77f2")},"81d6":function(t,e,a){"use strict";a("e578")},8239:function(t,e,a){},"825d":function(t,e,a){},"82ba":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".minisite-pay__hint::before {\n    content: '\\f058';\n    font-family: 'Font Awesome 5 free';\n    color: #50ae55;\n    font-size: 32px;\n    margin-right: 16px;\n    width: 32px;\n    height: 32px;\n    line-height: 1;\n    text-align: center;\n}\n.minisite-pay__hint {\n    display: flex;\n    align-items: center;\n    font-size: 16px;\n    margin-top: 12px;\n}\n.minisite-pay__hint--first{\n    margin-top: 16px;\n}\n.minisite-pay__send-info {\n    margin-top: 16px;\n    line-height: 1.43;\n}\n.minisite-pay__buttons {\n    margin-top: 24px;\n    flex-direction: column-reverse;\n}\n\n.minisite-pay__btn-back {\n    margin-top: 16px;\n}\n.minisite-pay__btn-send {\n    margin-top: 24px;\n}\n\n.minisite-paylink__confirmation {\n    margin-top: 40px;\n}\n\n.minisite-pay__register-hint {\n    line-height: 1.43;\n    font-size: 16px;\n    margin-top: 12px;\n}\n\n@media(min-width: 992px) {\n    .minisite-pay__buttons {\n        flex-direction: row;\n        margin-top: 48px;\n    }\n    .minisite-pay__btn-send {\n    margin-top: 48px;\n    justify-content: end;\n}\n    .minisite-pay__back-to-list {\n        margin-top: 32px;\n    }\n    .minisite-paylink__confirmation {\n        margin-top: 80px;\n    }\n}",""]),t.exports=e},"82bc":function(t,e,a){},"82ea":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{class:t.classButton,on:{click:function(e){e.stopPropagation(),!t.disabled&&t.$emit("click")},mouseover:function(e){return t.$emit("mouseover")},mouseleave:function(e){return t.$emit("mouseleave")}}},[t.loading?e("div",{class:t.classAnimation},[e("div"),e("div"),e("div"),e("div")]):t.btn8?[e("p",[t._t("default")],2),e("i",{staticClass:"fab fa-facebook-square btn__icon"})]:[t.badge?e("i",{class:[t.badge,"f18",{mar10:!t.isEmptySlot}]}):t._e(),t._t("default"),t.icon?e("i",{staticClass:"mal12 f18",class:t.icon}):t._e(),t.novelty?e("p",{staticClass:"btn__novelty"},[t._v(" nowość ")]):t._e()]],2)},i=[],s=(a("498a"),a("13d5"),{props:{icon:{type:String,default:""},badge:{type:String,default:""},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},pressed:{type:Boolean,default:!1},novelty:{type:Boolean,default:!1},btn1:{type:Boolean,default:!1},btn1admin:{type:Boolean,default:!1},btn2:{type:Boolean,default:!1},btn3:{type:Boolean,default:!1},btn4:{type:Boolean,default:!1},btn5:{type:Boolean,default:!1},btn6:{type:Boolean,default:!1},btn7:{type:Boolean,default:!1},btn8:{type:Boolean,default:!1},btn9:{type:Boolean,default:!1},btn10:{type:Boolean,default:!1},btn11:{type:Boolean,default:!1},btn12:{type:Boolean,default:!1},short:{type:Boolean,default:!1}},data(){return{hasSlotContent:!1}},computed:{classButton(){return{nowrap:!0,btn:!this.btn10&&!this.btn11,"btn--1":this.btn1,"btn--1 btn--1__admin":this.btn1admin,"btn--2":this.btn2,"btn--3"
1:this.btn3,"btn--4":this.btn4,"btn--5":this.btn5,"btn--6":this.btn6,"btn--7":this.btn7,"btn--8":this.btn8,"btn--9":this.btn9,"btn--10":this.btn10,"btn--11":this.btn11,"btn--12":this.btn12,"btn--with-icon":this.icon,"btn--with-badge":this.badge,"btn--only-icon":!this.hasSlotContent,"btn--pressed":this.pressed&&!this.btn6,"btn--pressed-dark":this.pressed&&this.btn6,"btn--novelty":this.novelty,"btn--disabled":this.disabled,"btn--short":this.short}},classAnimation(){return{"load-animation":!0,"load-animation--dark":3===this.type,"load-animation--grey":4===this.type||5===this.type}},isEmptySlot(){return!this.$slots.default}},beforeUpdate(){this.hasSlotContent=this.checkForSlotContent()},created(){this.hasSlotContent=this.checkForSlotContent()},methods:{checkForSlotContent(){const t=(t,e)=>t||e.tag||e.text&&e.text.trim();return this.$slots.default&&this.$slots.default.reduce(t,!1)}}}),o=s,r=(a("666c"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"6ae1464f",null);e["default"]=l.exports},"82f1":function(t,e,a){"use strict";a("b77b")},"853e":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"body {\r\n    color: var(--color-greyish-brown);\r\n    background-color: white;\r\n    font-size: 14px;\r\n    font-family: 'Open Sans', sans-serif;\r\n}\r\n\r\nh1, h2, h3, h4, h5, h6 {\r\n    font-family: 'Bariol Bold';\r\n    font-weight: normal;\r\n    margin: 0;\r\n}\r\n\r\nh1 {\r\n    font-size: 24px;\r\n    line-height: 1.5;\r\n}\r\n\r\nh2 {\r\n    font-size: 18px;\r\n    line-height: 1.33;\r\n}\r\n\r\nh3 {\r\n    font-size: 24px;\r\n}\r\n\r\nh4 {\r\n    font-size: 18px;\r\n    line-height: 1.33;\r\n}\r\n\r\nh5 {\r\n    font-size: 16px;\r\n}\r\n\r\nstrong {\r\n    font-size: 16px;\r\n}\r\n\r\nhr {\r\n    margin: 16px 0;\r\n    border-bottom: none;\r\n    opacity: 0.1;\r\n}\r\n\r\np {\r\n    margin: 0;\r\n}\r\n\r\na {\r\n    text-decoration: none;\r\n    color: inherit;\r\n}\r\n\r\n@media (min-width: 992px) {\r\n    h2 {\r\n        font-size: 24px;\r\n    }\r\n    h1 {\r\n        font-size: 32px;\r\n    }\r\n}\r\n",""]),t.exports=e},8560:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn--info"},[e("a",{staticClass:"abtn",on:{click:function(e){return t.$emit("click")}}},[t._t("default")],2),e("p",[t._t("info")],2)])},i=[],s=(a("1469"),a("2877")),o={},r=Object(s["a"])(o,n,i,!1,null,"755a478a",null);e["default"]=r.exports},"85fc":function(t){t.exports=JSON.parse('[{"id":"AFG","text":"Afghanistan"},{"id":"ALA","text":"Aland Islands"},{"id":"ALB","text":"Albania"},{"id":"DZA","text":"Algeria"},{"id":"ASM","text":"American Samoa"},{"id":"AND","text":"Andorra"},{"id":"AGO","text":"Angola"},{"id":"AIA","text":"Anguilla"},{"id":"ATA","text":"Antarctica"},{"id":"ATG","text":"Antigua and Barbuda"},{"id":"ARG","text":"Argentina"},{"id":"ARM","text":"Armenia"},{"id":"ABW","text":"Aruba"},{"id":"AUS","text":"Australia"},{"id":"AUT","text":"Austria"},{"id":"AZE","text":"Azerbaijan"},{"id":"BHS","text":"Bahamas"},{"id":"BHR","text":"Bahrain"},{"id":"BGD","text":"Bangladesh"},{"id":"BRB","text":"Barbados"},{"id":"BLR","text":"Belarus"},{"id":"BEL","text":"Belgium"},{"id":"BLZ","text":"Belize"},{"id":"BEN","text":"Benin"},{"id":"BMU","text":"Bermuda"},{"id":"BTN","text":"Bhutan"},{"id":"BOL","text":"Bolivia"},{"id":"BIH","text":"Bosnia and Herzegovina"},{"id":"BWA","text":"Botswana"},{"id":"BVT","text":"Bouvet Island"},{"id":"BRA","text":"Brazil"},{"id":"VGB","text":"British Virgin Islands"},{"id":"IOT","text":"British Indian Ocean Territory"},{"id":"BRN","text":"Brunei Darussalam"},{"id":"BGR","text":"Bulgaria"},{"id":"BDI","text":"Burundi"},{"id":"KHM","text":"Cambodia"},{"id":"CMR","text":"Cameroon"},{"id":"CAN","text":"Canada"},{"id":"CPV","text":"Cape Verde"},{"id":"CYM","text":"Cayman Islands"},{"id":"CAF","text":"Central African Republic"},{"id":"TCD","text":"Chad"},{"id":"CHL","text":"Chile"},{"id":"CHN","text":"China"},{"id":"HKG","text":"Hong Kong, SAR China"},{"id":"MAC","text":"Macao, SAR China"},{"id":"CXR","text":"Christmas Island"},{"id":"CCK","text":"Cocos (Keeling) Islands"},{"id":"COL","text":"Colombia"},{"id":"COM","text":"Comoros"},{"id":"COG","text":"Congo (Brazzaville)"},{"id":"COD","text":"Congo, (Kinshasa)"},{"id":"COK","text":"Cook Islands"},{"id":"CRI","text":"Costa Rica"},{"id":"CIV","text":"Côte d Ivoire"},{"id":"HRV","text":"Croatia"},{"id":"CUB","text":"Cuba"},{"id":"CYP","text":"Cyprus"},{"id":"CZE","text":"Czech Republic"},{"id":"DNK","text":"Denmark"},{"id":"DJI","text":"Djibouti"},{"id":"DMA","text":"Dominica"},{"id":"DOM","text":"Dominican Republic"},{"id":"ECU","text":"Ecuador"},{"id":"EGY","text":"Egypt"},{"id":"SLV","text":"El Salvador"},{"id":"GNQ","text":"Equatorial Guinea"},{"id":"ERI","text":"Eritrea"},{"id":"EST","text":"Estonia"},{"id":"ETH","text":"Ethiopia"},{"id":"FLK","text":"Falkland Islands (Malvinas)"},{"id":"FRO","text":"Faroe Islands"},{"id":"FJI","text":"Fiji"},{"id":"FIN","text":"Finland"},{"id":"FRA","text":"France"},{"id":"GUF","text":"French Guiana"},{"id":"PYF","text":"French Polynesia"},{"id":"ATF","text":"French Southern Territories"},{"id":"GMB","text":"Gambia"},{"id":"GEO","text":"Georgia"},{"id":"DEU","text":"Germany"},{"id":"GHA","text":"Ghana"},{"id":"GIB","text":"Gibraltar"},{"id":"GRC","text":"Greece"},{"id":"GRL","text":"Greenland"},{"id":"GRD","text":"Grenada"},{"id":"GLP","text":"Guadeloupe"},{"id":"GUM","text":"Guam"},{"id":"GTM","text":"Guatemala"},{"id":"GGY","text":"Guernsey"},{"id":"GIN","text":"Guinea"},{"id":"GNB","text":"Guinea-Bissau"},{"id":"GUY","text":"Guyana"},{"id":"HTI","text":"Haiti"},{"id":"HMD","text":"Heard and Mcdonald Islands"},{"id":"VAT","text":"Holy See (Vatican City State)"},{"id":"HND","text":"Honduras"},{"id":"HUN","text":"Hungary"},{"id":"ISL","text":"Iceland"},{"id":"IND","text":"India"},{"id":"IDN","text":"Indonesia"}
1,{"id":"IRN","text":"Iran, Islamic Republic of"},{"id":"IRQ","text":"Iraq"},{"id":"IRL","text":"Ireland"},{"id":"IMN","text":"Isle of Man"},{"id":"ISR","text":"Israel"},{"id":"ITA","text":"Italy"},{"id":"JAM","text":"Jamaica"},{"id":"JPN","text":"Japan"},{"id":"JEY","text":"Jersey"},{"id":"JOR","text":"Jordan"},{"id":"KAZ","text":"Kazakhstan"},{"id":"KEN","text":"Kenya"},{"id":"KIR","text":"Kiribati"},{"id":"PRK","text":"North Korea"},{"id":"KOR","text":"South Korea"},{"id":"KWT","text":"Kuwait"},{"id":"KGZ","text":"Kyrgyzstan"},{"id":"LAO","text":"Lao PDR"},{"id":"LVA","text":"Latvia"},{"id":"LBN","text":"Lebanon"},{"id":"LSO","text":"Lesotho"},{"id":"LBY","text":"Libya"},{"id":"LIE","text":"Liechtenstein"},{"id":"LTU","text":"Lithuania"},{"id":"LUX","text":"Luxembourg"},{"id":"MKD","text":"Macedonia, Republic of"},{"id":"MDG","text":"Madagascar"},{"id":"MWI","text":"Malawi"},{"id":"MYS","text":"Malaysia"},{"id":"MDV","text":"Maldives"},{"id":"MLI","text":"Mali"},{"id":"MLT","text":"Malta"},{"id":"MHL","text":"Marshall Islands"},{"id":"MTQ","text":"Martinique"},{"id":"MRT","text":"Mauritania"},{"id":"MUS","text":"Mauritius"},{"id":"MYT","text":"Mayotte"},{"id":"MEX","text":"Mexico"},{"id":"FSM","text":"Micronesia, Federated States of"},{"id":"MDA","text":"Moldova"},{"id":"MCO","text":"Monaco"},{"id":"MNG","text":"Mongolia"},{"id":"MNE","text":"Montenegro"},{"id":"MSR","text":"Montserrat"},{"id":"MAR","text":"Morocco"},{"id":"MOZ","text":"Mozambique"},{"id":"MMR","text":"Myanmar"},{"id":"NAM","text":"Namibia"},{"id":"NRU","text":"Nauru"},{"id":"NPL","text":"Nepal"},{"id":"NLD","text":"Netherlands"},{"id":"ANT","text":"Netherlands Antilles"},{"id":"NCL","text":"New Caledonia"},{"id":"NZL","text":"New Zealand"},{"id":"NIC","text":"Nicaragua"},{"id":"NER","text":"Niger"},{"id":"NGA","text":"Nigeria"},{"id":"NIU","text":"Niue"},{"id":"NFK","text":"Norfolk Island"},{"id":"MNP","text":"Northern Mariana Islands"},{"id":"NOR","text":"Norway"},{"id":"OMN","text":"Oman"},{"id":"PAK","text":"Pakistan"},{"id":"PLW","text":"Palau"},{"id":"PSE","text":"Palestinian Territory"},{"id":"PNG","text":"Papua New Guinea"},{"id":"PRY","text":"Paraguay"},{"id":"PER","text":"Peru"},{"id":"PHL","text":"Philippines"},{"id":"PCN","text":"Pitcairn"},{"id":"POL","text":"Polska"},{"id":"PRT","text":"Portugal"},{"id":"PRI","text":"Puerto Rico"},{"id":"QAT","text":"Qatar"},{"id":"REU","text":"Réunion"},{"id":"ROU","text":"Romania"},{"id":"RUS","text":"Russia"},{"id":"RWA","text":"Rwanda"},{"id":"BLM","text":"Saint-Barthélemy"},{"id":"SHN","text":"Saint Helena"},{"id":"KNA","text":"Saint Kitts and Nevis"},{"id":"LCA","text":"Saint Lucia"},{"id":"MAF","text":"Saint-Martin (French part)"},{"id":"SPM","text":"Saint Pierre and Miquelon"},{"id":"VCT","text":"Saint Vincent and Grenadines"},{"id":"WSM","text":"Samoa"},{"id":"SMR","text":"San Marino"},{"id":"STP","text":"Sao Tome and Principe"},{"id":"SAU","text":"Saudi Arabia"},{"id":"SEN","text":"Senegal"},{"id":"SRB","text":"Serbia"},{"id":"SYC","text":"Seychelles"},{"id":"SLE","text":"Sierra Leone"},{"id":"SGP","text":"Singapore"},{"id":"SVK","text":"Slovakia"},{"id":"SVN","text":"Slovenia"},{"id":"SLB","text":"Solomon Islands"},{"id":"SOM","text":"Somalia"},{"id":"ZAF","text":"South Africa"},{"id":"SGS","text":"Sandwich Islands"},{"id":"SSD","text":"South Sudan"},{"id":"ESP","text":"Spain"},{"id":"LKA","text":"Sri Lanka"},{"id":"SDN","text":"Sudan"},{"id":"SUR","text":"Suriname"},{"id":"SJM","text":"Svalbard and Jan Mayen Islands"},{"id":"SWE","text":"Sweden"},{"id":"CHE","text":"Switzerland"},{"id":"SYR","text":"Syrian Arab Republic (Syria)"},{"id":"TWN","text":"Taiwan, Republic of China"},{"id":"TJK","text":"Tajikistan"},{"id":"TZA","text":"Tanzania, United Republic of"},{"id":"THA","text":"Thailand"},{"id":"TLS","text":"Timor-Leste"},{"id":"TGO","text":"Togo"},{"id":"TKL","text":"Tokelau"},{"id":"TON","text":"Tonga"},{"id":"TTO","text":"Trinidad and Tobago"},{"id":"TUN","text":"Tunisia"},{"id":"TUR","text":"Turkey"},{"id":"TKM","text":"Turkmenistan"},{"id":"TCA","text":"Turks and Caicos Islands"},{"id":"TUV","text":"Tuvalu"},{"id":"UGA","text":"Uganda"},{"id":"UKR","text":"Ukraine"},{"id":"ARE","text":"United Arab Emirates"},{"id":"GBR","text":"United Kingdom"},{"id":"USA","text":"United States of America"},{"id":"UMI","text":"US Minor Outlying Islands"},{"id":"URY","text":"Uruguay"},{"id":"UZB","text":"Uzbekistan"},{"id":"VUT","text":"Vanuatu"},{"id":"VEN","text":"Venezuela"},{"id":"VNM","text":"Viet Nam"},{"id":"VIR","text":"Virgin Islands, US"},{"id":"WLF","text":"Wallis and Futuna Islands"},{"id":"ESH","text":"Western Sahara"},{"id":"YEM","text":"Yemen"},{"id":"ZMB","text":"Zambia"},{"id":"ZWE","text":"Zimbabwe"}]')},8621:function(t,e,a){t.exports=a.p+"fonts/fa-brands-400.27a2c73e.woff"},8757:function(t,e,a){t.exports=a.p+"fonts/fa-regular-400.ece54318.ttf"},8778:function(t,e,a){"use strict";a("e2c3")},8848:function(t,e,a){},"889e":function(t,e,a){"use strict";a("3c02")},"88af":function(t,e,a){t.exports=a.p+"img/t-shirt-icon-white.60f5370d.svg"},"893c":function(t,e,a){},"893d":function(t,e,a){"use strict";a("39fb")},8965:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"radio-field",class:{"radio-field--error":t.error},on:{change:function(e){return t.$emit("input",e.target.value)}}},[e("span",{staticClass:"radio-field__desc"}
1,[t._v(t._s(t.label))]),t._l(t.options,(function(a){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.picked,expression:"picked"}],key:a.value,staticClass:"d-none",attrs:{id:`${t.fieldId}-${a.value}`,type:"radio"},domProps:{value:a.value,checked:t._q(t.picked,a.value)},on:{change:function(e){t.picked=a.value}}}),e("label",{key:a.title,staticClass:"radio-field__label",attrs:{for:`${t.fieldId}-${a.value}`}},[t._v(t._s(t.say[a.title]||a.title))])]})),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])],2)},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l={mixins:[r["a"]],props:{options:{type:Array,required:!0},name:{type:String,default:null}},data(){return{picked:this.value}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say"])),{},{fieldId(){return this.name||"radio-"+this._uid}})},c=l,d=a("2877"),u=Object(d["a"])(c,n,i,!1,null,null,null);e["default"]=u.exports},"896a":function(t,e,a){"use strict";a.r(e);a("13d5");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder",class:{"input-field--error":t.error,"input-field--short":t.isPanel}},[t.error||t.isPanel?t._e():e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.isInput}},[t._v(t._s(t.label))]),e("v-select",{staticClass:"input-field__select",class:{"input-field__select--with-selected":!t.isInput,"input-field__input--padding-bottom":t.error&&!t.isPanel,"input-field__input--padding-top":t.isInputValid&&!t.isPanel,"input-field__select--panel":t.isPanel},attrs:{"append-to-body":"",options:t.options,label:t.labelSelect,reduce:t.reduce,value:t.value,placeholder:t.placeholder,clearable:t.clearable,searchable:t.searchable},on:{input:function(e){t.$emit("input",e),t.$emit("update:error",null)}},scopedSlots:t._u([{key:"no-options",fn:function(){return[t._t("no-options",(function(){return[e("p",{staticClass:"input-field__no-options"},[t._v("Nie znaleziono pasujących opcji")])]}))]},proxy:!0}],null,!0)}),e("span",{staticClass:"input-error",class:{"input-error--show":t.error&&!t.withoutErrorMessage}},[t._v(t._s(t.say[t.error]||t.error))])],1)},i=[],s=a("5530"),o=a("4a7a"),r=a.n(o),l=a("1047"),c=a("2f62"),d={components:{VSelect:r.a},mixins:[l["a"]],props:{reduce:{type:Function,default:void 0},labelSelect:{type:String,default:"text"},options:{type:Array,default:()=>[]},clearable:{type:Boolean,default:!0},isPanel:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0}},computed:Object(s["a"])({},Object(c["c"])(["say"]))},u=d,p=(a("681c"),a("5967"),a("2877")),m=Object(p["a"])(u,n,i,!1,null,"4ddf423c",null);e["default"]=m.exports},"8a0f":function(t,e,a){},"8a7d":function(t,e,a){t.exports=a.p+"img/checkmark-circle.dce9225d.svg"},"8aaa":function(t,e,a){t.exports=a.p+"img/novelty-scanner-qr.0b9c674e.png"},"8ac9":function(t,e,a){"use strict";a("278c")},"8ad2":function(t,e,a){"use strict";a("df16")},"8ae3":function(t,e,a){"use strict";a("a17d")},"8b88":function(t,e,a){"use strict";a("b633")},"8c69":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".mat16 {\n    margin-top: 16px;\n}\n\n.mat10 {\n    margin-top: 10px;\n}\n\n.mat12 {\n    margin-top: 12px;\n}\n\n.mat18 {\n    margin-top: 18px;\n}\n\n.mat22 {\n    margin-top: 22px;\n}\n\n.mat20 {\n    margin-top: 20px;\n}\n\n.pa24 {\n    padding: 24px;\n}\n\n.mat32 {\n    margin-top: 32px;\n}\n\n.mat36 {\n    margin-top: 36px;\n}\n\n.mat120 {\n    margin-top: 120px;\n}\n\n.mat160 {\n    margin-top: 160px;\n}\n.mar30 {\n    margin-right: 30px;\n}\n\n.mar3 {\n    margin-right: 3px;\n}\n\n.mab0 {\n    margin-bottom: 0;\n}\n\n.ma0 {\n    margin: 0;\n}\n\n.mal10 {\n    margin-left: 10px;\n}\n\n.mar15 {\n    margin-right: 15px;\n}\n\n.mal15 {\n    margin-left: 15px;\n}\n\n.mab16 {\n    margin-bottom: 16px;\n}\n\n.mab1 {\n    margin-bottom: 1px\n}\n\n.mab16i {\n    margin-bottom: 16px !important;\n}\n\n.mal12 {\n    margin-left: 12px;\n}\n\n.mab4 {\n    margin-bottom: 4px;\n}\n\n.mab40 {\n    margin-bottom: 40px;\n}\n\n.mab8 {\n    margin-bottom: 8px;\n}\n\n.mar12 {\n    margin-right: 12px;\n}\n\n.ma4 {\n    margin: 4px;\n}\n\n.mar8 {\n    margin-right: 8px;\n}\n\n.mab12 {\n    margin-bottom: 12px;\n}\n\n.mab46 {\n    margin-bottom: 46px;\n}\n\n.mar30 {\n    margin-right: 30px;\n}\n\n.mal28 {\n    margin-left: 28px;\n}\n\n.mar4 {\n    margin-right: 4px;\n}\n\n.mar45 {\n    margin-right: 45px;\n}\n\n.mab10 {\n    margin-bottom: 10px;\n}\n\n.pa8 {\n    padding: 8px;\n}\n\n.pa16 {\n    padding: 16px;\n}\n\n.pat16 {\n    padding-top: 16px;\n}\n\n.palr16 {\n    padding-left: 16px;\n    padding-right: 16px;\n}\n.palr48 {\n    padding-left: 48px;\n    padding-right: 48px;\n}\n.palr8 {\n    padding-left: 8px;\n    padding-right: 8px;\n}\n\n.patb24 {\n    padding-top: 24px;\n    padding-bottom: 24px;\n}\n\n.patb48 {\n    padding-top: 48px;\n    padding-bottom: 48px;\n}\n\n.patb20 {\n    padding-top: 20px;\n    padding-bottom: 20px;\n}\n\n.patb16 {\n    padding-top: 16px;\n    padding-bottom: 16px;\n}\n.patb8 {\n    padding-top: 8px;\n    padding-bottom: 8px;\n}\n.palr32 {\n    padding-right: 32px;\n    padding-left: 32px;\n}\n\n.patb32 {\n    padding-top: 32px;\n    padding-bottom: 32px;\n}\n\n.matb30 {\n    margin-top: 30px;\n    margin-bottom: 30px;\n}\n\n.matb15 {\n    margin-top: 15px;\n    margin-bottom: 15px;\n}\n\n.palr10 {\n    padding-left: 10px;\n    padding-right: 10px;\n}\n\n.mat40 {\n    margin-top: 40px;\n}\n\n.mal30 {\n    margin-left: 30px;\n}\n\n.mal14 {\n    margin-left: 14px;\n}\n\n.mat4 {\n    margin-top: 4px;\n}\n\n.mat40 {\n    margin-top: 40px;\n}\n\n.mat48 {\n    margin-top: 48px;\n}\n\n.mat60 {\n    margin-top: 60px;\n}\n\n.mat56 {\n    margin-top: 56px;\n}\n\n.mat64 {\n    margin-top: 64px;\n}\n\n.mat80 {\n    margin-top: 80px;\n}\n\n.mat8 {\n    margin-top: 8px;\n}\n\n.par8 {\n    padding-right: 8px;\n}\n\n.par15 {\n    padding-right: 15px;\n}\n\n.par30 {\n    padding-right: 30px;\n}\n\n.mat24 {\n    margin-top: 24px;\n}\n\n.pab16 {\n    padding-bottom: 16px;\n}\n\n.pab10 {\n    padding-bottom: 10px;\n}\n\n.pab1 {\n    padding-bottom: 1px;\n}\n\n.pab12 {\n    padding-bottom: 12px;\n}\n\n.pab8i {\n    padding-bottom: 8px !important;\n}\n\n.pab32 {\n    padding-bottom: 32px;\n}\n\n.pab250 {\n    padding-bottom: 250px;\n}\n\n.pat4 {\n    padding-top: 4px;\n}\n\n.pat1 {\n    padding-top: 1px;\n}\n\n.pat48 {\n    padding-top: 48px;\n}\n\n.pab24 {\n    padding-bottom: 24px;\n}\n\n.pat32 {\n    padding-top: 32px;\n}\n\n.pal8 {\n    padding-left: 8px;\n}\n\n.pal16 {\n    padding-left: 16px;\n}\n\n.mar16 {\n    margin-right: 16px;\n}\n\n.mar63 {\n    margin-right: 63px;\n}\n\n.pa15 {\n    padding: 15px;\n}\n\n.mal4 {\n    margin-left: 4px;\n}\n\n.mal8 {\n    margin-left: 8px;\n}\n\n.mar10 {\n    margin-right: 10px;\n}\n\n.matb45 {\n    margin-bottom: 45px;\n    margin-top: 45px;\n}\n\n.marl15 {\n    margin-right: 15px;\n    margin-left: 15px;\n}\n\n.mat15 {\n    margin-top: 15px;\n}\n\n.mar25i {\n    margin-right: 25px !important;\n}\n\n.mar-auto {\n    margin-right: auto;\n}\n\n.mat-auto {\n    margin-top: auto;\n}\n.mat7 {\n    margin-top: 7px;\n}\n.mal-auto {\n    margin-left: auto;\n}\n.mal16 {\n    margin-left: 16px;\n}\n.pa0 {\n    padding: 0;\n}\n.mab50 {\n    margin-bottom: 50px;\n}\n.mab64 {\n    margin-bottom: 64px;\n}\n.mab150 {\n    margin-bottom: 150px;\n}\n.mab36 {\n    margin-bottom: 36px;\n}\n.mab32 {\n    margin-bottom: 32px;\n}\n.pat15 {\n    padding-top: 15px;\n}\n.mat33 {\n    margin-top: 33px;\n}\n.palr15 {\n    padding-left: 15px;\n    padding-right: 15px;\n}\n.mal24 {\n    margin-left: 24px;\n}\n.mab48 {\n    margin-bottom: 48px;\n}\n.mab24 {\n    margin-bottom: 24px;\n}",""]),t.exports=e},"8cb0":function(t,e,a){t.exports=a.p+"img/illustration-remote.411c6928.svg"},"8cc4":function(t,e,a){t.exports=a.p+"img/qr-code-scan.f3759352.svg"},"8d28":function(t,e,a){"use strict";a("8e84")},"8d69":function(t,e,a){},"8d90":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAlCAYAAABReInxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALYSURBVHgBvZfPTxNBFMdfe1K8IAlEw8GSeFEiIok10QMFLyIHwR+9YOI2clMTuXg1/Af0wB0OHPwVMFHrBe3FCyYKGvFi0r0YE5rgXvxxq+87+6Yd2227S3f4Jo9ddqbz6ffN68xsgkKoUqlk+HKFA9cUR7c0eRybEs8TiUSROhGDHI5SJbzQ12k1ZqIJKMWXVY5h/P/7z196WXxHX76VqLzr0c7uT9Wv6+ABGug/SmdPnaD00CD19mjj5HKMsWO3LZBht/iywNFd5oEXV54pUBhl0iOUnbiowUh3jqFrTYEMmxJnytHj12+Uuyg6xK6zl8bpcuaCfuQwdLkBKGn8CGdPCusK1okAvcFuyXd6Rqc3afR5C5h21qkwxisei/yKXtXPFVAqK4U5iwNmQlFkrGFdvdrhQ9WhEH3OWukXj7W48pRMRlJ+1MpdceMDxS1UuJhIgQWHqEza+LRNtvTCn0toCsDTuHv/+SvZ0nbtdzwKoFpNSt9/kC3t+IUDpQBUy0KcxVKvsiyFYCVpnwWgi5u+nsNkS721sb0q8Fj/EbKlvtousgngFu4Gjw+QLWH7Em0BqLaP9NBJsiXslaK1pBwLPOTZhkuMKfujC5au0jz+yHYSqzLnRvStyqQGYof38G3idIms4RQgyleBbNUjCy6zE+P6diloA47VJZyJO5djXj+vAsWlargzc02dyPYqpDJby1TePL39t7RxA1wW6z4QWUilUZkLZlvQWprj8CZHz5sTHlpGKqGx+vYGoNhXqXWuTprrYFuhb44/I5oLOggH7haShmWcMefv3Q41n12q76zuu1SfypZA0X0OF9/6wexNaqe7M9er88Yx16xfU6BULebAxc/EqaWqQWiTBdol/53CiwwUqMuXaZIiCloU8Axt5J+wp4PmLTRQoHj3Uykyju9VGJ6JctI3Hsm7otKjwroKQw7ZkAm1DmsCdWg/hCO7vCJE1j8VMWSl/GijSgAAAABJRU5ErkJggg=="},"8dcd":function(t,e,a){"use strict";a("1147")},"8e84":function(t,e,a){},"8f07":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"dark-bg dark-bg--fixed"},[e("div",{staticClass:"popup",class:t.className},[e("div",{staticClass:"popup__label"},[t._t("title")],2),e("div",{staticClass:"popup__content"},[t._t("subtitle"),t._t("content")],2),e("div",{staticClass:"popup__buttons"},[t._t("buttons")],2)])])},i=[],s={props:{className:{type:String,default:""}}},o=s,r=(a("2ccd"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"b6bc5bec",null);e["default"]=l.exports},"8f2f":function(t,e,a){},"8f75":function(t,e,a){"use strict";a("0a48")},"8f8f":function(t,e,a){"use strict";a("7439")},"8f9c":function(t,e,a){},"8fbe":function(t,e,a){"use strict";a("d250")},"900c":function(t,e,a){t.exports=a.p+"img/[email protected]"},"900d":function(t,e,a){},"903b":function(t,e,a){"use strict";a("0412")},"907e":function(t,e,a){t.exports=a.p+"img/provision-admin.0d43c5db.svg"},"90d2":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"f",(function(){return i})),a.d(e,"h",(function(){return s})),a.d(e,"i",(function(){return o}
1)),a.d(e,"j",(function(){return r})),a.d(e,"m",(function(){return l})),a.d(e,"o",(function(){return c})),a.d(e,"n",(function(){return d})),a.d(e,"s",(function(){return u})),a.d(e,"t",(function(){return p})),a.d(e,"v",(function(){return m})),a.d(e,"w",(function(){return f})),a.d(e,"B",(function(){return h})),a.d(e,"C",(function(){return b})),a.d(e,"D",(function(){return _})),a.d(e,"E",(function(){return v})),a.d(e,"u",(function(){return g})),a.d(e,"l",(function(){return y})),a.d(e,"p",(function(){return C})),a.d(e,"F",(function(){return w})),a.d(e,"G",(function(){return k})),a.d(e,"H",(function(){return x})),a.d(e,"J",(function(){return O})),a.d(e,"x",(function(){return A})),a.d(e,"c",(function(){return S})),a.d(e,"b",(function(){return z})),a.d(e,"z",(function(){return j})),a.d(e,"d",(function(){return I})),a.d(e,"q",(function(){return P})),a.d(e,"g",(function(){return E})),a.d(e,"e",(function(){return T})),a.d(e,"K",(function(){return N})),a.d(e,"y",(function(){return R})),a.d(e,"k",(function(){return L})),a.d(e,"I",(function(){return M})),a.d(e,"r",(function(){return D})),a.d(e,"A",(function(){return $}));const n="CLEAR_CLOCK",i="CLEAR_STOPER_TICKER",s="SET_ACCESS_TOKEN",o="SET_BOOTSTRAP
1ED",r="SET_CLOCK",l="SET_ENTITIES",c="SET_FILTER_FUTURE_FINISH_PAGE",d="SET_FILTER",u="SET_LANG",p="SET_LANGS",m="SET_MESSAGES",f="SET_MINISITE",h="SET_STOPER_COMPETITION",b="SET_STOPER_GATE",_="SET_STOPER_NUMBER",v="SET_STOPER_NUMBERS",g="SET_MEASURE_NUMBER",y="SET_EDITING_MEASURE",C="SET_IS_EDITING_MEASURE_NUMBER",w="SET_STOPER_TICKER",k="SET_TIME",x="SET_USER_ID",O="SET_ZEN_MODE",A="SET_NOTIFICATION",S="CLEAR_NOTIFICATION",z="CLEAR_ENTITIES",j="SET_OFFLINE_MEASURE",I="CLEAR_OFFLINE_MEASURE",P="SET_IS_ONLINE",E="SAVE_PROMPT_EVENT",T="CLEAR_PROMPT_EVENT",N="TOGGLE_NAV",R="SET_NOTIFICATIONS",L="SET_CREATE_NOTIFICATIONS",M="SET_USER_MESSAGES",D="SET_IS_USER_MESSAGES",$="SET_RESULTS_EDIT_STATUS"},"916d":function(t,e,a){"use strict";a("39c8")},9245:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder",class:{"input-field--error":t.error}},[!t.error&&t.label?e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.isInput}},[t._v(t._s(t.label))]):t._e(),e("v-select",{ref:"VSelect",staticClass:"autocompleter-competition__input",class:{"input-field__input--padding-top":(t.isInputValid||t.withoutErrorMessage)&&t.label,"input-field__input--padding-bottom":t.error&&!t.withoutErrorMessage},attrs:{label:"text",options:t.suggestions,"no-drop":0===t.suggestions.length,placeholder:t.placeholder,"append-to-body":!0,value:t.value,filterable:!1,"clear-search-on-select":t.clearSearchOnSelect,"clear-search-on-blur":t.clearSearchOnBlur,clearable:t.clearable},on:{search:function(e){return t.$emit("input",e)},input:function(e){return t.$emit("select",e)},"search:blur":function(e){return t.$emit("search-blur")}}}),e("span",{staticClass:"input-error",class:{"input-error--show":t.error&&!t.withoutErrorMessage}}
1,[t._v(t._s(t.say[t.error]))])],1)},i=[],s=a("5530"),o=(a("14d9"),a("2f62")),r=a("4a7a"),l=a.n(r),c=a("2ef0"),d=a.n(c),u=a("6c33"),p=a("1047"),m={components:{VSelect:l.a},mixins:[p["a"]],props:{action:{type:String,required:!0,validator:t=>[u["i"],u["k"]].includes(t)},onlyPoland:{type:Boolean,default:!1},clearSearchOnSelect:{type:Boolean,default:!1},clearSearchOnBlur:{type:Function,default:()=>!1},clearable:{type:Boolean,default:!1}},data(){return{suggestions:[],session:0}},computed:Object(s["a"])({},Object(o["c"])(["say"])),watch:{value(){this.autocomplete(this)}},methods:{autocomplete:d.a.debounce(async t=>{let e,a;t.session+=1;const{session:n}=t;if(t.value){const n=await t.$store.dispatch(t.action,t.value);n.suggestions?(e=n.suggestions,a=n.hasMoreSuggestions):e=n}else t.$refs.VSelect.onEscape(),e=[],a=!1;a&&e.push({text:"Zobacz więcej",value:0}),n===t.session&&(t.suggestions=e)},250)}},f=m,h=a("2877"),b=Object(h["a"])(f,n,i,!1,null,null,null);e["default"]=b.exports},"92f2":function(t,e,a){"use strict";a("8d69")},"92fb":function(t,e,a){"use strict";a("eb3e")},"933e":function(t,e,a){t.exports=a.p+"img/close-circle.737fee25.svg"},9360:function(t,e,a){t.exports=a.p+"img/marker_no_shadow.be11063b.svg"},9463:function(t,e,a){},9539:function(t,e,a){},"953e":function(t,e,a){},"969e":function(t,e,a){},"96be":function(t,e,a){"use strict";a("4a85")},9859:function(t,e,a){"use strict";a("b92a")},"98ec":function(t,e,a){var n=a("24fb"),i=a("1de5"),s=a("3c1f");e=n(!1);var o=i(s);e.push([t.i,".input-field {\n    position: relative;\n    min-height: 48px;\n    border: solid 1px var(--color-slate-two);\n    border-radius: 4px;\n    background-color: var(--color-white);\n    display: flex;\n    box-sizing: border-box;\n    padding: 0;\n}\n\n.input-field--border-none {\n    border: none;\n}\n\n.input-field__input {\n    border: none;\n    position: relative;\n    background: transparent;\n    width: 100%;\n    padding-left: 10px;\n    padding-right: 1px;\n    transition: padding var(--animation-fast);\n    overflow: hidden;\n}\n\n.search-competition__location-input .input-field__input {\n    transition: none;\n}\n.input-field--focus-bolder {\n    border: solid 2px transparent;\n}\n.input-field--focus-bolder:focus-within {\n    border: solid 2px var(--color-dark-pastel-green);\n}\n\n.input-field--error {\n    border: solid 2px var(--color-pinky-red) !important;\n}\n\n.validation-text {\n    color: var(--color-pinky-red);\n    display: block;\n    padding: 8px 4px;\n}\n\n.input-field--short {\n    min-height: 40px !important;\n    max-height: 40px !important;\n}\n\n.input-field__label {\n    position: absolute;\n    opacity: 0;\n    top: 5px;\n    left: 10px;\n    font-size: 12px;\n    color: var(--color-greyish-brown);\n    transition: all var(--animation-fast);\n}\n\n.input-field__label--show {\n    opacity: 1;\n    z-index: 2;\n}\n\n.input-field__input--padding-top {\n    padding-top: 15px;\n}\n\n.input-field__input--padding-bottom {\n    padding-bottom: 15px;\n}\n\n.input-error {\n    position: absolute;\n    transition: all var(--animation-fast);\n    opacity: 0;\n    bottom: 5px;\n    left: 10px;\n    color: var(--color-pinky-red);\n    font-size: 12px;\n    z-index: -1;\n}\n\n.input-error--show {\n    opacity: 1;\n    z-index: 1;\n}\n\n.input-field__icon {\n    width: 32px;\n    height: 32px;\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    font-size: 18px;\n    cursor: pointer;\n    padding-right: 4px;\n    margin: auto 0;\n    color: var(--color-slate);\n}\n\n.checkbox-field {\n    border: solid 1px var(--color-slate-two);\n    border-radius: 4px;\n    background-color: var(--color-white);\n    display: flex;\n    flex-direction: column;\n}\n\n.checkbox-field__desc {\n    margin: 6px 10px 10px 10px;\n    font-size: 12px;\n}\n\n.checkbox-field input[type='checkbox']:checked + label::before {\n    background: url("+o+") center var(--color-greyish-brown);\n    background-size: 18px 18px;\n}\n\n.checkbox__label {\n    display: flex;\n    color: var(--color-greyish-brown);\n    font-size: 14px;\n    cursor: pointer;\n    margin: 16px;\n    align-items: flex-start;\n    line-height: 1.33;\n}\n\n.checkbox__label::before {\n    content: '';\n    margin-right: 10px;\n    background-position: 50%;\n    background: #fff;\n    border-radius: 4px;\n    border: 2px solid var(--color-slate);\n    min-width: 16px;\n    min-height: 16px;\n    transition: all var(--animation-fast);\n}\n\n.radio-field {\n    border: solid 1px var(--color-slate-two);\n    border-radius: 4px;\n    background-color: var(--color-white);\n    display: flex;\n    position: relative;\n    flex-direction: column;\n    padding: 6px 10px 6px 10px;\n}\n\n.panel.radio-field .radio-field__desc,\n.panel .vdp-datepicker {\n    color: var(--color-greyish-brown, #4a4a4a);\n}\n\n.fields-wrapper {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 8px;\n    width: 100%;\n}\n\n.fields-wrapper .field-wrapper {\n    flex: 1 0 auto;\n}\n\n.fields-wrapper .form-input__label {\n    font-size: 14px;\n    margin-bottom: 8px;\n    display: block;\n}\n\n.action-wrapper {\n    width: 100%;\n    display: flex;\n    justify-content: flex-end;\n}\n\n.no-border.radio-field,\n.no-border.input-field {\n    border: none;\n}\n\n.no-border.filters-datepicker .filters-datepicker__wrapper-class {\n    margin: 0;\n    box-shadow: none;\n}\n\n.radio-field--error {\n    border: solid 2px var(--color-pinky-red) !important;\n}\n\n.radio-field__label {\n    margin-left: 8px;\n    cursor: pointer;\n    position: relative;\n    padding: 15px 0 15px 30px;\n    font-size: 14px;\n    color: var(--color-greyish-brown);\n    line-height: 1.3;\n    font-weight: normal;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n            user-select: none;\n}\n\n.radio-field__label:before {\n    /* green dot */\n    content: '';\n    width: 10px;\n    height: 10px;\n    position: absolute;\n    left: 5px;\n    top: 18px;\n    z-index: 2;\n    background: #fff;\n    box-sizing: border-box;\n    border-radius: 50%;\n}\n\n.radio-field__label:after {\n    /* border of dot  */\n    content: '';\n    width: 20px;\n    height: 20px;\n    position: absolute;\n    left: 0;\n    top: 13px;\n    z-index: 1;\n    border: solid 1px var(--color-greyish-brown);\n    background: var(--color-white);\n    box-sizing: border-box;\n    border-radius: 50%;\n}\n\n.radio-field input[type='radio']:checked + .radio-field__label:before {\n    background-color: var(--color-dark-pastel-green);\n    transition: background var(--animation-fast);\n}\n\n.radio-field__desc {\n    margin-bottom: 4px;\n    font-size: 12px;\n}\n\n.input-field__input--dark-placeholder::-moz-placeholder {\n    font-size: 18px;\n    color: var(--color-slate);\n    font-family: 'Bariol Bold';\n    font-weight: normal;\n    opacity: 1;\n}\n\n.input-field__input--dark-placeholder::placeholder {\n    font-size: 18px;\n    color: var(--color-slate);\n    font-family: 'Bariol Bold';\n    font-weight: normal;\n    opacity: 1;\n}\n\n.input-field--autocomplete input {\n    width: 100%;\n    border: none;\n    padding-left: 6px;\n}\n\n.input-field--file {\n    border-bottom-right-radius: 6px;\n    border-top-right-radius: 6px;\n    flex-direction: column;\n}\n\n.input-field__file {\n    padding: 15px;\n    display: flex;\n    justify-content: space-between;\n    border-top: 1px solid var(--color-slate-two);\n}\n\n.input-field__file-delete {\n    font-size: 18px;\n    cursor: pointer;\n    color: var(--color-slate);\n}\n\n.input-field__input-file {\n    display: none;\n}\n\n.input-field__textarea {\n    border: none;\n    resize: none;\n    width: 100%;\n    padding: 20px 10px;\n    box-sizing: border-box;\n}\n\n.input-field__textarea--padding-top {\n    padding-top: 10px;\n}\n\n.input-time--margin-right {\n    margin-right: -6px;\n}\n\n.input-time__field {\n    padding-right: 6px;\n}\n\n.input-field--drag-enter {\n    box-shadow: 0 8px 24px 0 rgba(55, 71, 79, 0.2);\n    border: dashed 1px var(--color-slate-two);\n}\n\n.input-field__icon-upload {\n    transform: rotate(90deg);\n    font-size: 52px;\n    margin-top: 20px;\n    color: var(--color-cool-grey);\n}\n\n.input-field__file--border-dashed {\n    border-top: dashed 1px var(--color-slate-two);\n}
1\n\n@media (min-width: 400px) {\n    .input-time--margin-right {\n        margin-right: -15px;\n    }\n    .input-time__field {\n        padding-right: 15px;\n    }\n}\n",""]),t.exports=e},9909:function(t,e,a){"use strict";a("6bf2")},9920:function(t,e,a){},"99ca":function(t,e,a){"use strict";a("c1d1")},"99ea":function(t,e,a){"use strict";a("2627")},"9a79":function(t,e,a){"use strict";a("cc38")},"9a90":function(t,e,a){"use strict";a("cf83")},"9b79":function(t,e,a){},"9c89":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".shipping-address {\n    padding: 16px;\n}\n\n.shipping-address__hint {\n    margin-bottom: 16px;\n    line-height: 1.43;\n}\n\n.shipping-address__street {\n    margin-top: 16px;\n}\n\n.shipping-address__number {\n    margin-top: 16px;\n}\n\n.shipping-address__location {\n    margin-top: 16px;\n}\n\n.shipping-address__zip-code {\n    margin-top: 16px;\n}\n\n.shipping-address__country {\n    margin-top: 16px;\n}\n\n\n@media(min-width: 992px) {\n\n    .shipping-address__number {\n        justify-content: start;\n    }\n\n    .shipping-address {\n        padding: 32px 98px;\n    }\n\n    .shipping-address__street {\n        flex-direction: row-reverse;\n        margin-top: 32px;\n        justify-content: flex-end;\n    }\n\n    .shipping-address__hint {\n        margin-bottom: 0;\n        margin-left: 30px;\n    }\n\n    .shipping-address__number {\n        margin-top: 24px;\n    }\n\n    .shipping-address__location {\n        margin-top: 24px;\n    }\n\n    .shipping-address__zip-code {\n        margin-top: 24px;\n    }\n\n    .shipping-address__country {\n        margin-top: 24px;\n    }\n}",""]),t.exports=e},"9cbb":function(t,e,a){},"9d17":function(t,e,a){"use strict";a.d(e,"f",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"e",(function(){return r})),a.d(e,"a",(function(){return l})),a.d(e,"c",(function(){return c})),a.d(e,"d",(function(){return d}));a("ddb0"),a("2b3d"),a("9861");var n=a("c4e3"),i=a.n(n);async function s(t){const e=new i.a;for(const a of t)e.file(a.name,a.content64,{base64:!0});await e.generateAsync({type:"base64"})}function o(t,e){const a=t.split(".").slice(-1)[0],n=document.createElement("a");n.href=`data:application/${a};base64,${e}`,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}async function r(t){return new Promise((e,a)=>{const n=new FileReader;n.onload=a=>e({name:t.name,content:a.target.result,mime:t.type}),n.onerror=t=>a(t),n.readAsText(t)})}function l(t){let e="";for(const a of t)e+=a.join(";"),e+="\n";return e}function c(t,e){const a=new Blob([e],{type:"text/csv;charset=utf-8;"}),n=URL.createObjectURL(a),i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",t+".csv"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function d(t,e){const a=new Blob([e],{type:"text/html"}),n=URL.createObjectURL(a),i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",t+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}},"9d2f":function(t,e,a){t.exports=a.p+"img/close-circle.d73028e3.svg"},"9ddc":function(t,e,a){t.exports=a.p+"img/[email protected]"},"9f02":function(t,e,a){"use strict";a("23a1")},"9f54":function(t,e,a){t.exports=a.p+"img/t-shirt-icon.8e2a8c1d.svg"},"9f8c":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder input-field--file",class:{"input-field--error":t.error,"input-field--drag-enter":t.isDragEnter},on:{dragover:function(t){t.preventDefault()},drop:function(e){e.preventDefault(),t.dropFileHandler(e),t.isDragEnter=!t.isDragEnter},dragenter:function(e){t.isDragEnter=!t.isDragEnter},dragleave:function(e){t.isDragEnter=!t.isDragEnter},dragend:function(e){t.isDragEnter=!1}}},[e("div",{staticClass:"row patb32 w100 justify-content-center",on:{drop:function(t){t.preventDefault()}}},[t.value[0]&&t.value[0].name?e("p",{staticClass:"col-12 align-items-center justify-content-center transition-all"},[t._v(" "+t._s(t.saySelectedFiles)+" ")]):e("p",{staticClass:"col-12 al
1ign-items-center justify-content-center transition-all"},[t._v(" "+t._s(t.say.drop_files_here)+" "+t._s(t.say.or)+" ")]),e("input",{ref:"file",staticClass:"input-field__input-file",attrs:{type:"file",multiple:""},on:{change:function(e){return t.inputFileHandler(e)}}}),t.isDragEnter?e("i",{staticClass:"input-field__icon-upload fas fa-sign-in-alt",on:{drop:function(t){t.preventDefault()}}}):e("base-button",{staticClass:"mat20 text-upper",attrs:{btn2:""},on:{drop:function(t){t.preventDefault()},click:function(e){t.$refs.file.click(),t.updateError()}}},[t._v(" "+t._s(t.say.select_from_disk)+" ")]),e("span",{staticClass:"input-error input-error--show"},[t._v(t._s(t.say[t.error]))])],1),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},t._l(t.value,(function(a){return e("div",{key:a.name,staticClass:"input-field__file",class:{"input-field__file--border-dashed":t.isDragEnter}},[e("div",[t._v(" "+t._s(a.name)+" ")]),e("i",{staticClass:"input-field__file-delete fas fa-times",on:{click:function(e){return t.deleteFile(a)}}})])})),0)])])},i=[],s=a("5530"),o=(a("ac1f"),a("5319"),a("2f62")),r=a("1047"),l=a("e78c"),c={mixins:[r["a"],l["a"]],props:{fileCount:{type:Number,default:null}},data(){return{isDragEnter:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say"])),{},{saySelectedFiles(){return null!==this.fileCount?this.say.selected_n_files_tpl.replace("{{ n }}",this.fileCount):this.say.selected_n_files_tpl.replace("{{ n }}",this.value.length)}})},d=c,u=a("2877"),p=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=p.exports},a0a1:function(t,e,a){},a0bd:function(t,e,a){"use strict";a("65dbe")},a0c1:function(t,e,a){},a13b:function(t,e,a){t.exports=a.p+"img/upload.57789b0c.svg"},a17d:function(t,e,a){},a245:function(t,e,a){t.exports=a.p+"img/[email protected]"},a365:function(t,e,a){"use strict";a("2c16")},a3ba:function(t,e,a){"use strict";a("ad01")},a46a:function(t,e,a){},a49a:function(t,e,a){"use strict";a("aea4")},a56a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPESURBVHgB7VhNUtswGFVC+d+kN3BO0OQENQtm+Fk0N8A9AekJMCcoPQHhBA0bYGCBbwA9Ab5Bs4IZBkjfMzKjkS3LcoIzTPNmFNmWLH+/T58ixBxz/N9oiBlia2vLbzabe+Px2G80Gp58fMuGZ6fn5+dD2xozUQCCexD4GM23TI1fXl42Li4uYtOEpqgZOzs7nYWFhRsp/AjtEEK2z87OGmy47+L+OzwQ49qDh242Nzc7pvVq9QAtT+EhXAvt5OHhoR9F0Shvbq/Xaz0+Poa43EcbQalunic+iRoBa15L4X8hvvtFc4fDIRXrb29vt+CtPYYc7jcya4qaAEF66DyGBiwfln1veXm5D+FHDDkmvT5emwIQ4Bt7KHBoCps80BP0GK/JWPp4bQpAiD/iNWkj4QjE/0Be+vrYREns+35rdXU1wOVXtI7C5YQTn9sA9hqzl0z1hspJzJiGS4+ZlIYppD4qFeDjVj6vikohtLu7+xOC/ZaMEqH9ULm8Cp8XgXsHe6x1q485ewCLHWAhUiCT6xDhcZQ3D0okIQQ+H6Z8vri4eA0m6VbwRKIAjDaZAhA+QBeK12TcgPC3tnfK8rkJzDN0B7x+eno61cddQyhZiJaXFi4NG5+bsL6+zm8m+8fl5WWGDEqzkLQ+kzaG5duiArBGKKQRFBSyFfLtL8aEqZRw8cDbRiQqQuFzFYzvgKQABe9YL6mDz8/PXXRGBiutQMrxWNApdFSoQpRlK75TFK6lFcAHkkWvrq4qKyDXiaWwCSgchBwgR2hplgwtyVZemfUKc4AMsLa2to8PBqkH9J1w2gBbDchW3F+QE1a2MnoAybMHBrjDZZgKr1ruveDKVrkKIJlo9UG607IMuL+//1yVfVxgqz51ZDYyeV4NSV0Ad9pQ1AyyFYQn3fq2uRkP8EVZoA0Q76GYARS28mxzMwrA+gnbwAon4gMgo0BKl7BCJGaEoupTh5GFZBE1KxirTx15CsT8WVlZqVS7Twpb9akjT4Ek9qH9gZgBbNWnjowCS0tLR+lGwsOLcAQLMjbhCFoe7x0rh6VSZ4bcsgB7QcDzrrwdkJHKJrXp8G0C9x1uWDBYX9J3clgqe94wfgQ1SV/ZE1KwMmxrAt9Jgdt5Cujj2nue+kyer7+7HDmNR0qedWGdIXdltC941JG7sw5PEyIuGlfmMc+S+egjFy+rKDwTS0sEwgFl66Vp1VUT/7lrq1DrqGCniqosVBXv8fe6J2rExH/u2iz+3h6Zhgc89aYsC00LUw+hOk5tKuYsNMccHxz/AK7fRn30TGUDAAAAAElFTkSuQmCC"},a56e:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".account-nav {\n    display: flex;\n    margin-right: -15px;\n}\n\n.account-nav__ul {\n    /* position: relative; */\n    margin: 0;\n    padding: 0;\n    display: flex;\n    align-items: center;\n    justify-content: flex-end;\n}\n\n.account-nav__li {\n    list-style-type: none;\n    font-size: 12px;\n    padding: 0;\n    border-right: solid 1px rgba(0, 0, 0, 0.1);\n}\n\n.account-nav__li--user-account {\n    position: unset;\n}\n\n.relative {\n    position: relative;\n}\n\n.account-nav__li:first-of-type {\n    border-left: solid 1px rgba(0, 0, 0, 0.1);\n}\n\n.account-nav>ul li a.active {\n    background-color: var(--color-pale-grey);\n}\n\n.account-nav__btn {\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    padding: 0 12px;\n    height: 48px;\n    cursor: pointer;\n    text-transform: capitalize;\n}\n\n\n.account-nav__btn-img {\n    margin-left: 0;\n    width: 24px;\n    height: 24px;\n}\n.account-nav__btn-icon {\n    width: 24px;\n    height: 24px;\n    margin-left: 0;\n}\n.account-nav__btn:hover .account-nav__btn-icon {\n    transform: rotate(180deg);\n}\n\n.langbtn {\n    position: relative;\n    width: 55px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    list-style-type: none;\n    font-size: 12px;\n    /* padding: 0 10px 0 0; */\n    border-right: solid 1px rgba(0, 0, 0, 0.1);\n}\n\n.account-nav>a {\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n    height: 48px;\n}\n\nheader a {\n    color: var(--color-greyish-brown);\n    outline: none;\n    text-decoration: none;\n}\n\nheader {\n    box-shadow: inset 0 0 0 1px var(--color-pale-grey);\n}\n\n@media(min-width: 768px) {\n    .account-nav {\n        margin-right: 0;\n    }\n}\n\n@media(min-width: 992px) {\n    .account-nav__li--user-account {\n        position: relative;\n    }\n    .account-nav__user-buttons {\n        left: unset;\n    }\n    .account-nav__btn-img {\n        margin-left: 8px;\n    }\n}",""]),t.exports=e},a573:function(t,e,a){t.exports=a.p+"img/[email protected]"},a580:function(t,e,a){"use strict";a("f339")},a6a5:function(t,e,a){t.exports=a.p+"img/[email protected]"},a7d6:function(t,e,a){t.exports=a.p+"img/[email protected]"},a82e:function(t,e,a){},a8f7:function(t,e,a){},a8f71:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOvSURBVHgB7VjLcdpAGF6Y+H0hFQRXEKggcPCMHweTCiwqgFSAXIHtCpArML7YHvtgOog7sErg5GF45vuUX5Md0EpCCJiJ9c0sWqFd7f9+SKkMGTJkyPCZkVMpoFKpFPb29ixMz/P5fGk6nRbk0RvHZDK5fHp6ctUKsDQDp6enjVwuZ2tEm+CsgpG8WgIgvoXLNYnH6ILAOsbhw8NDjgPzKv6/leUWtPN6fHxcVCkisQaEeJtzEPnr8fHx2rSWRIP4O0xLGO7Hx0e52+32VApIpAGRoi239TDiCZrN9vZ2Vf31ieL+/v6VSgmJGIA0WzJ1YCpOnD2dTqcHk/oJf+lBYyWVEr4sslhMgc5q8Z5OucB2TxN4R7nf76diPkSkD5BoSK0Bwi090tBpYTpVtWGEauDs7OxC/YsyJNoVEyAj97PrtXzwA6OEtUXtsZcTsPcejHdUSjBq4OTkpAYC7uTWGQ6HNy8vL29h66Gldox8QLgMsWnkhEAGxNZfMS1iXMJR7ZB3UFNXILzJOU0Ll3tcOzqBCLslEE2ttEQzPQilGiaUxAyAoCYIYKhjlKmHvUDLBzSty6iQWqvVCoPBgOsb3AOmystowuQDtH1GmduwzSDeUkI8RhXER0qT4RSXJkyuAE1cYLS5VyVEYB7w4zTCXRRBLVlPM1vIFHZ2dpoMCBgVmGxFJUSgCUGyU15Zz5g2ivTptC4kf6gSAO+wlQhBw0LRypSJXTngmzLjnD+UvkoImKgT8De1bzEC4vz3qOLPxIAf440O7Mf48XicOIrozutXsJiWWdVSs5gzGv4+Ojoylh6BDOAFvuoaTE5Ba3w/WTYMklAh1gN9CYw58JEybm8wCltbW8YyPMzGbVwaepgjM6gkGzjQ8jUQ5idpANHKYbQylS6xD9fLCv+/ZRw4Lpg3kPDeea5k767+PFY5zbYRL3C0zquKpuTrqoknmDdwJk2JZfzF7PPIclqqUfa8vGWmtdWawWglPUhl9lmkBrhRzMaJqolWBS1aFWefRTIA6XvRJqqs2BQiGfDD5azzrBOsZIWWuZAduyc25YM1wWMA1pCIAZc/u7u7qTXii0AE59VLo9ForguMw4Bn+2xE1AZwcHDAc4vMOc/Pz3PFXSQD+J5z7Ze90rysBZQ8zmtLp8dcENgzxMrEyAX8LNiWW37jvF2VU0s7y0anKeHba5ZM/UbsUgI1SVPLCWsBsz5GPazlXKgQ87MyxnclkSFtyKeb7iq1nCFDhgwZ/h/8AWDzE5DCcfQ6AAAAAElFTkSuQmCC"},a90c:function(t,e,a){},a9d3:function(t,e,a){"use strict";a("893c")},aa77:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder",class:{"input-field--error":t.error,"input-field--short":t.isShort}},[t.error&&!t.withoutErrorMessage||!t.label?t._e():e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.isInput}},[t._v(t._s(t.label))]),e("input",{staticClass:"input-field__input",class:{"input-field__input--padding-bottom":t.error&&!t.withoutErrorMessage,"input-field__input--padding-top":(t.isInputValid||t.withoutErrorMessage)&&t.label},attrs:{type:t.type,placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)},change:function(e){return t.$emit("change",e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}),t.icon?e("i",{staticClass:"input-field__icon",class:t.icon,on:{click:function(e){return t.$emit("icon-click")}}}
1):t._e(),e("span",{staticClass:"input-error",class:{"input-error--show":t.error&&!t.withoutErrorMessage}},[t._v(t._s(t.say[t.error]))])])},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l={props:{type:{type:String,default:"text"}},mixins:[r["a"]],computed:Object(s["a"])({},Object(o["c"])(["say"]))},c=l,d=a("2877"),u=Object(d["a"])(c,n,i,!1,null,null,null);e["default"]=u.exports},aade:function(t,e,a){},ab4b:function(t,e,a){},ab5b:function(t,e,a){t.exports=a.p+"img/photo-sport-2.33e7d195.png"},aba0:function(t,e,a){},ac48:function(t,e,a){t.exports=a.p+"fonts/fa-solid-900.7fb1cdd9.eot"},ac67:function(t,e,a){t.exports=a.p+"img/marker_new.e8bc1c6a.svg"},ad01:function(t,e,a){},ad40:function(t,e,a){t.exports=a.p+"img/loading.8af2bb7c.svg"},ad95:function(t,e,a){},add1:function(t,e,a){"use strict";a("e19f")},ae23:function(t,e,a){"use strict";a("293f")},aea3:function(t,e,a){"use strict";a("ad95")},aea4:function(t,e,a){},aeb4:function(t,e,a){},af26:function(t,e,a){"use strict";a("62f9")},af5e:function(t,e,a){},af7e:function(t,e,a){"use strict";a("d397")},af98:function(t,e,a){"use strict";a("d6f7")},afa3:function(t,e,a){"use strict";a("23fe")},afbd:function(t,e,a){t.exports=a.p+"img/ios-icon-add-app.832a4f30.svg"},b1a3:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-radio-base-field",attrs:{role:"group","aria-labelledby":t.name},on:{change:function(e){return t.$emit("input",e.target.value)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],key:t.option.value,attrs:{id:t.inputId,type:"radio",name:t.name},domProps:{value:t.option.value,checked:t._q(t.innerValue,t.option.value)},on:{change:function(e){t.innerValue=t.option.value}}}),e("label",{key:t.option.title,attrs:{for:t.inputId}},[t._v(t._s(t.say[t.option.title]||t.option.title))])])},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l={mixins:[r["a"]],props:{option:{type:Object,required:!0},name:{type:String,required:!0},value:{type:null,default:""}},data(){return{innerValue:null}},watch:{innerValue(t){this.$emit("input",t)},value(t){this.innerValue=t}},created(){null===this.value&&void 0===this.value||(this.innerValue="1"===this.value||this.value)},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say"])),{},{inputId(){return`${this.name}-${this.option.value||this.option.title}`}})},c=l,d=(a("481c"),a("2877")),u=Object(d["a"])(c,n,i,!1,null,"59560683",null);e["default"]=u.exports},b25a:function(t,e,a){},b28d:function(t,e,a){},b2d0:function(t,e,a){},b45b:function(t,e,a){"use strict";a("4507")},b478:function(t,e,a){},b494:function(t,e,a){},b4ad:function(t,e,a){},b4af:function(t,e,a){},b4f1:function(t,e,a){"use strict";a("aba0")},b565:function(t,e,a){},b633:function(t,e,a){},b6cf:function(t,e,a){t.exports=a.p+"img/illustration-link-in-email.5163f1c8.svg"},b6de:function(t,e,a){"use strict";a("a90c")},b743:function(t,e,a){t.exports=a.p+"img/logo-dostartu-white.3ccaa707.svg"},b74d:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mat16"},[e("div",{staticClass:"col-12",class:{input__left:t.half,"col-md-3":t.half,"col-md-6":!t.half}},[t._t("default")],2),t.half?e("div",{staticClass:"col-12",class:{input__right:t.half,"col-md-3":t.half,"col-md-6":!t.half}},[t._t("right")],2):t._e(),e("div",{staticClass:"col-12 col-md-6 input__hint"},[t._t("hint")],2)])},i=[],s={props:{half:{type:Boolean,default:!1}}},o=s,r=(a("fd7b"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"0c48146f",null);e["default"]=l.exports},b77b:function(t,e,a){},b828:function(t,e,a){t.exports=a.p+"img/novelty-lang.9c6d6537.png"},b835:function(t,e,a){t.exports=a.p+"fonts/fa-regular-400.3ac49cb3.eot"},b87a:function(t,e,a){},b92a:function(t,e,a){},b9fb:function(t,e,a){},ba99:function(t,e,a){"use strict";a("7e3a")},bb3a:function(t,e,a){"use strict";a("3b65")},bb8d:function(t,e,a){},bbb7:function(t,e,a){"use strict";a("e5aa")},bcf1:function(t,e,a){"use strict";a("cecc")},bd22:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--focus-bolder",class:{"
1input-field--error":t.error}},[t.error?t._e():e("label",{staticClass:"input-field__label",class:{"input-field__label--show":t.isInput}},[t._v(t._s(t.label))]),e("google-maps-autocomplete",{staticClass:"input-field__input",class:{"input-field__input--padding-bottom":t.error,"input-field__input--padding-top":t.isInputValid},attrs:{options:t.options,placeholder:t.placeholder,value:t.value},on:{input:function(e){return t.$emit("input",e)},place_changed:function(e){return t.onPlaceChanged(e)}}}),e("span",{staticClass:"input-error",class:{"input-error--show":t.error}},[t._v(t._s(t.say[t.error]))])],1)},i=[],s=a("5530"),o=a("2f62"),r=a("1047"),l=a("6c33"),c={mixins:[r["a"]],data(){return{options:{types:["(cities)"],fields:["geometry","name"]}}},computed:Object(s["a"])({},Object(o["c"])(["say"])),methods:Object(s["a"])(Object(s["a"])({},Object(o["b"])([l["fc"],l["ec"]])),{},{async onPlaceChanged(t){var e,a;let n;n=t.geometry?t:t.name?await this.autocomplete(t.name):void 0;const i={name:null!==(e=null!==(a=n.name)&&void 0!==a?a:n.address_components[0].long_name)&&void 0!==e?e:"",geometry:n.geometry?{lat:n.geometry.location.lat(),lng:n.geometry.location.lng()}:void 0};this.$emit("select",i)},async autocomplete(t){const e=await this.READ_GOOGLE_PLACE_PREDICTIONS(Object(s["a"])(Object(s["a"])({},this.options),{},{input:t})),a=await this.READ_GOOGLE_GEOCODE({placeId:e[0].place_id});return a[0]}})},d=c,u=a("2877"),p=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=p.exports},bd82:function(t,e,a){"use strict";a("47b1")},bd85:function(t,e,a){},bdea:function(t,e,a){"use strict";a("e251")},bec5:function(t,e,a){"use strict";a("2d27")},bfcf:function(t,e,a){t.exports=a.p+"img/[email protected]"},c09e:function(t,e,a){"use strict";a("cda2")},c127:function(t,e,a){t.exports=a.p+"img/[email protected]"},c1bf:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKbSURBVHgB7ZfJkRoxFIZFl9kvOAMcgSECNweqWA4mA5gIhgymJwLPREA7AsMFKDiYDDwZDCHMiQOr/79LXdUHq/cG14y+KiE1CPVbpPeehNBoNBqNRqP5uORECpimWSuXyyMMv6E1crlc3fPzC9vlcpktFoupSJnECnS73YFhGBMIWAsxfXs+n1vL5XIrUiKRAv1+/wcEH3OMfoNuhn7qFbDX6zUgNL3yID3zdjgcWuv1+kWkQGwFINgDOosCQehHbI8nv/mDwaC23+85/57/gVLNNDwRSwEIP0I3oSBorfl8Htqa2HI2PDGkx6B0SyTEEPGg9bltHqMIT4rF4hgKvKGZnU7HFAmJ7AHX+hB+Cwt+ETHAGpaQRvAQK1rF8cB3ftD6IibY//Y/vm6gjeCZX1DwFd6pixBEVsCN8afTKXYU8R5ebMEcG4ZNKHZHz2JcR2j+0263G0FrRVYAL3AWTRoGKagU1oFnCYrZOCNNPD6j1fL5/O8gT4Q6A8y0lUrlHi8cuR6QVsuMsNEq0ANIVsNqtfqKoeUK77VcVoSNVr4K4DDR6jbLBFqCZcBut/scN/pEYTqdMkE+O0IaxlA175PqB+49aG9hET4y01riyjBaQXiGW1M1R+kB/lEWaDb2uyVugCda1VVzlArA+k60gRV+iv8YpQJuuIQVNuJGsJKVsihDdmAUYggVt8NRALshlgJbfpRKpcBsmAXScE69dDweZ6p5fgo4e58XEXEDkHv43jpzzmq1UhZ3SgUKhcKTm0jk5eUq0PJ430Te9JgLfO8MvuUAcsGI9135aDMiZXWomXeYsGCwsQzfoS5LgfUMapKxJydcBWZ9tLswV85QBZmbldG+ChkZ0oZ7HetvsvSyRqPRaDQazXvjL0UGS0tTjO9lAAAAAElFTkSuQmCC"},c1cb:function(t,e,a){t.exports=a.p+"img/[email protected]"},c1d1:function(t,e,a){},c257:function(t,e,a){"use strict";a("b4af")},c2b5:function(t,e,a){"use strict";a("3722")},c2bf:function(t,e,a){t.exports=a.p+"fonts/fa-regular-400.a57bcf76.woff"},c353:function(t,e,a){"use strict";a("953e")},c393:function(t,e,a){},c3ba:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOZSURBVHgB7VhLctpAEB1w/N+QG+ATBJ8g8sJV/ixCTmB8ApMTWD5B7BOAT2C8AQoWKCeAnMC6QVhBFd+8J49SEyHQDAGRxHpV8gjNqNXd0/26x0IkSJAgQYK3jJTYIM7Ozqx0On01nU6tVCqV5TPcV2q12mddGe/EBgDFs1C4hMvib4zqdE4YIC1ixsXFRW5ra6stle/iuptMJkf43eH8eDz+YiIv1hCi56k8wiSD67Hf7xcdx6ERNGzKsVqtGukU6w4g3ltS+QfEecFXXoVlWRlhgNgMOD8/z2PIQnkXnreD83jucNzb2/s
17cwAx/okjFL0L8zzmv3kKpdMlk12IzQAo/l28Jq0TNr+zs3PP3cFt9uDgoC13zAsp0i1yhM+egu/9URJT+P7+fgG3H3HlfC6XIKt0oNQz4r2iI0/Saysg5zcEk3xpA+ghbjeTUmO5C6o8qdfrrsZaGlKA7BshawLzw68ZKzHg8vLyK4QWfeEYnllBVQXJ91Cau3IrPdodDocnzWazIwxBWRhIvx3s5rE6Z1yJIexWKt9lQkLgfdg6eMoLoXw+XxkMBjbub7a3t1vw7rHuTijwdsIvdiqMDIDyBQy2eE3GEygf6c1KpcK1RYRcBgpcsYXgu0ITkpFueT8ajZ6D86Ys5Ami56WHtbG7u1uE8l3GMllF973Dw0N+06sfjUZjhgy0c0B6n0nrwvNHYglAhi2kExQsZCvk2w/MCeRTaOiZ7MCvQiSWBJQohzxmfBewM08w8IVUqk6iuWPSzmUwbQN8boZAYxbxoSpBOpSUeAzDrv0iBvpsn56e5tR3FoWrtgH4gCd0GRoMyHGlsh6oHJQsI0fo6QdcGclWWR15C3OADICyfoMPFvwdMG13TQG2KpOtWF+QE5FsNXcHkDxXYIAX3NrKcc8Va4YpW4UagGSi18uyd3fYBvR6vffLso8JWDd4XvCUw3k5av1MIZMNlU3qAlhpbREzyFZQnnRrRa2d2QG+KBu0MuLdFhuAwlbZqLUzBsD7HtvAC4/iH8CMAT5dwguO2BBk90ldIil7LguZHq5XjLndZxBhBrj8Y3q4XhWius8gwgzwYp8HEbEBRHWfQcwYwMO1X0h4eBExgZ7H90rKYUnrzBDaFsgzaUn+LJOR1pXUrDssWHBYUdK3d1jSPW/M7WvQkxSVmhALWPVxXZscORc2Zn5VxvVBGP7XWBeMdch31rnLCRIkSJDg/8VPtRLm0T4FbxgAAAAASUVORK5CYII="},c3d7:function(t,e,a){},c3e9:function(t,e,a){"use strict";a("c8e9")},c4e2:function(t,e,a){},c718:function(t,e,a){"use strict";a("5c70")},c7be:function(t,e,a){"use strict";a("900d")},c876:function(t,e,a){},c8e9:function(t,e,a){},c96b:function(t,e,a){"use strict";a("a82e")},c9ff:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVhSURBVHgB7Z3PTxtHFMe/M16MIQVBWxpFRqrbqi1UauNWasKR/LgH/oCI9pyi9Mit5JYrIs05Su4J3JMmh6oiPbSuKhVaVclGwqqVJqkFDZi1PdN5i20VYuMfu8pb4vlIsP6xY9gPb3Z23o4eAm0wNjGRgodJBbwNgRSgh6BlStDWoP2tGEKk0XkBkfcfCrj+KzBbbb6E+MUr64ybWXFb/TTRbIdUenIoLgtfmx1nzA9KoTtwNcRSUemFZjIbCqyKMw+/QXdz6Y+fVuYbvVlX4Fh6IqUk7qJ7Iq4Zrqdwql40yv0vvJ/+PG3lvUAqbpyQm/1v7IlAG3lNeSES90SgldcUPxJpfKi+UBP4wWcT87DyWsFILFysPvG7cKXrPoSlZTyVGHYz9/J+BJaluAhLW1Sj0BdoZhJTsLTLF/RN2O7bOUUzjXVUTKShNaLEWFFivBhDsrR7lbUaV8jGFNZ6FKJEj1STjpF3HBFhdiOOmX97MKDrzzBJ4uKAh1tHSogEGik6B6bATLIksfS4H19txhvK8/crS1zOJ/Bdrr8WnZxQckUKwSuQ5C0/7jNdVrbexoi88aTP7+qcCK2HWH8DkkciDoq6hm2NxKtPEx21DRHThTVfBM6aLpssdy7A79L/9IINIfgikKJvestBUM5uOzixEwMXUlfS8S8bGm3D4kwh+B+iE8id5LqHMR7iAHDS44lAc2+FrwuHKZDzkoZNYJij56DqQoGbIrzp44bkm4qyCczGwjvoVcY5MpvA+71lhEVXCrzdF15C4PprHrhgE/ijicA7ieASb/YXQz0dtAvrXHhueAdZp/ODzzoKVwb5oo9gFUij54Xh7Y4kbpq259/cZo0+gjcfhN1ssy+iDYnU5txbW+zyCHaBBGWaTx993rRLU9Qtmi47NRINeYQwN9SjdUPEMO5JP1VVTZiS1DWn7Ede1IikwMNEJLrwYcYKDIgVGBArMCBWYECswIBYgQGxAgNiBQbECgyIFRgQKzAgVmBAeBaVNGFMbmFcPkdS7PjPV3U/siqBNdWPqBEpgbPxdcw4OQyI+jebsqoXi8VR3CqNICpEIh+YlDv4tvd3E3VbLe1PIs8XPkJWM64NrMB+DiR5y4lfW5ZXbXMj8Zvf1bnhXeJbEdGoyzZre9VEbSdtw4RV4GzPem2g6ASSeDn+AJzwLfE1Bz/t/I2gnHWe4URsA1ywCZxx/kJYnIk9Axd8K1RDHABOxjbBxSshMMh5NCh8S3xDHD0HGUdiviW+OrxJ0Ibmm1DxLfHVcYTFKuMcWVItKTBwvzyIsOASqI07WSvE9ZK5XX4dYXG9eAwckDu+Jb4mAu+Ugku8WRxhTSpIzRSBxJz3bqCDp6zMFZPe4kJruNKvm8cEjZ4XCh92JJFG8SiktCSEZotAggaAdkVQm3PbH/PnAwVFIPgisAp1xdNbn2Ju570DpVDULXqjmNr+JBLJVGHcOcbgo6gsnKVUPX3RNC8pCrWEKclaU0dYr/fqIZTO2MI7AfAU3pFrmRVXRKAbHzrM4Et1BOXuY1yDpS20EEu09QV6KrEAS1tQhV/a+sUG8jm38MYx/4J0EpamKIX5B5mVZXpcm8r5UajtubApxtGfmZVL1ac1gX41Ro1TVuIBGDceOfofe5IJNCJrXZ62EutgnJCb/bWkGxfiFrgL5sJkkaESefUKcdetWPMkt55/mltfGD46CiG6e2ChAaOIxJdu5vtcvfebFlyhaKQitULrqa6JSBNxSuNaCYkFGhsO2rWtijUkU0Me11Kl/f/sUKn8JmpFHPUQVTRDlNGUfarmQGmrXHNRnPdnYwpuUch7D3/+4VGrH/cfprEarrcMM+cAAAAASUVORK5CYII="},ca8a:function(t,e,a){"use strict";a("4c7f")},caf9:function(t,e,a){"use strict";a("825d")},cb92:function(t,e,a){},cbf9:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sport-image",class:t.classPhoto},[e("div",{staticClass:"sport-image__colour",style:t.styleColour},[t._t("default")],2)])},i=[],s=a("2db4"),o={props:{type:{type:Number,required:!0},colour:{type:String,required:!0}},computed:{classPhoto(){return"sport-image--"+this.type},styleColour(){const t=this.colour,e=Object(s["a"])(t).join(",");return`background-image: linear-gradient(to top, ${t}, rgba(${e}, 0.5))`}}},r=o,l=(a("13ca"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,"df16d3d4",null);e["default"]=c.exports},cc14:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{class:t.classes},[e("div",{staticClass:"notification__center"},[e("h4",{staticClass:"notification__header"},[t._t("header")],2),e("p",{staticClass:"notification__content"}
1,[t._t("content")],2)])])},i=[],s={props:{positive:{type:Boolean,default:!1},negative:{type:Boolean,default:!1}},computed:{classes(){return{notification:!0,"notification--positive":this.positive,"notification--negative":this.negative}}}},o=s,r=(a("5cb3"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"62b71b14",null);e["default"]=l.exports},cc15:function(t,e,a){"use strict";a("6d1e")},cc38:function(t,e,a){},cc5e:function(t,e,a){"use strict";a("cf16")},cc79:function(t,e,a){},cd56:function(t,e,a){"use strict";a("2a08")},cda2:function(t,e,a){},cdc5:function(t,e,a){t.exports=a.p+"fonts/fa-brands-400.fa749ec7.ttf"},ce6c:function(t){t.exports=JSON.parse('[{"id":"1","text":"🇺🇸 +1"},{"id":"7","text":"🇷🇺 +7"},{"id":"20","text":"🇪🇬 +20"},{"id":"27","text":"🇿🇦 +27"},{"id":"30","text":"🇬🇷 +30"},{"id":"31","text":"🇳🇱 +31"},{"id":"32","text":"🇧🇪 +32"},{"id":"33","text":"🇫🇷 +33"},{"id":"34","text":"🇪🇸 +34"},{"id":"36","text":"🇭🇺 +36"},{"id":"39","text":"🇮🇹 +39"},{"id":"40","text":"🇷🇴 +40"},{"id":"41","text":"🇨🇭 +41"},{"id":"43","text":"🇦🇹 +43"},{"id":"44","text":"🇬🇧 +44"},{"id":"45","text":"🇩🇰 +45"},{"id":"46","text":"🇸🇪 +46"},{"id":"47","text":"🇳🇴 +47"},{"id":"48","text":"🇵🇱 +48"},{"id":"49","text":"🇩🇪 +49"},{"id":"51","text":"🇵🇪 +51"},{"id":"52","text":"🇲🇽 +52"},{"id":"53","text":"🇨🇺 +53"},{"id":"54","text":"🇦🇷 +54"},{"id":"55","text":"🇧🇷 +55"},{"id":"56","text":"🇨🇱 +56"},{"id":"57","text":"🇨🇴 +57"},{"id":"58","text":"🇻🇪 +58"},{"id":"60","text":"🇲🇾 +60"},{"id":"61","text":"🇨🇽 +61"},{"id":"62","text":"🇮🇩 +62"},{"id":"63","text":"🇵🇭 +63"},{"id":"64","text":"🇳🇿 +64"},{"id":"65","text":"🇸🇬 +65"},{"id":"66","text":"🇹🇭 +66"},{"id":"76","text":"🇰🇿 +76"},{"id":"81","text":"🇯🇵 +81"},{"id":"82","text":"🇰🇷 +82"},{"id":"84","text":"🇻🇳 +84"},{"id":"86","text":"🇨🇳 +86"},{"id":"90","text":"🇹🇷 +90"},{"id":"91","text":"🇮🇳 +91"},{"id":"92","text":"🇵🇰 +92"},{"id":"93","text":"🇦🇫 +93"},{"id":"94","text":"🇱🇰 +94"},{"id":"95","text":"🇲🇲 +95"},{"id":"98","text":"🇮🇷 +98"},{"id":"211","text":"🇸🇸 +211"},{"id":"212","text":"🇲🇦 +212"},{"id":"213","text":"🇩🇿 +213"},{"id":"216","text":"🇹🇳 +216"},{"id":"218","text":"🇱🇾 +218"},{"id":"220","text":"🇬🇲 +220"},{"id":"221","text":"🇸🇳 +221"},{"id":"222","text":"🇲🇷 +222"},{"id":"223","text":"🇲🇱 +223"},{"id":"224","text":"🇬🇳 +224"},{"id":"225","text":"🇨🇮 +225"},{"id":"226","text":"🇧🇫 +226"},{"id":"227","text":"🇳🇪 +227"},{"id":"228","text":"🇹🇬 +228"},{"id":"229","text":"🇧🇯 +229"},{"id":"230","text":"🇲🇺 +230"},{"id":"231","text":"🇱🇷 +231"},{"id":"232","text":"🇸🇱 +232"},{"id":"233","text":"🇬🇭 +233"},{"id":"234","text":"🇳🇬 +234"},{"id":"235","text":"🇹🇩 +235"},{"id":"236","text":"🇨🇫 +236"},{"id":"237","text":"🇨🇲 +237"},{"id":"238","text":"🇨🇻 +238"},{"id":"239","text":"🇸🇹 +239"},{"id":"240","text":"🇬🇶 +240"},{"id":"241","text":"🇬🇦 +241"},{"id":"242","text":"🇨🇬 +242"},{"id":"243","text":"🇨🇩 +243"},{"id":"244","text":"🇦🇴 +244"},{"id":"245","text":"🇬🇼 +245"},{"id":"246","text":"🇮🇴 +246"},{"id":"248","text":"🇸🇨 +248"},{"id":"249","text":"🇸🇩 +249"},{"id":"250","text":"🇷🇼 +250"},{"id":"251","text":"🇪🇹 +251"},{"id":"252","text":"🇸🇴 +252"},{"id":"253","text":"🇩🇯 +253"},{"id":"254","text":"🇰🇪 +254"},{"id":"255","text":"🇹🇿 +255"},{"id":"256","text":"🇺🇬 +256"},{"id":"257","text":"🇧🇮 +257"},{"id":"258","text":"🇲🇿 +258"},{"id":"260","text":"🇿🇲 +260"},{"id":"261","text":"🇲🇬 +261"},{"id":"262","text":"🇾🇹 +262"},{"id":"263","text":"🇿🇼 +263"},{"id":"264","text":"🇳🇦 +264"},{"id":"265","text":"🇲🇼 +265"},{"id":"266","text":"🇱🇸 +266"},{"id":"267","text":"🇧🇼 +267"},{"id":"268","text":"🇸🇿 +268"},{"id":"269","text":"🇰🇲 +269"},{"id":"290","text":"🇸🇭 +290"},{"id":"291","text":"🇪🇷 +291"},{"id":"297","text":"🇦🇼 +297"},{"id":"298","text":"🇫🇴 +298"},{"id":"299","text":"🇬🇱 +299"},{"id":"350","text":"🇬🇮 +350"},{"id":"351","text":"🇵🇹 +351"},{"id":"352","text":"🇱🇺 +352"},{"id":"353","text":"🇮🇪 +353"},{"id":"354","text":"🇮🇸 +354"},{"id":"355","text":"🇦🇱 +355"},{"id":"356","text":"🇲🇹 +356"},{"id":"357","text":"🇨🇾 +357"},{"id":"358","text":"🇫🇮 +358"},{"id":"359","text":"🇧🇬 +359"},{"id":"370","text":"🇱🇹 +370"},{"id":"371","text":"🇱🇻 +371"},{"id":"372","text":"🇪🇪 +372"},{"id":"373","text":"🇲🇩 +373"},{"id":"374","text":"🇦🇲 +374"},{"id":"375","text":"🇧🇾 +375"},{"id":"376","text":"🇦🇩 +376"},{"id":"377","text":"🇲🇨 +377"},{"id":"378","text":"🇸🇲 +378"},{"id":"379","text":"🇻🇦 +379"},{"id":"380","text":"🇺🇦 +380"},{"id":"381","text":"🇷🇸 +381"},{"id":"382","text":"🇲🇪 +382"},{"id":"383","text":"🇽🇰 +383"},{"id":"385","text":"🇭🇷 +385"},{"id":"386","text":"🇸🇮 +386"},{"id":"387","text":"🇧🇦 +387"},{"id":"389","text":"🇲🇰 +389"},{"id":"420","text":"🇨🇿 +420"},{"id":"421","text":"🇸🇰 +421"},{"id":"423","text":"🇱🇮 +423"},{"id":"500","text":"🇬🇸 +500"},{"id":"501","text":"🇧🇿 +501"},{"id":"502","text":"🇬🇹 +502"},{"id":"503","text":"🇸🇻 +503"},{"id":"504","text":"🇭🇳 +504"},{"id":"505","text":"🇳🇮 +505"},{"id":"506","text":"🇨🇷 +506"},{"id":"507","text":"🇵🇦 +507"},{"id":"508","text":"🇵🇲 +508"},{"id":"509","text":"🇭🇹 +509"},{"id":"590","text":"🇧🇱 +590"},{"id":"591","text":"🇧🇴 +591"},{"id":"592","text":"🇬🇾 +592"},{"id":"593","text":"🇪🇨 +593"},{"id":"594","text":"🇬🇫 +594"},{"id":"595","text":"🇵🇾 +595"},{"id":"596","text":"🇲🇶 +596"},{"id":"597","text":"🇸🇷 +597"},{"id":"598","text":"🇺🇾 +598"},{"id":"599","text":"🇨🇼 +599"},{"id":"670","text":"🇹🇱 +670"},{"id":"672","text":"🇦🇶 +672"},{"id":"673","text":"🇧🇳 +673"},{"id":"674","text":"🇳🇷 +674"},{"id":"675","text":"🇵🇬 +675"},{"id":"676","text":"🇹🇴 +676"},{"id":"677","text":"🇸🇧 +677"},{"id":"678","text":"🇻🇺 +678"},{"id":"679","text":"🇫🇯 +679"},{"id":"680","text":"🇵🇼 +680"},{"id":"681","text":"🇼🇫 +681"},{"id":"682","text":"🇨🇰 +682"},{"id":"683","text":"🇳🇺 +683"},{"id":"685","text":"🇼🇸 +685"},{"id":"686","text":"🇰🇮 +686"},{"id":"687","text":"🇳🇨 +687"},{"id":"688","text":"🇹🇻 +688"},{"id":"689","text":"🇵🇫 +689"},{"id":"690","text":"🇹🇰 +690"},{"id":"691","text":"🇫🇲 +691"},{"id":"692","text":"🇲🇭 +692"},{"id":"850","text":"🇰🇵 +850"},{"id":"852","text":"🇭🇰 +852"},{"id":"853","text":"🇲🇴 +853"},{"id":"855","text":"🇰🇭 +855"},{"id":"856","text":"🇱🇦 +856"},{"id":"880","text":"🇧🇩 +880"},{"id":"886","text":"🇹🇼 +886"},{"id":"960","text":"🇲🇻 +960"},{"id":"961","text":"🇱🇧 +961"},{"id":"962","text":"🇯🇴 +962"},{"id":"963","text":"🇸🇾 +963"},{"id":"964","text":"🇮🇶 +964"},{"id":"965","text":"🇰🇼 +965"},{"id":"966","text":"🇸🇦 +966"},{"id":"967","text":"🇾🇪 +967"},{"id":"968","text":"🇴🇲 +968"},{"id":"970","text":"🇵🇸 +970"},{"id":"971","text":"🇦🇪 +971"},{"id":"972","text":"🇮🇱 +972"},{"id":"973","text":"🇧🇭 +973"},{"id":"974","text":"🇶🇦 +974"},{"id":"975","text":"🇧🇹 +975"},{"id":"976","text":"🇲🇳 +976"},{"id":"977","text":"🇳🇵 +977"},{"id":"992","text":"🇹🇯 +992"},{"id":"993","text":"🇹🇲 +993"},{"id":"994","text":"🇦🇿 +994"},{"id":"995","text":"🇬🇪 +995"},{"id":"996","text":"🇰🇬 +996"},{"id":"998","text":"🇺🇿 +998"}
1,{"id":"1242","text":"🇧🇸 +1242"},{"id":"1246","text":"🇧🇧 +1246"},{"id":"1264","text":"🇦🇮 +1264"},{"id":"1268","text":"🇦🇬 +1268"},{"id":"1284","text":"🇻🇬 +1284"},{"id":"1340","text":"🇻🇮 +1340"},{"id":"1345","text":"🇰🇾 +1345"},{"id":"1441","text":"🇧🇲 +1441"},{"id":"1473","text":"🇬🇩 +1473"},{"id":"1649","text":"🇹🇨 +1649"},{"id":"1664","text":"🇲🇸 +1664"},{"id":"1670","text":"🇲🇵 +1670"},{"id":"1671","text":"🇬🇺 +1671"},{"id":"1684","text":"🇦🇸 +1684"},{"id":"1721","text":"🇸🇽 +1721"},{"id":"1758","text":"🇱🇨 +1758"},{"id":"1767","text":"🇩🇲 +1767"},{"id":"1784","text":"🇻🇨 +1784"},{"id":"1787","text":"🇵🇷 +1787"},{"id":"1809","text":"🇩🇴 +1809"},{"id":"1868","text":"🇹🇹 +1868"},{"id":"1869","text":"🇰🇳 +1869"},{"id":"1876","text":"🇯🇲 +1876"},{"id":"4779","text":"🇸🇯 +4779"},{"id":"5997","text":"🇧🇶 +5997"}]')},cecc:function(t,e,a){},ced5:function(t,e,a){},cf16:function(t,e,a){},cf83:function(t,e,a){},cffc:function(t,e,a){"use strict";a("78ac")},d187:function(t,e,a){},d250:function(t,e,a){},d2fc:function(t,e,a){t.exports=a.p+"img/logo-dotpay.f37feff8.svg"},d37b:function(t,e,a){"use strict";a("d860")},d397:function(t,e,a){},d452:function(t,e,a){t.exports=a.p+"img/[email protected]"},d467:function(t,e,a){},d4cc:function(t,e,a){},d5c2:function(t,e,a){t.exports=a.p+"img/[email protected]"},d5dd:function(t,e,a){"use strict";a("b565")},d5e6:function(t,e,a){"use strict";a("b87a")},d663:function(t,e,a){},d6ae:function(t,e,a){"use strict";a("fff9")},d6c8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJXSURBVGhD7ZfBThsxEIZ5h26yIghpUyiVChySpspuKUkP9M6BC+KhuEYit5YDvQCiz7fu/220NEoNisyIXSQfPlmeGVvz27PjZGNvmLu3TBTQNFFA00QBTRMFrPJBbH0eu2T0D+bYffEvxUzAR9EXqRI+PfjqLncn7uf7aTUyx46fON/6UMwEkFw2HLtrJV12T1yZ/HBlRzBqjh0/cb71oZgIoDw44RuSJ+FUAlaRHT9xluVkIqCnGj9TmZQdT+LLyE8c8b59QjARwIc625ksSsaXeI38M30TxPv2CcFEQEcJ3fZVPmsIuMumrts2AZzo1Zo3QFzrbmBTNX2+f7SWAOKI9+0TgokAugpJPWTfn+1Cf+QnrnVdCOjxuxrvEcFNIGRpxI6fON/6UMwE8MJmOl1a5IXKZL4zrZKeq/czx46/tS9xTV1OfKh0G0brslnGXMBrEwU0TRTQNOYCqi40OHLJ4JvrCkbmre9C1TswKFxPyV58+eTm+aa7L5JqZI4df2vfgWxYLF5iJV1ONv4D++IlLrzrQzERUJfNQ/FukfCxB9nxW5eTiQCSOh/t+xNfgTjiffuEYCIgGRy7K9X6k6dfIz9xxPv2CcFEQEed5raufV/iNfLfKY7u5NsnBLMbmOW9tQQQ17oboEWejQ78Sa9AHPG+fUIwEUBXSVUWN3n36VuQ/bf8aRu7EPTV33morvP0MeFHNMeOnzjf+lDMBPDCkhw3cTo6dJfjbfdLSTMy5+Txv4l/ZFtKlt9ANcwty2YZcwGvTRTQNFFA00QBTRMFNEvu/gLPJHwW6gFmVQAAAABJRU5ErkJggg=="},d6f7:function(t,e,a){},d707:function(t,e,a){"use strict";a("aeb4")},d713:function(t,e,a){"use strict";a.r(e);a("14d9");var n=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"competition-box pointer",on:{click:function(e){t.competition&&t.$router.push({name:"minisite-landing",params:t.competition,alias:!0})}}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[t.competition?e("div",{staticClass:"competition-box__image",class:t.classPhoto},[e("div",{staticClass:"competition-box__image-content",style:t.styleColour},[e("p",{staticClass:"competition-box__category"},[t._v(" "+t._s(t._f("asType")(t.competition.type))+" ")])])]):e("div",{staticClass:"competition-box__image d-flex"},[e("div",{staticClass:"competition-box__image-content--skeleton"})])])]),e("div",{staticClass:"row competition-box__description"},[e("div",{staticClass:"col-12"},[t.competition?e("h2",[t._v(" "+t._s(t.competition.name)+" ")]):e("p",{staticClass:"base-skeleton-text competition-box__description-title--skeleton"}),t.competition?[[2,3].includes(t.competition.status)?e("div",{staticClass:"competition-box__status competition-box__status--mobile",class:2!==t.competition.status?"competition-box__status--close":"competition-box__status--open"},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")]):t._e(),[4,5,6].includes(t.competition.status)?e("div",{staticClass:"competition-box__status competition-box__status--mobile competition-box__status--results"},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")]):t._e()]:e("div",{staticClass:"competition-box__status competition-box__status--skeleton competition-box__status--mobile"}),t.competition?e("div",{staticClass:"competition-box__location"},[e("p",[t._v(t._s(t.competition.location))]),e("p",[t._v(t._s(t._f("asTime")(t.competition.startedTime)))])]):e("div",{staticClass:"competition-box__location"},[e("p",{staticClass:"base-skeleton-text base-skeleton-text--location"}),e("p",{staticClass:"base-skeleton-text base-skeleton-text--date"})]),t.competition&&t.ready&&Object.keys(t.userPlayers).length&&(2==t.competition.status||t.competition.isRemote||t.competition.status>=5)?t._l(t.userPlayers,(function(a){return e("div",{key:a.id},[e("div",{staticClass:"col-12 mab8"},[Object.keys(t.userPlayers).length>1&&!t.isOnlyCurrentUserRegistered||1==Object.keys(t.userPlayers).length&&a.user!=t.user.id?[e("b",[t._v(t._s(a.firstname)+" "+t._s(a.lastname))]),t._v(" , ")]:t._e(),t._v(" "+t._s(t.classifications[a.classification].namePl)+" ")],2),t.competition.status<=3||6!=t.competition.status&&t.competition.isRemote?e("div",{staticClass:"row"},[e("div",{staticClass:"competition-box__actions",class:{mab16:!(t.lastUserPlayerId==a.id)||t.competition.status>=5}},[t.canPlayerPay(a,t.competition)?e("div",{staticClass:"col-12 col-lg-unset mar8"},[e("base-button",{attrs:{btn1:""},on:{click:function(e){return t.$router.push({name:"minisite-pay",params:{name:t.competition.name,id:t.competition.id,token:a.token},alias:!0})}}},[t._v(" "+t._s(t.say.pay_for_participation)+" ")])],1):t._e(),e("div",{staticClass:"col-12 col-lg-unset align-items-center"},[e("div",{staticClass:"competition-box__actions-group"},[t.canPlayerEdit(a,t.competition)?e("base-button",{attrs:{btn5:""},on:{click:function(e){return t.$router.push({name:"minisite-edit",params:{name:t.competition.name,id:t.competition.id,token:a.token},alias:!0})}}},[t._v(" "+t._s(t.say.edit)+" ")]):t._e(),t._e(),t.canPlayerTransfer(a,t.competition)?e("base-button",{attrs:{btn5:""},on:{click:function(e){return t.$router.push({name:"minisite-transfer",params:{name:t.competition.name,id:t.competition.id,token:a.token},alias:!0})}}},[t._v(" "+t._s(t.say.transfer_pay)+" ")]):t._e(),t.canPlayerTransferStart(a,t.competition)?e("base-button",{attrs:{btn5:""},on:{click:function(e){return t.$router.push({name:"player-transfer-start",params:{competitionId:t.competition.id,playerId:a.id}})}}},[t._v(" Przekaż start ")]):t._e(),t.canPlayerShop(a,t.competition)?e("base-button",{attrs:{btn5:""},on:{click:function(e){return t.$router.push({name:"minisite-shop",params:{name:t.competition.name,id:t.competition.id,token:a.token},alias:!0})}}},[t._v(" "+t._s(t.say.shop)+" ")]):t._e(),t.canPlayerDeclareResult(a,t.competition)?e("base-button",{attrs:{btn5:""},on:{click:function(e){return t.$router.push({name:"minisite-declare-result",params:{token:a.token},alias:!0})}}},[t._v(" "+t._s(t.say.add_result)+" ")]):t._e()],1)]),a.pay?e("div",{staticClass:"competition-box__actions-status c-positive mal15"},[e("i",{staticClass:"fas fa-check-circle",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.say.payed)+" ")]):t.classificationsSettings[a.classification].isPay&&!a.pay&&(2!=t.competition.status||0===t.limits[a.classification].playersAvailable&&"pay"===t.competitionSetting.playersKindLimit)?e("div",{staticClass:"c-negative competition-box__actions-status mal15"},[t._v(" "+t._s(t.say.player_is_not_payed)+" ")]):t._e()]),t.lastUserPlayerId==a.id&&[2,3].includes(t.competition.status)?e("div",{staticClass:"competition-box__status competition-box__status--desktop competition-box__status--no-margin-bottom",class:[2!==t.competition.status?"competition-box__status--close":"competition-box__status--open "]},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")]):t._e()]):t._e(),t.competition.status>=5?[e("div",{staticClass:"competition-box__result",class:{mab16:!(t.lastUserPlayerId==a.id)}},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"row justify-content-start"},[a.officialTime||a.declaredTime?[e("div",{staticClass:"col-12 col-lg-4 competition-box__result-time"},[e("p",[t._v(t._s(t.say.your_time))]),e("strong",{staticClass:"l-tall"},[t._v(t._s(t._f("asStoper")(a.officialTime||a.declaredTime)))])]),e("div",{staticClass:"col-12 col-lg-4 competition-box__result-place"},[e("p",[t._v(" "+t._s(t.say.in_classification)+" ")]),a.placeClassification?e("strong",{staticClass:"mar8"},[t._v("#"+t._s(a.placeClassification))]):t._e()]),e("div",{staticClass:"col-12 col-lg-4 competition-box__result-classification"},[e("p",[t._v(t._s(t.say.in_category))]),a.placeCategory?e("strong",{staticClass:"mar8"},[t._v("#"+t._s(a.placeCategory))]):t._e()])]:[t._v(" "+t._s(t.say.time_not_added)+" ")]],2)])])]:t._e()],2)})):t.competition&&[2,3].includes(t.competition.status)?[e("div",{staticClass:"competition-box__hint"},[e("div",{staticClass:"competition-box__status competition-box__status--desktop",class:[2!==t.competition.status?"competition-box__status--close":"competition-box__status--open"]},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")])])]:t.competition&&[4,5,6].includes(t.competition.status)?[e("div",{staticClass:"competition-box__hint"},[e("div",{staticClass:"competition-box__status competition-box__status--desktop competition-box__status--results"},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")])])]:t._e(),t.competition?t._e():e("div",{staticClass:"competition-box__hint competition-box__hint--skeleton"},[e("div",{staticClass:"competition-box__status w200px competition-box__status--skeleton competition-box__status--desktop"})])],2)])]),e("modal",{ref:"startQrModal",staticClass:"start-qr-modal",attrs:{id:"startQrModal","body-class":"h-auto"}
1,on:{"modal-close":t.closeStartQrModal},scopedSlots:t._u([{key:"body",fn:function(){return[e("div",{staticClass:"start-qr-modal__content"},[t.startQrUrl?e("img",{staticClass:"start-qr-modal__image",attrs:{src:t.startQrUrl,alt:"Kod startowy QR"}}):t._e()])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{btn9:""},on:{click:function(e){return t.$refs.startQrModal.closeModal()}}},[t._v("Zamknij")])]},proxy:!0}])})],1)},i=[],s=a("5530"),o=(a("ddb0"),a("2b3d"),a("9861"),a("2f62")),r=a("2db4"),l=a("2ef0"),c=a.n(l),d=a("0463"),u=a("365c"),p=a("714b"),m=a("6c33"),f=a("7c9b"),h={components:{Modal:p["a"]},mixins:[d["a"]],props:{id:{type:Number,required:!0}},data(){return{userPlayersIds:[],ready:!1,startQrUrl:"",startQrLoading:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say","competitions","layoutsBy","user","classifications","players","classificationsSettings","limits","competitionsSettings"])),{},{competition(){return this.competitions[this.id]},competitionSetting(){return this.competitionsSettings[this.id]},userPlayers(){return Object(f["c"])(this.players,this.userPlayersIds)},layout(){return this.layoutsBy(this.competition)[0]},classPhoto(){return"sport-image--"+this.competition.type},styleColour(){const t=this.layout.colourDefault,e=Object(r["a"])(t).join(",");return`background-color: rgba(${e}, 0.4)`},lastUserPlayerId(){return c.a.findLastKey(this.userPlayers)},isOnlyCurrentUserRegistered(){let t=!1;for(const e in this.userPlayers)t=this.players[e].user===this.user.id;return t}}),beforeDestroy(){this.revokeStartQrUrl()},async created(){if(this.user&&this.user.roles.includes("ROLE_USER")&&this.id>0){const t=await this.READ_USER_COMPETITION_PLAYERS(this.id),e=[];if(t.length){for(const a of t)e.push(this.READ_CLASSIFICATION(this.players[a].classification));e.push(this.READ_COMPETITION_CLASSIFICATIONS_LIMITS(this.id)),await Promise.all(e)}this.userPlayersIds=t}this.ready=!0},methods:Object(s["a"])(Object(s["a"])({},Object(o["b"])([m["Gc"],m["xb"],m["Ob"]])),{},{revokeStartQrUrl(){this.startQrUrl&&(URL.revokeObjectURL(this.startQrUrl),this.startQrUrl="")},closeStartQrModal(){this.revokeStartQrUrl()},async openStartQrModal(t){if(!this.startQrLoading){this.startQrLoading=!0,this.revokeStartQrUrl();try{const e=await u["a"].get("qr/generate/"+t.id,{responseType:"blob"}),a=e instanceof Blob?e:new Blob([e],{type:"image/png"});this.startQrUrl=URL.createObjectURL(a),this.$refs.startQrModal.openModal()}catch(e){}finally{this.startQrLoading=!1}}}})},b=h,_=(a("a3ba"),a("2877")),v=Object(_["a"])(b,n,i,!1,null,"d0e4d7d0",null);e["default"]=v.exports},d7f1:function(t,e,a){"use strict";a("bd85")},d860:function(t,e,a){},d877:function(t,e,a){},d8d6:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"filters-datepicker",class:{"input-field--error":t.error,"input-field--short":t.isShort}},[e("datepicker",{class:{"filters-datepicker__input-error":t.error&&!t.withoutErrorMessage},attrs:{"monday-first":"",format:t.format,"wrapper-class":t.border?"filters-datepicker__wrapper-class border":"filters-datepicker__wrapper-class","calendar-button-icon":"far fa-calendar","input-class":"filters-datepicker__input",language:t.pl,placeholder:t.placeholder,"initial-view":t.initialView,"open-date":t.openDate},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}}),e("i",{staticClass:"far fa-calendar filters-datepicker__calendar-icon"}),e("span",{staticClass:"input-error",class:{"input-error--show":t.error&&!t.withoutErrorMessage}},[t._v(t._s(t.say[t.error]||t.error))])],1)},i=[],s=a("5530"),o=a("fa33"),r=a("2430"),l=a("c1df"),c=a.n(l),d=a("1047"),u=a("2f62"),p={components:{Datepicker:o["a"]},mixins:[d["a"]],props:{border:{type:Boolean,default:!1},initialView:{type:String,default:"day"},openDate:{type:Date,default:function(){return new Date}},format:{type:String,default:"dd.MM.yyyy"}},data(){return{pl:r["pl"]}},computed:Object(s["a"])(Object(s["a"])({},Object(u["c"])(["say"])),{},{date:{get(){var t;return null===(t=this.value)||void 0===t?void 0:t.valueOf()},set(t){this.$emit("input",c()(t))}}})},m=p,f=(a("8ad2"),a("2877")),h=Object(f["a"])(m,n,i,!1,null,"077b8734",null);e["default"]=h.exports},d92d:function(t,e,a){},d92d3:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("section",{staticClass:"classification",class:{"classification--dark":!t.isLight,"classification--light":t.isLight}},[e("div",{staticClass:"row palr15"},[e("div",{staticClass:"col-12 col-lg-4"},[t.id?e("h5",{staticClass:"classification__name"},[t._v(" "+t._s(t.classification.namePl)+" ")]):e("p",{staticClass:"classification__text-skeleton classification__text-skeleton--margin"})]),e("div",{staticClass:"col-12 col-lg-8 classification__description"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-3 col-4 col-md-3 col-lg-3"},[e("p",{staticClass:"nowrap classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.distance)+" ")]),t.id?e("p",{staticClass:"classification__description-value",class:{"classification__description-value--light-mode":t.isLight}},[t._v(" "+t._s(t.classification.distance)+" km ")]):e("p",{staticClass:"classification__text-skeleton mat8i"})]),e("div",{staticClass:"col-sm-2 col-4 col-md-2 col-lg-3"},[e("p",{staticClass:"nowrap classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.gender)+" ")]),t.id?e("p",{staticClass:"classification__description-value",class:{"classification__description-value--light-mode":t.isLight}},[t.canM&&t.canK?[t._v(" "+t._s(t.say.woman_short)+","+t._s(t.say.man_short)+" ")]:t.canM?[t._v(" "+t._s(t.say.man_short)+" ")]:t.canK?[t._v(" "+t._s(t.say.woman_short)+" ")]:t._e()],2):e("p",{staticClass:"classification__text-skeleton mat8i"})]),e("div",{staticClass:"col-sm-3 col-4 col-md-2 col-lg-3"},[e("p",{staticClass:"nowrap classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.age)+" ")]),t.id?e("p",{staticClass:"classification__description-value",class:{"classification__description-value--light-mode":t.isLight}},[t._v(" "+t._s(t.age.from)+"-"+t._s(t.age.to)+" ")]):e("p",{staticClass:"classification__text-skeleton mat8i"})]),t.id?[[t.canRegisterClassification(t.competition,t.limits)?e("div",{staticClass:"col-sm-4 col-12 col-md-5 col-lg-3 txt-align boxclass__players-limits"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.available)+" ")]),e("p",{staticClass:"classification__description-value",class:{"classification__description-value--light-mode":t.isLight}},[t._v(" "+t._s(t.limits.playersAvailable)+" / "+t._s(t.limits.playersLimit)+" ")])]):e("div",{staticClass:"col-sm-4 col-12 col-md-5 col-lg-3 txt-align boxclass__players-limits"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.number_of_participants)+" ")]),e("p",{staticClass:"classification__description-value",class:{"classification__description-value--light-mode":t.isLight}},[t._v(" "+t._s(t.classificationPlayerCount.playersPayCount)+" / "+t._s(t.classificationPlayerCount.playersCount)+" ")])])]]:[e("div",{staticClass:"col-sm-4 col-12 col-md-5 col-lg-3 txt-align boxclass__players-limits"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.available)+" ")]),e("p",{staticClass:"classification__text-skeleton mat8i"})])]],2),e("div",{staticClass:"col-12 pa0"},[e("hr",{staticClass:"classification__line",class:{"classification__line--light":t.isLight}})]),e("div",{staticClass:"row out-gutter"},[t.id?[t.classificationSetting.isPay&&!t.prices.length?e("div",{staticClass:"col-12"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.unknown_payment_information)+" ")])]):t.classificationSetting.isPay?[e("div",{staticClass:"col-12 col-sm-3"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.prices)+" ")])]),t._l(t.ascSortPrices,(function(a,n){return e("div",{key:a.id,staticClass:"col-6 col-sm-3 boxclass__price"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},["date"===t.classificationSetting.pricesControlledBy?[t._v(" "+t._s(t.say.until)+" "+t._s(t._f("asDate")(a.endedTime))+" ")]:[t._v(" "+t._s(t.say[["first_players_fee","next_players_fee","rest_players_fee"][n]])+" "+t._s(a.playersLimit)+" ")]],2),e("p",{staticClass:"classification__description-value",class:{"classification__description-value--light-mode":t.isLight}},[t._v(" "+t._s(a.price)+" "+t._s(t.currency)+" ")])])}))]:e("div",{staticClass:"col-12 col-sm-3"},[e("p",{staticClass:"classification__description-label",class:{"classification__description-label--light-mode":t.isLight}},[t._v(" "+t._s(t.say.feeless)+" ")])])]:[e("p",{staticClass:"classification__text-skeleton w40i mat8i"})]],2)])])])},i=[],s=a("5530"),o=(a("14d9"),a("ddb0"),a("2f62")),r=a("0463"),l=a("2ef0"),c=a.n(l),d={mixins:[r["a"]],props:{id:{type:Number,required:!0},competitionId:{type:Number,required:!0},isLight:{type:Boolean,default:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say","classifications","classificationsSettings","competitions","limitsBy","pricesBy","agesBy","competitionsCurrency","classificationsPlayerCount"])),{},{classificationPlayerCount(){return this.classificationsPlayerCount[this.id]},currency(){return this.competitionsCurrency[this.competition.id]?this.competitionsCurrency[this.competition.id].currencySymbol:"zł"},classification(){return this.classifications[this.id]},classificationSetting(){return this.classificationsSettings[this.id]},competition(){return this.competitions[this.competitionId]},limits(){return this.limitsBy(this.classification)[0]},ages(){return this.agesBy(this.classification)[0]},prices(){return this.pricesBy(this.classification)},ascSortPrices(){return"date"===this.classificationSetting.pricesControlledBy?c.a.sortBy(this.prices,t=>
1t.endedTime):c.a.sortBy(this.prices,t=>Number.parseFloat(t.price))},canM(){return!!this.ages.m},canK(){return!!this.ages.k},ageM(){return{from:this.ages.m.from||0,to:this.ages.m.to||99}},ageK(){return{from:this.ages.k.from||0,to:this.ages.k.to||99}},age(){const t=[],e=[];return this.canM&&(t.push(this.ageM.from),e.push(this.ageM.to)),this.canK&&(t.push(this.ageK.from),e.push(this.ageK.to)),{from:Math.min(...t),to:Math.max(...e)}}})},u=d,p=(a("7ade"),a("2877")),m=Object(p["a"])(u,n,i,!1,null,"cad9113c",null);e["default"]=m.exports},d9a7:function(t,e,a){"use strict";a("43b9")},da38:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".row {\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n    justify-content: space-between;\r\n}\r\n\r\n.col-1 {\r\n    flex: 0 0 var(--col-1);\r\n}\r\n\r\n.col-2 {\r\n    flex: 0 0 var(--col-2);\r\n}\r\n\r\n.col-3 {\r\n    flex: 0 0 var(--col-3);\r\n}\r\n\r\n.col-4 {\r\n    flex: 0 0 var(--col-4);\r\n}\r\n\r\n.col-5 {\r\n    flex: 0 0 var(--col-5);\r\n}\r\n\r\n.col-6 {\r\n    flex: 0 0 var(--col-6);\r\n}\r\n\r\n.col-7 {\r\n    flex: 0 0 var(--col-7);\r\n}\r\n\r\n.col-8 {\r\n    flex: 0 0 var(--col-8);\r\n}\r\n\r\n.col-9 {\r\n    flex: 0 0 var(--col-9);\r\n}\r\n\r\n.col-10 {\r\n    flex: 0 0 var(--col-10);\r\n}\r\n\r\n.col-11 {\r\n    flex: 0 0 var(--col-11);\r\n}\r\n\r\n.col-12 {\r\n    flex: 0 0 var(--col-12);\r\n}\r\n\r\n@media (min-width: 576px) {\r\n    .col-sm-1 {\r\n        flex: 0 0 var(--col-1);\r\n    }\r\n    .col-sm-2 {\r\n        flex: 0 0 var(--col-2);\r\n    }\r\n    .col-sm-3 {\r\n        flex: 0 0 var(--col-3);\r\n    }\r\n    .col-sm-4 {\r\n        flex: 0 0 var(--col-4);\r\n    }\r\n    .col-sm-5 {\r\n        flex: 0 0 var(--col-5);\r\n    }\r\n    .col-sm-6 {\r\n        flex: 0 0 var(--col-6);\r\n    }\r\n    .col-sm-7 {\r\n        flex: 0 0 var(--col-7);\r\n    }\r\n    .col-sm-8 {\r\n        flex: 0 0 var(--col-8);\r\n    }\r\n    .col-sm-9 {\r\n        flex: 0 0 var(--col-9);\r\n    }\r\n    .col-sm-10 {\r\n        flex: 0 0 var(--col-10);\r\n    }\r\n    .col-sm-11 {\r\n        flex: 0 0 var(--col-11);\r\n    }\r\n    .col-sm-12 {\r\n        flex: 0 0 var(--col-12);\r\n    }\r\n}\r\n\r\n@media (min-width: 768px) {\r\n    .col-md-1 {\r\n        flex: 0 0 var(--col-1);\r\n    }\r\n    .col-md-2 {\r\n        flex: 0 0 var(--col-2);\r\n    }\r\n    .col-md-3 {\r\n        flex: 0 0 var(--col-3);\r\n    }\r\n    .col-md-4 {\r\n        flex: 0 0 var(--col-4);\r\n    }\r\n    .col-md-5 {\r\n        flex: 0 0 var(--col-5);\r\n    }\r\n    .col-md-6 {\r\n        flex: 0 0 var(--col-6);\r\n    }\r\n    .col-md-7 {\r\n        flex: 0 0 var(--col-7);\r\n    }\r\n    .col-md-8 {\r\n        flex: 0 0 var(--col-8);\r\n    }\r\n    .col-md-9 {\r\n        flex: 0 0 var(--col-9);\r\n    }\r\n    .col-md-10 {\r\n        flex: 0 0 var(--col-10);\r\n    }\r\n    .col-md-11 {\r\n        flex: 0 0 var(--col-11);\r\n    }\r\n    .col-md-12 {\r\n        flex: 0 0 var(--col-12);\r\n    }\r\n}\r\n\r\n@media (min-width: 992px) {\r\n    .col-lg-1 {\r\n        flex: 0 0 var(--col-1);\r\n    }\r\n    .col-lg-2 {\r\n        flex: 0 0 var(--col-2);\r\n    }\r\n    .col-lg-3 {\r\n        flex: 0 0 var(--col-3);\r\n    }\r\n    .col-lg-4 {\r\n        flex: 0 0 var(--col-4);\r\n    }\r\n    .col-lg-5 {\r\n        flex: 0 0 var(--col-5);\r\n    }\r\n    .col-lg-6 {\r\n        flex: 0 0 var(--col-6);\r\n    }\r\n    .col-lg-7 {\r\n        flex: 0 0 var(--col-7);\r\n    }\r\n    .col-lg-8 {\r\n        flex: 0 0 var(--col-8);\r\n    }\r\n    .col-lg-9 { \r\n        flex: 0 0 var(--col-9);\r\n    }\r\n    .col-lg-10 {\r\n        flex: 0 0 var(--col-10);\r\n    }\r\n    .col-lg-11 {\r\n        flex: 0 0 var(--col-11);\r\n    }\r\n    .col-lg-12 {\r\n        flex: 0 0 var(--col-12);\r\n    }\r\n    .col-lg-unset {\r\n        flex: unset;\r\n    }\r\n}",""]),t.exports=e},db3a:function(t,e,a){t.exports=a.p+"img/[email protected]"},db5c:function(t,e,a){t.exports=a.p+"img/[email protected]"},dc45:function(t,e,a){},dca8:function(t,e,a){t.exports=a.p+"img/plus.78921324.svg"},dcab:function(t,e,a){},dcfb:function(t,e,a){t.exports=a.p+"img/[email protected]"},dcfe:function(t,e,a){t.exports=a.p+"img/ios-share-icon.71644fe6.svg"},dd6d:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"multiple",class:{error:t.error}},[e("div",{staticClass:"multiple__values"},t._l(t.value,(function(a,n){return e("span",{key:n,staticClass:"value"},[t._v(t._s(""===a?"?":a))])})),0),e("input",{staticClass:"multiple__input",attrs:{id:"multipleInput",type:"text",readonly:t.readOnly},domProps:{value:t.input},on:{input:function(e){return t.handleInput(e)},keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"]))return null;0===t.input.length&&t.popItem()},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.pushItem()},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleEnter(),t.$emit("enter")}]}})])},i=[],s=a("5530"),o=(a("498a"),a("1047")),r=a("2f62"),l={mixins:[o["a"]],props:{input:{type:String,default:""},readOnly:{type:Boolean,default:!1}},computed:Object(s["a"])({},Object(r["c"])(["stoperNumbers"])),methods:{pushItem(){this.$emit("change",this.value.concat(this.input.trim())),this.$emit("input","")},handleInput(t){const e=t.target.value;if(e.endsWith(".")||e.endsWith(",")){const t=e.slice(0,-1).trim();t&&this.$emit("change",this.value.concat(t)),this.$emit("input","")}else" "!==e&&this.$emit("input",e)},popItem(){this.$emit("change",this.value.slice(0,-1))},handleEnter(){return this.input||!this.stoperNumbers.length?this.pushItem():null}}},c=l,d=(a("344e"),a("2877")),u=Object(d["a"])(c,n,i,!1,null,"380ef98f",null);e["default"]=u.exports},ddd5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMPSURBVHgB7ZhJjtpAFIYfqBHThtzAuQGcIGaBxLAIN8B9giYnaPcJOn0CnBMENoBgEW4QbgBH6BULxvzPKksWoezyRFpKfVJhG8r2G+oNBZFGo9Fo/mdylAKmadbK5bKF0y8Y9VwuZ/h+XvO4XC6T2Ww2ppRJrECn0+nn8/kRBKwpTN+ez+fmfD7fUkokUqDX671C8CGf47jCYYLj2C9gt9utQ2j2yrPwzPvhcGgul8s1pUBsBSDYMw42CwShX7A8vgfN7/f7tf1+z/Of+B4o1UjDE7EUgPAWDiMWBKM5nU6VrYkl58ATA/YYlG5SQvIUD7Y+L5uXKMIzxWJxCAXeMcx2u21SQiJ7wLM+hN/Cgp8pBniGTcIIPmJlqzge+M
1ofbH2KCda/c+PrOoYFz/yEght4xyAFIivg5fjT6RQ7i/iDF0swxwOnDSj2yJ7FuYHU/LvVatXDnhVZAbzAfWjSNMiCCmFdOJagmIMYaeDyDaNWKBR+hXlCKQa40lYqlSe80PI8IKyWGarZKtQDKFaDarW6wantCe+3XFaoZqtABRBMbHWH2wS2BLcBu93uU9zsE4XxeMwF8s0VMp8fyOY9yH7gtQftbTyEL7nS2nRnOFtBeE63pmyO1AN8o2jQHKx3m/4BvmxlyOZIFYD13WwDK/ygD4xUAS9dwgorUoCLDw9KEe5khSzSlB2ahTiFkhoGBbg6Jq4CWA1SBR4Cbt5iGKVSiR+ykk0SVjd81xz1W8RNokwlDOf2S8fjcSKbF+QBd+3zRiRgDoksFfpdVFB7+L0G15zFYiFt7qTVlDcg2DltRCayYdHA5k1YXlqhvfgI84yo+q84tUhh4yP1ABcSNGzfxKUNAUZBFfG6t7mBQQExwnWHd3mi6lskNkthu7bQfgY9ydBXEzyU1/h1jFzff+t3rvoYjypbztAsxHtdeKKBB3JMrMULSJWwGPHOhfccble4eUvzn4tIyOoBx4gXJ2nyQOlj3Poyqw42tZ4+bK1nRdx/Jf4iq3pwd7Ja6zJSj4F77NY0Go1Go9F8FP4Aw3yxOa90rCMAAAAASUVORK5CYII="},ddd9:function(t,e,a){},de9d:function(t,e,a){},deec:function(t,e){},df16:function(t,e,a){},df5f:function(t,e,a){},dfd9:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"info-box--grey"},[e("div",{staticClass:"form__section"},[t._t("default")],2)])},i=[],s=(a("c2b5"),a("2877")),o={},r=Object(s["a"])(o,n,i,!1,null,"042ac73c",null);e["default"]=r.exports},e0d6:function(t,e,a){},e11d:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".promote-competition__poster-box {\n    height: 296px;\n    border-radius: 4px;\n    display: flex;\n}\n\n.promote-competition__poster {\n    -o-object-fit: fill;\n       object-fit: fill;\n    overflow: hidden;\n    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1), 0 0 2px 0 rgba(0, 0, 0, 0.2);\n    border-radius: 4px;\n}\n\n.promote-competition {\n    display: flex;\n    flex-direction: column;\n    margin: -148px auto 0 auto;\n    width: 208px;\n}\n\n.promote-competition__category {\n    font-weight: bold;\n    width: 100%;\n}\n\n.promote-competition__title {\n    margin-top: 6px;\n    width: 100%;\n}\n\n.promote-competition__place {\n    margin-top: 12px;\n    width: 100%;\n    line-height: 1.43;\n}\n\n.promote-competition__date {\n    width: 100%;\n    line-height: 1.43;\n}\n\n.promote-competition__price {\n    margin-top: 8px;\n    margin-bottom: 16px;\n    line-height: 1.71;\n}\n\n.promote-competition__hint {\n    margin-top: 16px;\n    display: flex;\n    align-items: center;\n    margin-bottom: 20px;\n    \n}\n\n.promote-competition__hint--hide {\n    display: none;\n}\n\n.promote-box--competition {\n    margin-top: 164px;\n}\n\n@media(min-width: 768px) {\n    .promote-competition {\n        margin: 0;\n        flex-direction: row;\n        width: 100%;\n        min-height: 260px;\n\n    }\n\n    .promote-competition__price {\n        margin-bottom: 0;\n    }\n\n    .promote-competition__info {\n        margin:0;\n        padding: 24px 24px 28px 54px;\n        width: 100%\n    }\n    .promote-competition__poster-box {\n        width: 215px;\n        height: auto;\n        max-height: 314px;\n        margin-top: -24px;\n        margin-left: 24px;\n        margin-bottom: -20px;\n    }\n    .promote-competition__title {\n        margin-top: 4px;\n    }\n    .promote-competition__place {\n        margin-top: 4px;\n    }\n\n    .promote-box--competition {\n        margin-top: 40px;\n        margin-bottom: 35px;\n        display: flex;\n    }\n\n    .promote-competition__hint {\n        position: absolute;\n        bottom:0;\n        margin: 0\n    }\n}",""]),t.exports=e},e19f:function(t,e,a){},e1c5:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,":root {\r\n    --color-white: #ffffff;\r\n    --color-red-orange: #ff3d00;\r\n    --color-pinky-red: #ff1744;\r\n    --color-pinky-red-10: rgba(255, 23, 68, 0.1);\r\n    --color-pale-grey: #edf0f1;\r\n    --color-cool-grey: #b0bec5;\r\n    --color-slate-two: #546e7a;\r\n    --color-gray-hover: #546e7a0d;\r\n    --color-gray-hover-dark: #546d781a;\r\n    --color-dark-pastel-green: #50ae55;\r\n    --color-greyish-brown: #4a4a4a;\r\n    --color-black: #000000;\r\n    --color-light-sage-40: rgba(184, 233, 134, 0.4);\r\n    --color-slate: #455a64;\r\n    --color-charcoal-grey: #37474f;\r\n    --color-lipstick: #e62e53;\r\n    --color-bluish-grey: #78909c;\r\n    --color-light-sage: #b8e986;\r\n    --color-silver: #dbe3e6;\r\n    --color-light-grey: #f0f2f2;\r\n    --color-charcoal-grey-two: #38474f;\r\n    /* Missing in styleguide on zeplin */\r\n    --color-light-slate: #3e5059;\r\n    --breakpoint-xs: 0;\r\n    --breakpoint-sm: 576px;\r\n    --breakpoint-md: 768px;\r\n    --breakpoint-lg: 992px;\r\n    --breakpoint-xl: 1200px;\r\n    --col-0: 0;\r\n    --col-1: 8.333333%;\r\n    --col-2: 16.666666%;\r\n    --col-3: 25%;\r\n    --col-4: 33.333333%;\r\n    --col-5: 41.666666%;\r\n    --col-6: 50%;\r\n    --col-7: 58.333333%;\r\n    --col-8: 66.666666%;\r\n    --col-9: 75%;\r\n    --col-10: 83.333333%;\r\n    --col-11: 91.666666%;\r\n    --col-12: 100%;\r\n    --animation-slow: 1s;\r\n    --animation-fast: 0.1s;\r\n}\r\n",""]),t.exports=e},e251:function(t,e,a){},e278:function(t,e,a){t.exports=a.p+"img/list-number.d298f75e.svg"},e2b3:function(t,e,a){var n={"./01d.png":"4401","./01n.png":"5eb9","./02d.png":"7cd5","./02n.png":"c3ba","./03d.png":"c1bf","./03n.png":"ff0f","./04d.png":"a8f71","./04n.png":"f606","./09d.png":"4689","./09n.png":"73c1","./10d.png":"a56a","./10n.png":"62f5","./11d.png":"eacc","./11n.png":"eb57","./13d.png":"6beb","./13n.png":"ddd5","./50d.png":"2988","./50n.png":"09ae"};function i(t){var e=s(t);return a(e)}function s(t){if(!a.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)}
1,i.resolve=s,t.exports=i,i.id="e2b3"},e2c3:function(t,e,a){},e3d9:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-6 col-lg-4"},[e("div",{staticClass:"item-competition--small"},[e("router-link",{staticClass:"pointer",attrs:{tag:"div",to:{name:"minisite-landing",params:t.competition,alias:!0}}},[e("base-item-competition-icon-photo",{attrs:{competition:t.competition,"competition-layout":t.layout}}),e("div",{staticClass:"pa16"},[e("h4",[t._v(t._s(t.competition.name))]),e("div",{staticClass:"item-competition__status",class:{"item-competition__status--open":2===t.competition.status,"item-competition__status--close":2!==t.competition.status}},[t._v(" "+t._s(t._f("asStatus")(t.competition.status))+" ")]),e("p",[t._v(t._s(t.competition.location))]),e("p",[t._v(t._s(t._f("asTime")(t.competition.startedTime)))])])],1)],1)])},i=[],s=a("5530"),o=a("2f62"),r={props:{id:{type:Number,required:!0}},computed:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["say","competitions","layoutsBy"])),{},{competition(){return this.competitions[this.id]},layout(){return this.layoutsBy(this.competition)[0]}})},l=r,c=(a("6c4f"),a("2877")),d=Object(c["a"])(l,n,i,!1,null,"0588cf44",null);e["default"]=d.exports},e43c:function(t,e,a){},e578:function(t,e,a){},e587:function(t,e,a){},e5aa:function(t,e,a){},e5b0:function(t,e,a){},e5be:function(t,e,a){"use strict";a("73ab")},e5ea:function(t,e,a){"use strict";a("bb8d")},e609:function(t,e,a){},e629:function(t,e,a){"use strict";a("61b9")},e6ca:function(t,e,a){t.exports=a.p+"fonts/fa-regular-400.9efb8697.woff2"},e6e2:function(t,e,a){},e767:function(t,e,a){"use strict";a("6961")},e78c:function(t,e,a){"use strict";a("ddb0"),a("14d9");e["a"]={methods:{async inputFileHandler(t,e){const{files:a}=t.target,n=await this.createBinaryFileList(a,e),i=this.updateWithCurrentFileList(n);this.$emit("input",i)},updateWithCurrentFileList(t){let e=[];for(const a of t){const t=this.value.find(t=>t.name===a.name);t||e.push(a)}return e=e.concat(this.value),e},deleteFile(t){const e=this.value.findIndex(e=>e.name===t.name);e>=0&&(this.value.splice(e,1),this.$emit("input",this.value))},async createBinaryFileList(t,e="string"){const a=[],n=[];for(const i of t)n.push(new Promise((t,n)=>{const s=new FileReader;s.onload=e=>{t(a.push({name:i.name,content:e.target.result,mime:i.type}))},s.onerror=n,"base64"===e?s.readAsDataURL(i):s.readAsBinaryString(i)}));return await Promise.all(n),a},async createBase64FileList(t){const e=[],a=[];for(const n of t)a.push(new Promise((t,a)=>{const i=new FileReader;i.onload=a=>{t(e.push({name:n.name,content:a.target.result.split("data:text/csv;base64,")[1],mime:n.type}))},i.onerror=a,i.readAsDataURL(n)}));return await Promise.all(a),e},async dropFileHandler(t){const{files:e}=t.dataTransfer,a=await this.createBinaryFileList(e),n=this.updateWithCurrentFileList(a);this.$emit("input",n)},updateError(){this.$emit("update:error",null)}}}},e7ab:function(t,e,a){t.exports=a.p+"img/stopper.db30bbcb.svg"},e815:function(t,e,a){"use strict";a("3baa")},e81e:function(t,e,a){t.exports=a.p+"img/logo-ap-white.b512a684.png"},e95af:function(t,e,a){"use strict";a("3a52")},e9e1:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-checkbox"},[e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{name:t.name,type:"checkbox"},domProps:{value:t.checkboxValue,checked:Array.isArray(t.innerValue)?t._i(t.innerValue,t.checkboxValue)>-1:t.innerValue}
1,on:{change:[function(e){var a=t.innerValue,n=e.target,i=!!n.checked;if(Array.isArray(a)){var s=t.checkboxValue,o=t._i(a,s);n.checked?o<0&&(t.innerValue=a.concat([s])):o>-1&&(t.innerValue=a.slice(0,o).concat(a.slice(o+1)))}else t.innerValue=i},t.onChange]}}),e("span",[t._t("default")],2)])])},i=[],s={name:"BaseInputCheckbox",props:{value:{type:null,default:""},checkboxValue:{type:null,default:""},name:{type:null,default:""}},data(){return{innerValue:""}},watch:{innerValue(t){this.$emit("input",t)},value(t){this.innerValue=t}},created(){this.value&&(this.innerValue=this.value)},methods:{onChange(t){this.$emit("input",t.target.value)}}},o=s,r=(a("7876"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"1c3b8742",null);e["default"]=l.exports},ea63:function(t,e,a){},ea8e:function(t,e,a){},eacc:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAM2SURBVHgB7Ze7bhpBFIYPxHc35A2ILFspoUsXKCwZKMwbgJ8A3gBcpor9BJAuXaABBEX8BiEdBZK3Tec0KOKa/1/NSiuZYe803k8adpednTm3OWdGJCYmJibmLZOQEMjlcqnT09Mqbj+jZRKJRNr2esy22Wy6/X6/IyETWIFCoVBOJpMtCJhy0d1Yr9f5wWBgSEgEUqBUKn2F4HXe4/qESxfXjl3AYrGYgdD0SkN55mWxWORHo9FYQsC3AhCsgUuTAkHoe4THw67+5XI5NZ/P2b/Gb6BUNgxP+FIAwldxaVEQtHyv13NtTYRcG56o0GNQOi8BSYo/aH2Gzb0X4cnx8XEdCryg5W5ubnISEM8esKwP4Q1Y8IP4AGM0RRnBhq9s5ccDt/yh9cUniP/2lr8zaFV45gcUfIZ30uICzwpYOX61WvnOIvbFixBMsOE2C8Xu6Fncp5Gaf11fX2ecxvKsACYwBw2aBimoEtaEawmKtbFGsnh8REsdHh7+dPKEqzXASnt2dlbDhFXLA8pqkeE2Wzl6AMWqcn5+/ozbpiW83XJR4TZb7VQAi4lWb3ObQEtwGzCbzd77zT5e6HQ6LJCPppDJZEXX70D3grEH7ZsYhI+stE3ZM8xWEJ7pNqfro/UAP1QbtDbivSkeYSpkkwDYslVa10erAKxvZhtY4Zt4hBs4Tqq8FylaBax0CSs8iXcyaozfEgBlCI6jTdmOWYgpVLxzq65BDzCmAogGXwoY/Dk5OXGshrqJg1RrZThzv7RcLru6frsUMGOfBxHxgC3+jSDVGrWnYY0zHA61ntQqcHR09GAVEnV4cUug+KflMV9LnfRYC3aeGd7pXkwmk38XFxd/oECZ415eXqbx/Hc6nRqyA/Sjsh8x8Rf0de0B1p2rq6saDPcdj59EHZZQfya7vnPcz2BPUrfVBAsDtWFrNVa5P60Z7tV32/qz6qPduTlyOmYhnnWxGLMYkGtirCbQ9vf6zvpP7a/a3K5w8+b2vBzpjtLCOsVBuC4EK0uI+D0TeyWsuvCKfSkQuC7oiFyBsOqCjn14IJR9kY59KBBZ/JO9eSCK+CcHEjEqz0cS/zExMTExMf8Bzou09qvYFesAAAAASUVORK5CYII="},eb2b:function(t,e,a){t.exports=a.p+"img/[email protected]"},eb2f:function(t,e,a){"use strict";a("10a3")},eb3e:function(t,e,a){},eb57:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAM2SURBVHgB7Ze7bhpBFIYPxHc35A2ILFspoUsXKCwZKMwbgJ8A3gBcpor9BJAuXaABBEX8BiEdBZK3Tec0KOKa/1/NSiuZYe803k8adpednTm3OWdGJCYmJibmLZOQEMjlcqnT09Mqbj+jZRKJRNr2esy22Wy6/X6/IyETWIFCoVBOJpMtCJhy0d1Yr9f5wWBgSEgEUqBUKn2F4HXe4/qESxfXjl3AYrGYgdD0SkN55mWxWORHo9FYQsC3AhCsgUuTAkHoe4THw67+5XI5NZ/P2b/Gb6BUNgxP+FIAwldxaVEQtHyv13NtTYRcG56o0GNQOi8BSYo/aH2Gzb0X4cnx8XEdCryg5W5ubnISEM8esKwP4Q1Y8IP4AGM0RRnBhq9s5ccDt/yh9cUniP/2lr8zaFV45gcUfIZ30uICzwpYOX61WvnOIvbFixBMsOE2C8Xu6Fncp5Gaf11fX2ecxvKsACYwBw2aBimoEtaEawmKtbFGsnh8REsdHh7+dPKEqzXASnt2dlbDhFXLA8pqkeE2Wzl6AMWqcn5+/ozbpiW83XJR4TZb7VQAi4lWb3ObQEtwGzCbzd77zT5e6HQ6LJCPppDJZEXX70D3grEH7ZsYhI+stE3ZM8xWEJ7pNqfro/UAP1QbtDbivSkeYSpkkwDYslVa10erAKxvZhtY4Zt4hBs4Tqq8FylaBax0CSs8iXcyaozfEgBlCI6jTdmOWYgpVLxzq65BDzCmAogGXwoY/Dk5OXGshrqJg1RrZThzv7RcLru6frsUMGOfBxHxgC3+jSDVGrWnYY0zHA61ntQqcHR09GAVEnV4cUug+KflMV9LnfRYC3aeGd7pXkwmk38XFxd/oECZ415eXqbx/Hc6nRqyA/Sjsh8x8Rf0de0B1p2rq6saDPcdj59EHZZQfya7vnPcz2BPUrfVBAsDtWFrNVa5P60Z7tV32/qz6qPduTlyOmYhnnWxGLMYkGtirCbQ9vf6zvpP7a/a3K5w8+b2vBzpjtLCOsVBuC4EK0uI+D0TeyWsuvCKfSkQuC7oiFyBsOqCjn14IJR9kY59KBBZ/JO9eSCK+CcHEjEqz0cS/zExMTExMf8Bzou09qvYFesAAAAASUVORK5CYII="},ebb7:function(t,e,a){"use strict";a("557c")},ebf4:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{class:{"switch-slot":t.label,icons:t.icons}},[e("label",{staticClass:"switch"},[e("input",t._b({attrs:{type:"checkbox"},domProps:{checked:t.checked},on:{change:function(e){return t.$emit("input",e.target.checked)}}},"input",t.$attrs,!1)),e("span",{staticClass:"check"}),t._t("default")],2)])},i=[],s={name:"BaseInputSwitch",inheritAttrs:!1,props:{checked:{type:Boolean,required:!0},label:{type:Boolean,default:!1},icons:{type:Boolean,default:!1}}},o=s,r=(a("1683"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"21b61428",null);e["default"]=l.exports},ec77:function(t,e,a){t.exports=a.p+"img/[email protected]"},ec8c:function(t,e,a){t.exports=a.p+"img/edit-pencil.ab05fd35.svg"},ecd8:function(t,e,a){t.exports=a.p+"img/arrow-left.61ac27df.svg"},ecf4:function(t,e,a){t.exports=a.p+"img/fa-brands-400.804f83c4.svg"},ed6e:function(t,e,a){"use strict";a("a46a")},ed89:function(t,e,a){"use strict";a("b9fb")}
1,ee77:function(t,e,a){"use strict";a("20a8")},ef15:function(t,e,a){"use strict";a("4ee6")},efc5:function(t,e,a){"use strict";a("969e")},f013:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"border-box",class:[t.horizontal?"border-box--horizontal d-flex":"border-box--vertical",{noBorder:!t.border,shadow:t.shadow}]},[t._t("default")],2)},i=[],s={props:{horizontal:{type:Boolean,default:!1},border:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}}},o=s,r=(a("0ac0"),a("2877")),l=Object(r["a"])(o,n,i,!1,null,"d0cc902e",null);e["default"]=l.exports},f074:function(t,e,a){t.exports=a.p+"img/fa-solid-900.7a5de9b0.svg"},f0e8:function(t,e,a){"use strict";a("82bc")},f121:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"n",(function(){return o})),a.d(e,"d",(function(){return r})),a.d(e,"j",(function(){return l})),a.d(e,"o",(function(){return c})),a.d(e,"m",(function(){return d})),a.d(e,"k",(function(){return u})),a.d(e,"l",(function(){return p})),a.d(e,"r",(function(){return m})),a.d(e,"h",(function(){return f})),a.d(e,"g",(function(){return h})),a.d(e,"i",(function(){return b})),a.d(e,"p",(function(){return _})),a.d(e,"q",(function(){return v})),a.d(e,"f",(function(){return g})),a.d(e,"s",(function(){return y})),a.d(e,"e",(function(){return C}));const n="https://api.dostartu.pl",i="https://api.dostartu.pl",s=3e4,o=!0,{BASE_URL:r}=Object({NODE_ENV:"production",VUE_APP_API_ADDRESS_NO_CACHE:"https://api.dostartu.pl",VUE_APP_API_ADDRESS:"https://api.dostartu.pl",BASE_URL:"/app/"}),l="https://facebook.com/dostartu",c="[email protected]",d="1358144",u="UA-47267144-14",p="GTM-N8R24ZG",m=6e4,f=6048e5,h=604800010,b=604800020,_=[1,6,11,16,21,26,29,31,36,39,41,46,51,60,66,77,89,91,99],v={info:1,open:2,close:3,live:4,unofficial:5,official:6},g={chronotrack:"CHR",jkr:"JKR",raceResult:"RAR",gepard:"GEP",stoper:"STP",system:"SYS"},y={start:"STA",meta:"MET",checkpoint:"CHK",buffet:"BUF",return:"RET",change:"CHA",fans:"FAN",office:"OFF",parking:"PAR"},C={running:1,mountain_running:6,ski_running:11,ocr:16,nordic_walking:21,duathlon:26,swimrun:29,cycling:31,mtb:36,adventure_trip:39,rolls:41,triathlon:46,skiing:51,swiming:60,water_sport:66,camp:77,kids:89,shooting:91,other:99}},f169:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("imask-input",{staticClass:"input-mask input-mask--border",attrs:{value:t.value,mask:t.mask,unmask:!1,placeholder:t.placeholder,overwrite:!0},on:{input:function(e){return t.$emit("input",e)},accept:t.onAccept,complete:t.onComplete}})},i=[],s=(a("4d63"),a("c607"),a("ac1f"),a("3f1c")),o={components:{"imask-input":s["a"]},props:{placeholder:{type:String,default:""},mask:{type:[String,RegExp],required:!0},value:{type:String,required:!0}},methods:{onComplete(t){this.$emit("complete",t)},onAccept(t){this.$emit("accept",t)}}},r=o,l=(a("4da6"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,"bc41ada0",null);e["default"]=c.exports},f339:function(t,e,a){},f426:function(t,e,a){"use strict";a("0751")},f43a:function(t,e,a){},f606:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOvSURBVHgB7VjLcdpAGF6Y+H0hFQRXEKggcPCMHweTCiwqgFSAXIHtCpArML7YHvtgOog7sErg5GF45vuUX5Md0EpCCJiJ9c0sWqFd7f9+SKkMGTJkyPCZkVMpoFKpFPb29ixMz/P5fGk6nRbk0RvHZDK5fHp6ctUKsDQDp6enjVwuZ2tEm+CsgpG8WgIgvoXLNYnH6ILAOsbhw8NDjgPzKv6/leUWtPN6fHxcVCkisQaEeJtzEPnr8fHx2rSWRIP4O0xLGO7Hx0e52+32VApIpAGRoi239TDiCZrN9vZ2Vf31ieL+/v6VSgmJGIA0WzJ1YCpOnD2dTqcHk/oJf+lBYyWVEr4sslhMgc5q8Z5OucB2TxN4R7nf76diPkSkD5BoSK0Bwi090tBpYTpVtWGEauDs7OxC/YsyJNoVEyAj97PrtXzwA6OEtUXtsZcTsPcejHdUSjBq4OTkpAYC7uTWGQ6HNy8vL29h66Gldox8QLgMsWnkhEAGxNZfMS1iXMJR7ZB3UFNXILzJOU0Ll3tcOzqBCLslEE2ttEQzPQilGiaUxAyAoCYIYKhjlKmHvUDLBzSty6iQWqvVCoPBgOsb3AOmystowuQDtH1GmduwzSDeUkI8RhXER0qT4RSXJkyuAE1cYLS5VyVEYB7w4zTCXRRBLVlPM1vIFHZ2dpoMCBgVmGxFJUSgCUGyU15Zz5g2ivTptC4kf6gSAO+wlQhBw0LRypSJXTngmzLjnD+UvkoImKgT8De1bzEC4vz3qOLPxIAf440O7Mf48XicOIrozutXsJiWWdVSs5gzGv4+Ojoylh6BDOAFvuoaTE5Ba3w/WTYMklAh1gN9CYw58JEybm8wCltbW8YyPMzGbVwaepgjM6gkGzjQ8jUQ5idpANHKYbQylS6xD9fLCv+/ZRw4Lpg3kPDeea5k767+PFY5zbYRL3C0zquKpuTrqoknmDdwJk2JZfzF7PPIclqqUfa8vGWmtdWawWglPUhl9lmkBrhRzMaJqolWBS1aFWefRTIA6XvRJqqs2BQiGfDD5azzrBOsZIWWuZAduyc25YM1wWMA1pCIAZc/u7u7qTXii0AE59VLo9ForguMw4Bn+2xE1AZwcHDAc4vMOc/Pz3PFXSQD+J5z7Ze90rysBZQ8zmtLp8dcENgzxMrEyAX8LNiWW37jvF2VU0s7y0anKeHba5ZM/UbsUgI1SVPLCWsBsz5GPazlXKgQ87MyxnclkSFtyKeb7iq1nCFDhgwZ/h/8AWDzE5DCcfQ6AAAAAElFTkSuQmCC"},f645:function(t,e,a){t.exports=a.p+"img/novelty-participation-transfer.1d75c02f.png"},f66d:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAARCAYAAAAVBKQtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASASURBVHgBzVqBdRoxDBWdgE4Qd4LQCXKdIMkEoRPABqET0ExwZIKECe4yAekEd0wAG7gWyKATts53kLT/PT/7bEmWbdmWBQNr7RAA7uCIrU+DweAdEuBkZC67cckwGcj75mTU0BNMt2uXhlSNcpdSLulg2qVC7XhL6AHXx8Rla8f/qtDI+Tz0S33XkN5fTJbEbr69bMc3xsx9PytyH1xa4kdl48C2B4grOGrhR8ygB0j2RpGb00B2A7bdkEFHiD6GCl3e0vdc4xeyKpuOF+K5Y3WjiNw5tW8gUfhKKm1PF2hDdIU9Xbg5dICjN2LwG5K7EnILos9sOlCWgY4Q+jwqdEWCDi89+mzDnHi4od5E5OaegBvAi0tXlEYkqLKRQYu2E6sO8GeiHRe5sPtFHYm2idKv50NU0D55hUIT1UHQSQPbKLQH3dh8+jmtlPmYUvtckc0X9yqBppMB5BCeIL+bMQ8duTmkTVwh2vhRNY8qqE+GtmhVqN+ADA9tV+f2FFmEtqD2KtCWKWPmp9swQd+LGMAXUEBOxW/6RKVuqcwFPyn8pctK+szEwLasLJ3Nd6bsFMKyF6lOqoI6UgbWv3HZmD4XcNQ7ajCJ/clF9nLRUdzCJ+FLAs2SlUciT3kp8HbjC2QcX7Eu4K3+YeU5WWwGF0aLDh4ZKy8o7eptojPHYFh5K3T5Qe3f4RORYgA1K/sBG8pTdiBfzGvegJbu0loy0MLMWNXYpYKO9dz2cOJiiOnA4Hc67sw3aG6ICSSCrit+7L8GdFl/5u5HtBqAUMhQ3tXyO8P1+wv2u6GEZv9jl9AQZvDBsM3Ywoz0KplOU4XdcIfBfa/geHKWZEz/HK0GELm3a8q7GkIn68brhY7Gb7Cf7Jo1P2qO24XAYyADcuIypsewx9VUunQP/wlSrgDDyrXSFgP3VhsGgMaVco+iM+rSk0toCD+ZnGmPexhSdBDOHwJfOwUlXh8zwi3RLVjdDA06dsxf8mpLRYoB3LKyv/NLylN2AG8/+AM0WHxP4/OyEW3UFhW9fzj6B0h3DT1B93JQB2jqrSHmDKJv8ewSGqyft5nyfEQDq6wS2/gIqAYQ2AX+3uIe80Thz+A4kaWw/IyVR6LPihw+Ax8LHkcwos3vbNT5Dvb68jRmtG3O4D0cT608Mq7M63HmqcbnOBYnObziZCTQUMKoFVrrRglcVKxtJgdF9yWnOdnldh/8aCw09e1RBfhkmDgWNPE0WiAoRQct0HUIkrG6wusuaKdMZii0fqlI4JDp1RgXtc8aY7NpKAIdhX6sWVGS9Z2cNaQX/BsaTCXqtcWpYron9J+zPgyk6ZlRXUHfoUjgou+cEH+rAQT0sqRTEZg/A7b910AtRGpa+HHhkt/KQva0RXZu9V/lCj946Ai7Pw1bee1+t3k8CN5VhL46Qy9uAMMW2rnV12WnLz5tDDR/b0fUsA98rBP0ws4wNJzB6f8BlucENmiQXjb/P8B72zuaxoWDfO76n4QuvI4W/YMrfKWk8J6jF/GPXValxBGoL3Tij3e+WJe/Gnl5Bd2eTTIAAAAASUVORK5CYII="},f6aa:function(t,e,a){"use strict";a("d92d")},f6c3:function(t,e,a){t.exports=a.p+"img/[email protected]"},f741:function(t,e,a){"use strict";a("2337")},f83b:function(t,e,a){t.exports=a.p+"img/[email protected]"},f8dc:function(t,e,a){"use strict";var n=a("2b0e");e["a"]=new n["default"]},f93c:function(t,e,a){t.exports=a.p+"img/sliders.6b1c7327.svg"},f97d:function(t,e,a){"use strict";a("034b")},fa49:function(t,e,a){"use strict";a("2c8b")},faf2:function(t,e,a){t.exports=a.p+"img/logo-mastercard.67083553.svg"},faf5:function(t,e,a){},fc4f:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-field input-field--track pointer",on:{click:function(e){t.clickHandler(),t.$emit("click")}}},[t.value.length?e("p",{staticClass:"input-field__file-name"},[t._v(" "+t._s(t.value[0].name)+" ")]):e("p",{staticClass:"input-field__hint"},[t._v(" "+t._s(t.placeholder)+" ")]),e("input",{ref:"file",staticClass:"input-field__input-file",attrs:{type:"file",multiple:t.isMultiple,accept:t.accept,disabled:t.disabled},on:{change:t.fileHandler}}),e("base-button",{staticClass:"btn-add",attrs:{btn2:"",icon:"fas fa-plus",disabled:t.disabled},on:{click:function(e){return t.clickHandler()}}}),e("span",{staticClass:"input-error input-error--show"},[t._v(t._s(t.say[t.error]||t.error))])],1)},i=[],s=a("5530"),o=a("1047"),r=a("e78c"),l=a("2f62"),c={mixins:[o["a"],r["a"]],props:{converter:{type:String,default:"string"}},computed:Object(s["a"])({},Object(l["c"])(["say"])),methods:{fileHandler(t){this.inputFileHandler(t,this.converter)},clickHandler(){this.$refs.file.click(),this.updateError()}}},d=c,u=(a("cc5e"),a("2877")),p=Object(u["a"])(d,n,i,!1,null,"5335c6c7",null);e["default"]=p.exports},fd7b:function(t,e,a){"use strict";a("6048")},fe10:function(t,e,a){t.exports=a.p+"img/novelty-gps.e524f41b.png"},fe28:function(t,e,a){t.exports=a.p+"img/[email protected]"},fea7:function(t,e,a){t.exports=a.p+"img/[email protected]"},fec0:function(t,e,a){},ff04:function(t,e,a){"use strict";a("3951")},ff0f:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKbSURBVHgB7ZfJkRoxFIZFl9kvOAMcgSECNweqWA4mA5gIhgymJwLPREA7AsMFKDiYDDwZDCHMiQOr/79LXdUHq/cG14y+KiE1CPVbpPeehNBoNBqNRqP5uORECpimWSuXyyMMv6E1crlc3fPzC9vlcpktFoupSJnECnS73YFhGBMIWAsxfXs+n1vL5XIrUiKRAv1+/wcEH3OMfoNuhn7qFbDX6zUgNL3yID3zdjgcWuv1+kWkQGwFINgDOosCQehHbI8nv/mDwaC23+85/57/gVLNNDwRSwEIP0I3oSBorfl8Htqa2HI2PDGkx6B0SyTEEPGg9bltHqMIT4rF4hgKvKGZnU7HFAmJ7AHX+hB+Cwt+ETHAGpaQRvAQK1rF8cB3ftD6IibY//Y/vm6gjeCZX1DwFd6pixBEVsCN8afTKXYU8R5ebMEcG4ZNKHZHz2Jc
1R2j+0263G0FrRVYAL3AWTRoGKagU1oFnCYrZOCNNPD6j1fL5/O8gT4Q6A8y0lUrlHi8cuR6QVsuMsNEq0ANIVsNqtfqKoeUK77VcVoSNVr4K4DDR6jbLBFqCZcBut/scN/pEYTqdMkE+O0IaxlA175PqB+49aG9hET4y01riyjBaQXiGW1M1R+kB/lEWaDb2uyVugCda1VVzlArA+k60gRV+iv8YpQJuuIQVNuJGsJKVsihDdmAUYggVt8NRALshlgJbfpRKpcBsmAXScE69dDweZ6p5fgo4e58XEXEDkHv43jpzzmq1UhZ3SgUKhcKTm0jk5eUq0PJ430Te9JgLfO8MvuUAcsGI9135aDMiZXWomXeYsGCwsQzfoS5LgfUMapKxJydcBWZ9tLswV85QBZmbldG+ChkZ0oZ7HetvsvSyRqPRaDQazXvjL0UGS0tTjO9lAAAAAElFTkSuQmCC"},fff9:function(t,e,a){}});
2//# sourceMappingURL=app.099f14d4.js.map

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.