From 51d11b3cbdc1979f4e96121c47d9b74c470e58a1 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Mon, 2 Nov 2020 19:13:00 +0100 Subject: [PATCH] updating assets --- assets/0.js | 2 +- assets/bolt.js | 2 +- package.json | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/0.js b/assets/0.js index c10133d..529ad74 100644 --- a/assets/0.js +++ b/assets/0.js @@ -23,7 +23,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:l(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?f:c||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(l):l;var u=p(e);return u.host?m(u.host,t):m(e,p(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),i=g(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===t.nodeName,o=T(e),s=T(t),u=l(e),c=a(t),f=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=C({top:o.top-s.top-f,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=h-g,p.right-=h-g,p.marginTop=m,p.marginLeft=g}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(p=v(p,t)),p}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=E(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:g(n),s=t?0:g(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return C(l)}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&M(n)}function A(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function D(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?A(e):m(e,u(t));if("viewport"===r)o=O(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=l(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var f=E(c,a,i);if("HTML"!==c.nodeName||M(a))o=f;else{var d=w(e.ownerDocument),h=d.height,p=d.width;o.top+=f.top-f.marginTop,o.bottom=h+f.top,o.left+=f.left-f.marginLeft,o.right=p+f.left}}var g="number"==typeof(n=n||0);return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function N(e){return e.width*e.height}function L(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=D(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return S({key:e},s[e],{area:N(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?A(t):m(t,u(n));return E(n,i,r)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function P(e,t,n){n=n.split("-")[0];var r=I(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[j(s)],i}function R(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function z(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=R(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function $(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function q(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(R(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return C(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){J(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:_({},l,o[l]),end:_({},l,o[l]+o[u]-a[u])};e.offsets.popper=S({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=J(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=q("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=D(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),_({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=S({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",p=u?"bottom":"right",m=I(r)[c];l[p]-ms[p]&&(e.offsets.popper[d]+=l[d]+m-s[p]),e.offsets.popper=C(e.offsets.popper);var g=l[d]+l[c]/2-m/2,v=a(e.instance.popper),y=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),w=g-e.offsets.popper[d]-y-b;return w=Math.max(Math.min(s[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(_(n={},d,Math.round(w)),_(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=D(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=j(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=j(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)f(c.top)||"bottom"===r&&f(u.top)f(n.right),m=f(u.top)f(n.bottom),v="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&g||!y&&"end"===o&&m),x=b||w;(d||v||x)&&(e.flipped=!0,(d||v)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=S({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=z(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=j(t),e.offsets.popper=C(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=R(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return $.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=oe,t.default=ae}.call(this,n("yLpj"))},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),i=n("0/R4"),o=n("MfQN"),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i1)for(var n=1;n0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},"9B8q":function(e,t,n){"use strict";var r=n("RCuK");n.n(r).a},"9De2":function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},months:{shorthand:["Яну","Фев","Март","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],longhand:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"]},time_24hr:!0,firstDayOfWeek:1};t.l10ns.bg=n;var r=t.l10ns;e.Bulgarian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"9P93":function(e,t,n){var r=n("XKFU"),i=Math.imul;r(r.S+r.F*n("eeVq")((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},"9VmF":function(e,t,n){"use strict";var r=n("XKFU"),i=n("ne8i"),o=n("0sh+"),a="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},"9XZr":function(e,t,n){"use strict";var r=n("XKFU"),i=n("Lgjv"),o=n("ol8x"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"9rMk":function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{has:function(e,t){return t in e}})},"9rSQ":function(e,t,n){"use strict";var r=n("xTJ+");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},A2zW:function(e,t,n){"use strict";var r=n("XKFU"),i=n("RYi7"),o=n("vvmO"),a=n("l0Rn"),s=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*u[n],u[n]=r%1e7,r=l(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=l(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("eeVq")((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,l=o(this,c),u=i(e),m="",g="0";if(u<0||u>20)throw RangeError(c);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*p(2,69,1))-69)<0?l*p(2,-t,1):l/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=u;r>=7;)f(1e7,0),r-=7;for(f(p(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<0?m+((s=g.length)<=u?"0."+a.call("0",u-s)+g:g.slice(0,s-u)+"."+g.slice(s-u)):m+g}})},A5AN:function(e,t,n){"use strict";var r=n("AvRE")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},AdcB:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["Dom","Lua","Mái","Céa","Déa","Aoi","Sat"],longhand:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"]},months:{shorthand:["Ean","Fea","Már","Aib","Bea","Mei","Iúi","Lún","MFo","DFo","Sam","Nol"],longhand:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"]},time_24hr:!0};t.l10ns.hr=n;var r=t.l10ns;e.Irish=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),i=n("XKFU"),o=n("KroJ"),a=n("Mukb"),s=n("hPIQ"),l=n("QaDb"),u=n("fyDq"),c=n("OP3Y"),f=n("K0xU")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,b,w,x=function(e){if(!d&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",_="values"==m,S=!1,C=e.prototype,T=C[f]||C["@@iterator"]||m&&C[m],E=T||x(m),O=m?_?x("entries"):E:void 0,M="Array"==t&&C.entries||T;if(M&&(w=c(M.call(new e)))!==Object.prototype&&w.next&&(u(w,k,!0),r||"function"==typeof w[f]||a(w,f,h)),_&&T&&"values"!==T.name&&(S=!0,E=function(){return T.call(this)}),r&&!v||!d&&!S&&C[f]||a(C,f,E),s[t]=E,s[k]=h,m)if(y={values:_?E:x("values"),keys:g?E:x("keys"),entries:O},v)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),t,y);return y}},Aid2:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return e>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};t.l10ns.fr=n;var r=t.l10ns;e.French=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},AixY:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0,rangeSeparator:" - "};t.l10ns.id=n;var r=t.l10ns;e.Indonesian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},AphP:function(e,t,n){"use strict";var r=n("XKFU"),i=n("S/j/"),o=n("apmT");r(r.P+r.F*n("eeVq")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},AvRE:function(e,t,n){var r=n("RYi7"),i=n("vhPU");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BC7C:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BJ/l":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log1p:n("1sa7")})},BP8U:function(e,t,n){var r=n("XKFU"),i=n("PKUr");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},Btvt:function(e,t,n){"use strict";var r=n("I8a+"),i={};i[n("K0xU")("toStringTag")]="z",i+""!="[object z]"&&n("KroJ")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"C/va":function(e,t,n){"use strict";var r=n("y3w9");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},CX2u:function(e,t,n){"use strict";var r=n("XKFU"),i=n("g3g5"),o=n("dyZX"),a=n("69bn"),s=n("vKrd");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},Cfrj:function(e,t,n){var r=n("RYi7"),i=n("ne8i");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},CgaS:function(e,t,n){"use strict";var r=n("xTJ+"),i=n("MLWZ"),o=n("9rSQ"),a=n("UnBK"),s=n("SntB");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=l},CkkT:function(e,t,n){var r=n("m0Pp"),i=n("Ymqv"),o=n("S/j/"),a=n("ne8i"),s=n("zRwo");e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,d=5==e||f,h=t||s;return function(t,s,p){for(var m,g,v=o(t),y=i(v),b=r(s,p,3),w=a(y.length),x=0,k=n?h(t,w):l?h(t,0):void 0;w>x;x++)if((d||x in y)&&(g=b(m=y[x],x,v),e))if(n)k[x]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:k.push(m)}else if(c)return!1;return f?-1:u||c?c:k}}},CyHz:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},D4iV:function(e,t,n){for(var r,i=n("dyZX"),o=n("Mukb"),a=n("ylqs"),s=a("typed_array"),l=a("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},DNiP:function(e,t,n){"use strict";var r=n("XKFU"),i=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},DVgA:function(e,t,n){var r=n("zhAb"),i=n("4R4u");e.exports=Object.keys||function(e){return r(e,i)}},DW2E:function(e,t,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},DfZB:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},DiE8:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};t.l10ns.sr=n;var r=t.l10ns;e.Serbian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},EBSL:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ne","Po","Út","St","Čt","Pá","So"],longhand:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},months:{shorthand:["Led","Ún","Bře","Dub","Kvě","Čer","Čvc","Srp","Zář","Říj","Lis","Pro"],longhand:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"Týd.",scrollTitle:"Rolujte pro změnu",toggleTitle:"Přepnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};t.l10ns.cs=n;var r=t.l10ns;e.Czech=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},EK0E:function(e,t,n){"use strict";var r,i=n("dyZX"),o=n("CkkT")(0),a=n("KroJ"),s=n("Z6vF"),l=n("czNK"),u=n("ZD67"),c=n("0/R4"),f=n("s5qY"),d=n("s5qY"),h=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,m=Object.isExtensible,g=u.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=p(e);return!0===t?g(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},b=e.exports=n("4LiD")("WeakMap",v,y,u,!0,!0);d&&h&&(l((r=u.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];a(t,e,(function(t,i){if(c(t)&&!m(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},EVdn:function(e,t,n){var r; +var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:l(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?f:c||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(l):l;var u=p(e);return u.host?m(u.host,t):m(e,p(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),i=g(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===t.nodeName,o=T(e),s=T(t),u=l(e),c=a(t),f=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=C({top:o.top-s.top-f,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=h-g,p.right-=h-g,p.marginTop=m,p.marginLeft=g}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(p=v(p,t)),p}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=E(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:g(n),s=t?0:g(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return C(l)}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&M(n)}function A(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function D(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?A(e):m(e,u(t));if("viewport"===r)o=O(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=l(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var f=E(c,a,i);if("HTML"!==c.nodeName||M(a))o=f;else{var d=w(e.ownerDocument),h=d.height,p=d.width;o.top+=f.top-f.marginTop,o.bottom=h+f.top,o.left+=f.left-f.marginLeft,o.right=p+f.left}}var g="number"==typeof(n=n||0);return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function N(e){return e.width*e.height}function L(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=D(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return S({key:e},s[e],{area:N(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?A(t):m(t,u(n));return E(n,i,r)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function P(e,t,n){n=n.split("-")[0];var r=I(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[j(s)],i}function R(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function z(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=R(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function $(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function q(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(R(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return C(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){J(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:_({},l,o[l]),end:_({},l,o[l]+o[u]-a[u])};e.offsets.popper=S({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=J(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=q("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=D(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),_({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=S({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",p=u?"bottom":"right",m=I(r)[c];l[p]-ms[p]&&(e.offsets.popper[d]+=l[d]+m-s[p]),e.offsets.popper=C(e.offsets.popper);var g=l[d]+l[c]/2-m/2,v=a(e.instance.popper),y=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),w=g-e.offsets.popper[d]-y-b;return w=Math.max(Math.min(s[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(_(n={},d,Math.round(w)),_(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=D(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=j(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=j(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)f(c.top)||"bottom"===r&&f(u.top)f(n.right),m=f(u.top)f(n.bottom),v="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&g||!y&&"end"===o&&m),x=b||w;(d||v||x)&&(e.flipped=!0,(d||v)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=S({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=z(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=j(t),e.offsets.popper=C(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=R(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return $.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=oe,t.default=ae}.call(this,n("yLpj"))},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),i=n("0/R4"),o=n("MfQN"),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i1)for(var n=1;n0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},"9B8q":function(e,t,n){"use strict";n("RCuK")},"9De2":function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},months:{shorthand:["Яну","Фев","Март","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],longhand:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"]},time_24hr:!0,firstDayOfWeek:1};t.l10ns.bg=n;var r=t.l10ns;e.Bulgarian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"9P93":function(e,t,n){var r=n("XKFU"),i=Math.imul;r(r.S+r.F*n("eeVq")((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},"9VmF":function(e,t,n){"use strict";var r=n("XKFU"),i=n("ne8i"),o=n("0sh+"),a="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},"9XZr":function(e,t,n){"use strict";var r=n("XKFU"),i=n("Lgjv"),o=n("ol8x"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"9rMk":function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{has:function(e,t){return t in e}})},"9rSQ":function(e,t,n){"use strict";var r=n("xTJ+");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},A2zW:function(e,t,n){"use strict";var r=n("XKFU"),i=n("RYi7"),o=n("vvmO"),a=n("l0Rn"),s=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*u[n],u[n]=r%1e7,r=l(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=l(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("eeVq")((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,l=o(this,c),u=i(e),m="",g="0";if(u<0||u>20)throw RangeError(c);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*p(2,69,1))-69)<0?l*p(2,-t,1):l/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=u;r>=7;)f(1e7,0),r-=7;for(f(p(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<0?m+((s=g.length)<=u?"0."+a.call("0",u-s)+g:g.slice(0,s-u)+"."+g.slice(s-u)):m+g}})},A5AN:function(e,t,n){"use strict";var r=n("AvRE")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},AdcB:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["Dom","Lua","Mái","Céa","Déa","Aoi","Sat"],longhand:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"]},months:{shorthand:["Ean","Fea","Már","Aib","Bea","Mei","Iúi","Lún","MFo","DFo","Sam","Nol"],longhand:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"]},time_24hr:!0};t.l10ns.hr=n;var r=t.l10ns;e.Irish=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),i=n("XKFU"),o=n("KroJ"),a=n("Mukb"),s=n("hPIQ"),l=n("QaDb"),u=n("fyDq"),c=n("OP3Y"),f=n("K0xU")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,b,w,x=function(e){if(!d&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",_="values"==m,S=!1,C=e.prototype,T=C[f]||C["@@iterator"]||m&&C[m],E=T||x(m),O=m?_?x("entries"):E:void 0,M="Array"==t&&C.entries||T;if(M&&(w=c(M.call(new e)))!==Object.prototype&&w.next&&(u(w,k,!0),r||"function"==typeof w[f]||a(w,f,h)),_&&T&&"values"!==T.name&&(S=!0,E=function(){return T.call(this)}),r&&!v||!d&&!S&&C[f]||a(C,f,E),s[t]=E,s[k]=h,m)if(y={values:_?E:x("values"),keys:g?E:x("keys"),entries:O},v)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),t,y);return y}},Aid2:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return e>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};t.l10ns.fr=n;var r=t.l10ns;e.French=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},AixY:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0,rangeSeparator:" - "};t.l10ns.id=n;var r=t.l10ns;e.Indonesian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},AphP:function(e,t,n){"use strict";var r=n("XKFU"),i=n("S/j/"),o=n("apmT");r(r.P+r.F*n("eeVq")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},AvRE:function(e,t,n){var r=n("RYi7"),i=n("vhPU");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BC7C:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BJ/l":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log1p:n("1sa7")})},BP8U:function(e,t,n){var r=n("XKFU"),i=n("PKUr");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},Btvt:function(e,t,n){"use strict";var r=n("I8a+"),i={};i[n("K0xU")("toStringTag")]="z",i+""!="[object z]"&&n("KroJ")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"C/va":function(e,t,n){"use strict";var r=n("y3w9");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},CX2u:function(e,t,n){"use strict";var r=n("XKFU"),i=n("g3g5"),o=n("dyZX"),a=n("69bn"),s=n("vKrd");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},Cfrj:function(e,t,n){var r=n("RYi7"),i=n("ne8i");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},CgaS:function(e,t,n){"use strict";var r=n("xTJ+"),i=n("MLWZ"),o=n("9rSQ"),a=n("UnBK"),s=n("SntB");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=l},CkkT:function(e,t,n){var r=n("m0Pp"),i=n("Ymqv"),o=n("S/j/"),a=n("ne8i"),s=n("zRwo");e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,d=5==e||f,h=t||s;return function(t,s,p){for(var m,g,v=o(t),y=i(v),b=r(s,p,3),w=a(y.length),x=0,k=n?h(t,w):l?h(t,0):void 0;w>x;x++)if((d||x in y)&&(g=b(m=y[x],x,v),e))if(n)k[x]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:k.push(m)}else if(c)return!1;return f?-1:u||c?c:k}}},CyHz:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},D4iV:function(e,t,n){for(var r,i=n("dyZX"),o=n("Mukb"),a=n("ylqs"),s=a("typed_array"),l=a("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},DNiP:function(e,t,n){"use strict";var r=n("XKFU"),i=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},DVgA:function(e,t,n){var r=n("zhAb"),i=n("4R4u");e.exports=Object.keys||function(e){return r(e,i)}},DW2E:function(e,t,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},DfZB:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},DiE8:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};t.l10ns.sr=n;var r=t.l10ns;e.Serbian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},EBSL:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ne","Po","Út","St","Čt","Pá","So"],longhand:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},months:{shorthand:["Led","Ún","Bře","Dub","Kvě","Čer","Čvc","Srp","Zář","Říj","Lis","Pro"],longhand:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"Týd.",scrollTitle:"Rolujte pro změnu",toggleTitle:"Přepnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};t.l10ns.cs=n;var r=t.l10ns;e.Czech=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},EK0E:function(e,t,n){"use strict";var r,i=n("dyZX"),o=n("CkkT")(0),a=n("KroJ"),s=n("Z6vF"),l=n("czNK"),u=n("ZD67"),c=n("0/R4"),f=n("s5qY"),d=n("s5qY"),h=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,m=Object.isExtensible,g=u.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=p(e);return!0===t?g(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},b=e.exports=n("4LiD")("WeakMap",v,y,u,!0,!0);d&&h&&(l((r=u.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];a(t,e,(function(t,i){if(c(t)&&!m(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},EVdn:function(e,t,n){var r; /*! * jQuery JavaScript Library v3.5.1 * https://jquery.com/ diff --git a/assets/bolt.js b/assets/bolt.js index 947cbfa..882bf95 100644 --- a/assets/bolt.js +++ b/assets/bolt.js @@ -1 +1 @@ -!function(t){function e(e){for(var s,r,o=e[0],l=e[1],c=e[2],u=0,m=[];ue?t.substring(0,e-1)+"…":t}));var c=a("EVdn"),d=a.n(c);d()(document).ready((function(){d()(".toast").toast("show")}));var u=a("L2JU"),m={namespaced:!0,state:{toolbarColor:null},getters:{toolbarColor:function(t){return t.toolbarColor}},actions:{toolbarColor:function(t,e){(0,t.commit)("toolbarColor",e)}},mutations:{toolbarColor:function(t,e){t.toolbarColor=e}}};o.a.use(u.a);var p=new u.a.Store({modules:{general:m}}),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"admin__toolbar--body",class:t.contrast?"is-light":"is-dark",attrs:{role:"toolbar"}},[t._m(0),t._v(" "),a("div",{staticClass:"toolbar-item toolbar-item__site"},[a("a",{attrs:{href:"/",target:"_blank"}},[a("i",{staticClass:"fas fa-sign-out-alt"}),t._v(t._s(t.labels["action.view_site"])+" ")])]),t._v(" "),a("form",{staticClass:"toolbar-item toolbar-item__filter input-group",attrs:{action:t.backendPrefix}},[a("input",{staticClass:"form-control",attrs:{id:"global-search",type:"text",placeholder:t.labels["listing.placeholder_search"],name:"filter"},domProps:{value:t.filterValue}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",attrs:{type:"submit",title:t.labels["listing.button_search"]}},[a("i",{staticClass:"fas fa-search",staticStyle:{margin:"0"}})])])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__profile"},[a("button",{staticClass:"btn user profile__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-user"}),t._v(t._s(t.labels["general.greeting"])+"\n ")]),t._v(" "),a("div",{staticClass:"profile__dropdown dropdown-menu dropdown-menu-right"},[a("ul",[a("li",[a("a",{attrs:{href:t.backendPrefix+"profile-edit"}},[a("i",{staticClass:"fas fa-user-edit fa-fw"}),t._v("\n "+t._s(t.labels["action.edit_profile"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:t.backendPrefix+"logout"}},[a("i",{staticClass:"fas fa-sign-out-alt fa-fw"}),t._v("\n "+t._s(t.labels["action.logout"])+"\n ")])]),t._v(" "),a("hr"),t._v(" "),a("li",[a("a",{attrs:{href:"https://boltcms.io/",target:"_blank"}},[a("i",{staticClass:"fas fa-globe-americas fa-fw"}),t._v("\n "+t._s(t.labels["about.visit_bolt"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://docs.bolt.cm/",target:"_blank"}},[a("i",{staticClass:"fas fa-book fa-fw"}),t._v("\n "+t._s(t.labels["about.bolt_documentation"])+"\n ")])])])])])])};f._withStripped=!0;var g=a("Zss7"),h={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:RegExp,filterValue:String},computed:{contrast:function(){return g(this.toolbarColor).isLight()},createMenu:function(){return this.menu.filter((function(t){return!t.singleton&&t.singular_name||t.singleton&&(null===t.submenu||t.submenu.length<1)}))},toolbarColor:function(){return this.$store.getters["general/toolbarColor"]}},created:function(){var t=getComputedStyle(document.body).getPropertyValue("--admin-toolbar");this.$store.dispatch("general/toolbarColor",t)}},v=a("KHd+"),b=Object(v.a)(h,f,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"toolbar-item btn-group toolbar-item__brand"},[e("img",{attrs:{src:"/assets/images/bolt_logo_dashboard.svg",alt:"⚙️ Bolt",height:"26"}})])}],!1,null,null,null);b.options.__file="assets/js/app/toolbar/Components/Toolbar.vue";var _=b.exports;document.getElementById("toolbar")&&new o.a({store:p,el:"#toolbar",name:"BoltToolbar",components:{"admin-toolbar":_}});var y={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(u.a);var w=new u.a.Store({modules:{general:y}}),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"admin__sidebar--nav"},[a("sidebar-menu",{attrs:{menu:t.menu,labels:t.labels}}),t._v(" "),a("sidebar-toggler",{attrs:{version:t.version,"about-link":t.aboutLink,labels:t.labels}}),t._v(" "),a("footer",{staticClass:"admin__sidebar--footer"},[a("a",{attrs:{href:t.aboutLink}},[t._v("Bolt v"),a("span",{staticClass:"sr-only"},[t._v("ersion ")]),t._v(t._s(t.version))])])],1)};C._withStripped=!0;var S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"admin__sidebar--menu"},t._l(t.menu,(function(e,s){return a("li",{key:s},["separator"===e.type?a("p",{staticClass:"admin__sidebar--separator"},[t._v("\n "+t._s(e.name)+"\n ")]):e.singleton?a("a",{staticClass:"admin__sidebar--link",attrs:{href:t.singleton(e)}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))])]):a("a",{staticClass:"admin__sidebar--link",class:{"has-menu":null!==e.submenu},attrs:{href:e.link}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))]),t._v(" "),null!==e.submenu?[a("i",{staticClass:"fas fa-caret-right link--caret"}),t._v(" "),a("sub-menu",{attrs:{item:e,labels:t.labels}})]:t._e()],2)])})),0)};S._withStripped=!0;var x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"link--menu"},[null!==t.item.link_new?a("li",{staticClass:"link--actions"},[a("a",{attrs:{href:t.item.link_new,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw fa-magic mr-2"}),a("span",[t._v(t._s(t.labels["action.new"]))])]),t._v(" "),a("a",{attrs:{href:t.item.link_listing,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw",class:t.item.icon}),t._v(" "),a("span",[t._v(t._s(t.labels["action.view"])+" "+t._s(t.item.name))])])]):t._e(),t._v(" "),t._l(t.item.submenu,(function(e,s){return null!==t.item.submenu?a("li",{key:s},[a("a",{attrs:{href:e.editLink,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw mr-2",class:e.icon}),t._v(" "),e.name?a("span",{domProps:{innerHTML:t._s(e.name)}}):a("span",[a("em",[t._v("(Untitled)")])])])]):t._e()}))],2)};x._withStripped=!0;var k={name:"SubMenu",props:{item:Object,labels:Object}},j=Object(v.a)(k,x,[],!1,null,null,null);j.options.__file="assets/js/app/sidebar/Components/Menu/_SubMenu.vue";var D={name:"SidebarMenu",components:{"sub-menu":j.exports},props:{menu:Array,labels:Object},methods:{singleton:function(t){return t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}}},E=Object(v.a)(D,S,[],!1,null,null,null);E.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var I=E.exports,F=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"admin__sidebar--slim",on:{click:function(e){return t.slimSidebar(!t.slim)}}},[a("i",{staticClass:"fas fa-exchange-alt"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.toggler))])])};F._withStripped=!0;var $={name:"SidebarFooter",props:{version:String,aboutLink:String,labels:Object},computed:{slim:function(){return!!this.$store.getters["general/slimSidebar"]&&this.$store.getters["general/slimSidebar"]}},watch:{slim:function(){var t=document.querySelector(".admin");this.slim?t.classList.add("is-slim"):t.classList.remove("is-slim"),localStorage.setItem("slim-sidebar",this.slim)}},methods:{slimSidebar:function(t){this.$store.dispatch("general/slimSidebar",t)}}},A=Object(v.a)($,F,[],!1,null,null,null);A.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var B={name:"Sidebar",components:{"sidebar-menu":I,"sidebar-toggler":A.exports},props:{menu:Array,version:String,aboutLink:String,labels:Object},created:function(){var t=JSON.parse(localStorage.getItem("slim-sidebar"));t&&this.$store.dispatch("general/slimSidebar",t)}},O=Object(v.a)(B,C,[],!1,null,null,null);O.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var T=O.exports;document.getElementById("sidebar")&&new o.a({store:w,el:"#sidebar",name:"BoltSidebar",components:{"admin-sidebar":T}});var L={namespaced:!0,state:{type:null,rowSize:"normal",sorting:!1},getters:{getType:function(t){return t.type},getRowSize:function(t){return t.rowSize},getSorting:function(t){return t.sorting}},actions:{setType:function(t,e){(0,t.commit)("setType",e)},setRowSize:function(t,e){(0,t.commit)("setRowSize",e)},setSorting:function(t,e){(0,t.commit)("setSorting",e)}},mutations:{setType:function(t,e){t.type=e},setRowSize:function(t,e){t.rowSize=e},setSorting:function(t,e){t.sorting=e}}},P={namespaced:!0,state:{records:[]},getters:{getRecords:function(t){return t.records},getOrder:function(t){return t.records.map((function(t){return t.id}))}},actions:{setRecords:function(t,e){(0,t.commit)("setRecords",e)}},mutations:{setRecords:function(t,e){t.records=e}}},N={namespaced:!0,state:{selectAll:!1,selectedCount:0,selected:[]},getters:{selectAll:function(t){return t.selectAll},selectedCount:function(t){return t.selectedCount},selected:function(t){return t.selected}},actions:{selectAll:function(t,e){(0,t.commit)("selectAll",e)},select:function(t,e){(0,t.commit)("select",e)},deSelect:function(t,e){(0,t.commit)("deSelect",e)}},mutations:{selectAll:function(t,e){t.selectAll=e},select:function(t,e){t.selectedCount++,t.selected.push(e)},deSelect:function(t,e){t.selectedCount--;var a=t.selected.indexOf(e);a>-1&&t.selected.splice(a,1)}}};o.a.use(u.a);var M=new u.a.Store({modules:{general:L,listing:P,selecting:N}}),z=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};z._withStripped=!0;var q={name:"ListingRecords",props:{type:String,data:Array,labels:Object},created:function(){this.$store.dispatch("general/setType",this.type),this.$store.dispatch("listing/setRecords",this.data)}},R=Object(v.a)(q,z,[],!1,null,null,null);R.options.__file="assets/js/app/listing/Components/Records.vue";var V=R.exports,U=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"listing__filter"},[a("ul",{staticClass:"listing__filter--controls"},["dashboard"!==t.type?a("li",[t.sorting?t._e():a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{staticClass:"custom-control-input",attrs:{id:"selectAll",type:"checkbox"},domProps:{value:t.selectAll}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"selectAll"},on:{click:function(e){return t.enableSelectAll(!t.selectAll)}}})])]):t._e(),t._v(" "),a("li",{staticClass:"control--left"},[a("button",{staticClass:"control--button",class:{"is-selected":"normal"===t.size},attrs:{title:t.labels.button_expanded},on:{click:function(e){return t.changeSize("normal")}}},[a("i",{staticClass:"fas fa-align-justify fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_expanded))])])]),t._v(" "),a("li",[a("button",{staticClass:"control--button",class:{"is-selected":"small"===t.size},attrs:{title:t.labels.button_compact},on:{click:function(e){return t.changeSize("small")}}},[a("i",{staticClass:"fas fa-grip-lines fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_compact))])])])])])};U._withStripped=!0;var H={computed:{type:function(){return this.$store.getters["general/getType"]}}},Y={name:"ListingFilter",mixins:[H],props:{labels:Object},computed:{size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]},selectAll:function(){return this.$store.getters["selecting/selectAll"]}},watch:{sorting:function(){this.sorting&&this.$store.dispatch("selecting/selectAll",!1)}},created:function(){var t=localStorage.getItem("listing-row-size");null!==t&&this.$store.dispatch("general/setRowSize",t)},methods:{enableSorting:function(t){this.$store.dispatch("general/setSorting",t)},enableSelectAll:function(t){this.$store.dispatch("selecting/selectAll",t)},changeSize:function(t){this.$store.dispatch("general/setRowSize",t),localStorage.setItem("listing-row-size",t)}}},Z=Object(v.a)(Y,U,[],!1,null,null,null);Z.options.__file="assets/js/app/listing/Components/Filter.vue";var J=Z.exports,G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__records"},[a("draggable",{attrs:{handle:".listing__row--move","force-fallback":"true"},model:{value:t.records,callback:function(e){t.records=e},expression:"records"}},[a("transition-group",t._l(t.records,(function(e){return a("table-row",{key:e.id,attrs:{record:e,labels:t.labels}})})),1)],1)],1)};G._withStripped=!0;var W=a("t2rG"),Q=a.n(W),K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition-group",{staticClass:"listing--container",class:{"is-dashboard":"dashboard"===t.type},attrs:{tag:"div"}},["dashboard"!==t.type?a("row-checkbox",{key:"select",attrs:{id:t.record.id}}):t._e(),t._v(" "),a("div",{key:"row",staticClass:"listing__row",class:"is-"+t.size,on:{mouseleave:t.leave}},[a("div",{staticClass:"listing__row--item is-details"},[a("a",{staticClass:"listing__row--item-title",attrs:{href:t.record.extras.editLink,title:t.slug}},[t._v("\n "+t._s(t._f("raw")(t._f("trim")(t.record.extras.title,62)))+"\n ")]),t._v(" "),t.record.extras.feature?a("span",{staticClass:"badge",class:"badge-"+t.record.extras.feature},[t._v(t._s(t.record.extras.feature))]):t._e(),t._v(" "),a("span",{staticClass:"listing__row--item-title-excerpt"},[t._v(t._s(t._f("raw")(t.record.extras.excerpt)))])]),t._v(" "),"normal"===t.size&&t.record.extras.image?a("div",{staticClass:"listing__row--item is-thumbnail"},[a("img",{staticStyle:{width:"108px"},attrs:{src:t.record.extras.image.thumbnail,loading:"lazy"}})]):t._e(),t._v(" "),a("row-meta",{attrs:{type:t.type,size:t.size,record:t.record}}),t._v(" "),a("div",{staticClass:"listing__row--item is-excerpt"},[a("span",[t._v(t._s(t.record.extras.excerpt))])]),t._v(" "),a("row-actions",{attrs:{type:t.type,record:t.record,size:t.size,labels:t.labels.actions}})],1)],1)};K._withStripped=!0;var X=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:!t.sorting,expression:"!sorting"}],key:"checkbox",staticClass:"listing--checkbox"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-control-input",attrs:{id:"row-"+t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?t._i(t.selected,null)>-1:t.selected},on:{change:function(e){var a=t.selected,s=e.target,n=!!s.checked;if(Array.isArray(a)){var i=t._i(a,null);s.checked?i<0&&(t.selected=a.concat([null])):i>-1&&(t.selected=a.slice(0,i).concat(a.slice(i+1)))}else t.selected=n}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"row-"+t.id},on:{click:function(e){t.selected,t.selected}}})])])};X._withStripped=!0;var tt={name:"Checkbox",props:{id:Number},data:function(){return{selected:!1}},computed:{selectAll:function(){return this.$store.getters["selecting/selectAll"]},sorting:function(){return this.$store.getters["general/getSorting"]}},watch:{selectAll:function(){this.selected=this.selectAll},selected:function(){this.selected?this.$store.dispatch("selecting/select",this.id):this.$store.dispatch("selecting/deSelect",this.id)},sorting:function(){this.sorting&&(this.selected=!1)}}},et=Object(v.a)(tt,X,[],!1,null,null,null);et.options.__file="assets/js/app/listing/Components/Table/Row/_Checkbox.vue";var at=et.exports,st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-meta"},[a("ul",{staticClass:"listing__row--list text-nowrap"},[a("li",[a("span",{staticClass:"status",class:"is-"+t.record.status,attrs:{title:t.record.status}}),t._v(t._s(t._f("date")(t.record.publishedAt?t.record.publishedAt:t.record.createdAt))+"\n ")]),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas fa-user"}),t._v(" "+t._s(t.record.authorName))]):t._e(),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas",class:t.record.extras.icon}),t._v(" "),"dashboard"===t.type?[a("a",{attrs:{href:"/bolt/content/"+t.record.contentType}},[t._v(" "+t._s(t.record.extras.singular_name))])]:[t._v(t._s(t.record.extras.singular_name))],t._v(" № "+t._s(t.record.id)+"\n ")],2):t._e()])])};st._withStripped=!0;var nt={name:"MetaData",props:{type:String,size:String,record:Object}},it=Object(v.a)(nt,st,[],!1,null,null,null);it.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var rt=it.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-actions edit-actions"},[a("div",{staticClass:"btn-group"},[a("a",{staticClass:"btn btn-secondary btn-block btn-sm text-nowrap",attrs:{href:t.record.extras.editLink,"data-patience":"virtue"}},[a("i",{staticClass:"far fa-edit mr-1"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"edit-actions__dropdown dropdown-menu dropdown-menu-right",staticStyle:{width:"320px"}},["published"===t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.link,target:"_blank"}},[a("i",{staticClass:"fas fa-w fa-external-link-square-alt"}),t._v("\n "+t._s(t.labels.view_on_site)+"\n ")]):t._e(),t._v(" "),"published"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=published"}},[a("span",{staticClass:"status mr-1 is-published"}),t._v("\n "+t._s(t.labels.status_to_publish)+"\n ")]):t._e(),t._v(" "),"held"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=held"}},[a("span",{staticClass:"status mr-1 is-held"}),t._v("\n "+t._s(t.labels.status_to_held)+"\n ")]):t._e(),t._v(" "),"draft"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=draft"}},[a("span",{staticClass:"status mr-1 is-draft"}),t._v("\n "+t._s(t.labels.status_to_draft)+"\n ")]):t._e(),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.duplicateLink}},[a("i",{staticClass:"far fa-w fa-copy"}),t._v("\n "+t._s(t.labels.duplicate)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.deleteLink,"data-confirmation":"Are you sure you wish to delete this Content?"}},[a("i",{staticClass:"fas fa-w fa-trash"}),t._v("\n "+t._s(t.labels.delete)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-divider"}),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-link fa-w"}),t._v("\n "+t._s(t.labels.slug)+":\n "),a("code",{attrs:{title:t.slug}},[t._v(t._s(t._f("trim")(t.slug,24)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-asterisk fa-w"}),t._v("\n "+t._s(t.labels.created_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.createdAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"far fa-calendar-alt fa-w"}),t._v("\n "+t._s(t.labels.published_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.publishedAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-redo fa-w"}),t._v("\n "+t._s(t.labels.last_modified_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.modifiedAt)))])])])])])};ot._withStripped=!0;var lt={name:"Actions",props:{type:String,record:Object,labels:Object},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]}},created:function(){}},ct=Object(v.a)(lt,ot,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-sm btn-secondary edit-actions__dropdown-toggler dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])}],!1,null,null,null);ct.options.__file="assets/js/app/listing/Components/Table/Row/_Actions.vue";var dt={name:"TableRow",components:{"row-checkbox":at,"row-meta":rt,"row-actions":ct.exports},mixins:[H],props:{record:Object,labels:Object},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]},size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]}},methods:{leave:function(){d()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},ut=Object(v.a)(dt,K,[],!1,null,null,null);ut.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var mt=ut.exports,pt={name:"ListingTable",components:{draggable:Q.a,"table-row":mt},props:{labels:Object},computed:{records:{get:function(){return this.$store.getters["listing/getRecords"]},set:function(t){this.$store.dispatch("listing/setRecords",t)}}}},ft=Object(v.a)(pt,G,[],!1,null,null,null);ft.options.__file="assets/js/app/listing/Components/Table/index.vue";var gt=ft.exports,ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:"card"}},[t.selectedCount>0?a("div",{staticClass:"card mb-3"},[a("div",{staticClass:"card-header"},[a("span",{staticClass:"is-primary mr-1"},[t._v(t._s(t.selectedCount))]),t._v(" "),1===t.selectedCount?[t._v(t._s(t.singular))]:[t._v(t._s(t.plural))],t._v("\n "+t._s(t.labels.selected)+"\n ")],2),t._v(" "),a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group"},[a("multiselect",{attrs:{"allow-empty":!1,multiple:!1,"show-labels":!1,label:"value","track-by":"key",options:t.options},scopedSlots:t._u([{key:"option",fn:function(e){return[a("span",{class:e.option.class}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.value)+"\n ")])]}}],null,!1,1963688328),model:{value:t.selectedAction,callback:function(e){t.selectedAction=e},expression:"selectedAction"}})],1),t._v(" "),a("form",{attrs:{action:t.postUrl,method:"post"}},[a("input",{attrs:{type:"hidden",name:"records"},domProps:{value:t.selected}}),t._v(" "),a("input",{attrs:{type:"hidden",name:"_csrf_token"},domProps:{value:t.csrftoken}}),t._v(" "),a("div",{staticClass:"form-group"},[a("button",{staticClass:"btn btn-secondary",attrs:{type:"submit",name:"bulk-action",disabled:null===t.selectedAction}},[t._v("\n "+t._s(t.labels.update_all)+"\n ")])])])])]):t._e()])};ht._withStripped=!0;var vt=a("jl8+"),bt=a.n(vt),_t={name:"ListingSelectedBox",components:{Multiselect:bt.a},props:{singular:String,plural:String,labels:Object,csrftoken:String,backendPrefix:RegExp},data:function(){return{selectedAction:null,options:[{key:"status/published",value:this.labels.status_to_published,selected:!1,class:"status mr-1 is-published"},{key:"status/draft",value:this.labels.status_to_draft,selected:!1,class:"status mr-1 is-draft"},{key:"status/held",value:this.labels.status_to_held,selected:!1,class:"status mr-1 is-held"},{key:"delete",value:this.labels.delete,selected:!1,class:"fas fa-w fa-trash"}]}},computed:{postUrl:function(){return this.selectedAction?this.backendPrefix+"bulk/"+this.selectedAction.key:""},selectedCount:function(){return this.$store.getters["selecting/selectedCount"]},selected:function(){return this.$store.getters["selecting/selected"]},order:function(){return this.$store.getters["listing/getOrder"]}}},yt=Object(v.a)(_t,ht,[],!1,null,null,null);yt.options.__file="assets/js/app/listing/Components/SelectBox.vue";var wt=yt.exports;document.getElementById("listing")&&new o.a({store:M,el:"#listing",name:"BoltListing",components:{"listing-records":V,"listing-filter":J,"listing-table":gt,"listing-select-box":wt}});var Ct={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(u.a);var St=new u.a.Store({modules:{general:Ct}}),xt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.rawVal,expression:"rawVal"}],staticClass:"form-control",class:t.getType,attrs:{id:t.id,name:t.name,type:"text",disabled:t.disabled,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autofocus:1==t.autofocus},domProps:{value:t.rawVal},on:{input:function(e){e.target.composing||(t.rawVal=e.target.value)}}})])};xt._withStripped=!0;var kt={mounted:function(){this.val=this.value;var t=document.createElement("textarea");t.innerHTML=this.value,this.rawVal=t.value},data:function(){return{val:null,rawVal:null}}},jt={name:"EditorText",mixins:[kt],props:{value:String,name:String,type:String,disabled:Boolean,id:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean,autofocus:Boolean},data:function(){return{generate:!1}},computed:{getType:function(){return"large"===this.type?"form-control-lg":this.type}},watch:{rawVal:function(){this.generate&&this.$root.$emit("slugify-from-title")}},mounted:function(){var t=this;this.$root.$on("generate-from-title",(function(e){return t.generate=e}))}},Dt=Object(v.a)(jt,xt,[],!1,null,null,null);Dt.options.__file="assets/js/app/editor/Components/Text.vue";var Et=Dt.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-3"},[a("div",{staticClass:"input-group-prepend"},[a("span",{staticClass:"input-group-text"},[t._v(t._s(t.prefix))])]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",class:t.fieldClass,attrs:{name:t.name,placeholder:"…",type:"text",readonly:t.readonly||!t.edit,required:t.required,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary dropdown-toggle",class:[{"btn-primary":t.edit},{"btn-secondary":!t.edit}],attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:t.readonly}},[a("i",{staticClass:"fas fa-fw",class:"fa-"+t.icon}),t._v(" "+t._s(t.buttonText)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu"},[t.edit?t._e():[a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.editSlug}},[a("i",{staticClass:"fas fa-pencil-alt fa-fw"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")])],t._v(" "),t.locked?t._e():[a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.lockSlug}},[a("i",{staticClass:"fas fa-lock fa-fw"}),t._v(" "+t._s(t.labels.button_locked)+"\n ")])],t._v(" "),a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.generateSlug}},[a("i",{staticClass:"fas fa-link fa-fw"}),t._v(" "+t._s(t.labels.generate_from)+"\n "+t._s(t.generate)+"\n ")])],2)])])])};It._withStripped=!0;var Ft={name:"EditorSlug",mixins:[kt],props:{value:String,name:String,prefix:String,fieldClass:String,generate:String,labels:Object,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,localize:Boolean,isNew:Boolean},data:function(){return{edit:!1,locked:!0,buttonText:this.$props.labels.button_locked,icon:"lock"}},mounted:function(){var t=this;setTimeout((function(){var e="";t.generate.split(",").forEach((function(t){e+=document.querySelector("input[name='fields[".concat(t,"]']")).value})),t.shouldGenerateFromTitle(e)&&(t.icon="unlock",t.buttonText=t.$props.labels.button_unlocked,t.$root.$emit("generate-from-title",!0))}),0),this.$root.$on("slugify-from-title",(function(){return t.generateSlug()}))},methods:{shouldGenerateFromTitle:function(t){return!!this.isNew||t.length<=0&&this.localize},editSlug:function(){this.$root.$emit("generate-from-title",!1),this.edit=!0,this.locked=!1,this.buttonText=this.$props.labels.button_edit,this.icon="pencil-alt"},lockSlug:function(){this.$root.$emit("generate-from-title",!1);var t=this.$options.filters.slugify(this.val);this.val=t,this.edit=!1,this.locked=!0,this.buttonText=this.$props.labels.button_locked,this.icon="lock"},generateSlug:function(){var t="";this.generate.split(",").forEach((function(e){t=t+" "+document.querySelector("input[name='fields[".concat(e,"]']")).value}));var e=this.$options.filters.slugify(t);this.val=e,this.$root.$emit("generate-from-title",!0),this.edit=!1,this.locked=!1,this.buttonText=this.$props.labels.button_unlocked,this.icon="unlock"}}},$t=Object(v.a)(Ft,It,[],!1,null,null,null);$t.options.__file="assets/js/app/editor/Components/Slug.vue";var At=$t.exports,Bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group"},[a("flat-pickr",{staticClass:"form-control editor--date",attrs:{config:t.config,disabled:t.readonly,form:t.form,name:t.name,placeholder:"Select date",required:t.required,"data-errormessage":t.errormessage},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-toggle":""}},[a("i",{staticClass:"fa fa-calendar"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.toggle))])])]),t._v(" "),a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-clear":""}},[a("i",{staticClass:"fa fa-times"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.clear))])])])])],1)])};Bt._withStripped=!0;var Ot=a("w48C"),Tt={name:"EditorDate",components:{flatPickr:a.n(Ot).a},mixins:[kt],props:{value:{type:String,required:!1,default:""},name:{type:String,required:!0},readonly:{type:Boolean,required:!0},mode:{type:String,required:!0,default:"date"},form:{type:String,required:!0},locale:{type:String,default:"en"},labels:{type:String,default:""},required:{type:Boolean,required:!0},errormessage:{type:String|Boolean,required:!0}},data:function(){return{config:{wrap:!0,altFormat:"F j, Y",altInput:!0,dateFormat:"Z",enableTime:!1}}},created:function(){if("en"!==this.locale){var t=a("WqZd")("./".concat(this.locale,".js")).default[this.locale];this.config.locale=t}"datetime"===this.mode&&(this.config.enableTime=!0,this.config.altFormat="F j, Y - h:i K")}},Lt=Object(v.a)(Tt,Bt,[],!1,null,null,null);Lt.options.__file="assets/js/app/editor/Components/Date.vue";var Pt=Lt.exports,Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"multiselect-bolt-wrapper",class:t.classname,attrs:{id:"multiselect-"+t.id}},[a("multiselect",{ref:"vselect",attrs:{"allow-empty":t.allowempty,limit:1e3,multiple:t.multiple,options:t.options,searchable:t.taggable,"show-labels":!1,taggable:t.taggable,disabled:t.readonly,"data-errormessage":t.errormessage,label:"value","tag-placeholder":"Add this as new tag","tag-position":"bottom","track-by":"key"},on:{tag:t.addTag},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(t._f("raw")(e.option.value))+"\n ")]:void 0}},{key:"option",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(t._f("raw")(e.option.value))+"\n ")]:void 0}},{key:"tag",fn:function(e){return"status"!==t.name?[a("span",{class:{empty:""==e.option.value},on:{drop:function(e){return t.drop(e)},dragover:function(e){return t.allowDrop(e)}}},[a("span",{key:e.option.value,staticClass:"multiselect__tag",attrs:{id:e.option.key,draggable:!t.taggable},on:{dragstart:function(e){return t.drag(e)},dragover:function(e){return t.dragOver(e)},dragleave:function(e){return t.dragLeave(e)},dragend:function(e){return t.dragEnd(e)}}},[t.taggable?t._e():a("div",{staticClass:"multiselect__tag__drag"},[a("i",{staticClass:"fas fa-arrows-alt"})]),t._v(" "),a("span",{domProps:{innerHTML:t._s(e.option.value)}}),t._v(" "),a("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:(a.preventDefault(),t.removeElement(e.option))},mousedown:function(a){return a.preventDefault(),t.removeElement(e.option)}}})])])]:void 0}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}),t._v(" "),a("input",{attrs:{id:t.id,type:"hidden",name:t.name,form:t.form},domProps:{value:t.sanitized}})],1)};Nt._withStripped=!0;var Mt={name:"EditorSelect",components:{Multiselect:bt.a},props:{value:Array|String,name:String,id:String,form:String,options:Array,multiple:Boolean,allowempty:Boolean,taggable:Boolean,readonly:Boolean,classname:String,errormessage:String|Boolean},data:function(){return{selected:[]}},computed:{sanitized:function(){var t;return null===this.selected?JSON.stringify([]):this.selected.map?(t=this.selected.map((function(t){return t.key})),JSON.stringify(t)):JSON.stringify([this.selected.key])},fieldName:function(){return this.name+"[]"}},mounted:function(){var t=this.value.map?this.value:[this.value],e=this.options,a=t.map((function(t){var a=e.filter((function(e){return e.key===t}));if(a)return a[0]}));0===a.length&&(a=[e[0]]),this.selected=a},methods:{addTag:function(t){var e={key:t,value:t,selected:!0};this.options.push(e),this.value.push(e),this.selected.push(e)},removeElement:function(t){this.$refs.vselect.removeElement(t)},drop:function(t){t.preventDefault();var e=t.dataTransfer.getData("text"),a=this.findDropElement(t.target).id,s=this.selected.find((function(t){return""+t.key==""+e})),n=this.selected.find((function(t){return""+t.key==""+a})),i=this.selected.indexOf(s),r=this.selected.indexOf(n),o=i0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()]),t._v(" "),a("div",{staticClass:"col-3"},[a("div",{staticClass:"editor__image--preview"},[""!==t.previewImage?a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.thumbnailImage+"')",attrs:{href:t.previewImage}}):t._e()])])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__image--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};fe._withStripped=!0;var ge=a("eAd9"),he=a.n(ge),ve=a("JdwY"),be=a.n(ve),_e={name:"EditorImage",mixins:[kt],props:{filename:String,name:String,required:Boolean,readonly:Boolean,thumbnail:String,alt:String,includeAlt:Boolean,directory:String,media:Number|String,csrfToken:String,labels:Object,filelist:String,extensions:Array,attributesLink:String,inImagelist:Boolean,isFirstInImagelist:Boolean,isLastInImagelist:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{previewImage:null,thumbnailImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,altData:this.alt}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_alt_text}},mounted:function(){this.resetImage()},updated:function(){this.resetImage(),de.a.run(".editor__image--preview",{afterShow:function(){he.a.on()},afterHide:function(){he.a.off()}})},methods:{resetImage:function(){if(!this.filenameData)return this.previewImage=null,void(this.thumbnailImage=null);this.previewImage="/thumbs/1000×1000/"+this.filenameData,this.thumbnailImage="/thumbs/400×300/"+this.filenameData},onMoveImageDown:function(){this.$emit("moveImageDown",this)},onMoveImageUp:function(){this.$emit("moveImageUp",this)},onRemoveImage:function(){this.filenameData=null,this.resetImage(),this.includeAlt&&(this.altData=""),this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;n.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t,e.thumbnailData="/thumbs/400×300/".concat(t),e.previewData="/thumbs/1000×1000/".concat(t))}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((function(t){be.a.alert(t.response.data+"
Image did not upload."),console.warn(t),window.reEnablePatientButtons()}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=new FormData,s={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};a.append("image",t),a.append("_csrf_token",this.token),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.thumbnailData="/thumbs/400×300/".concat(t.data),e.previewData="/thumbs/1000×1000/".concat(t.data),e.progress=0})).catch((function(t){be.a.alert(t.response.data.error.message),console.warn(t.response.data.error.message),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},ye=Object(v.a)(_e,fe,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);ye.options.__file="assets/js/app/editor/Components/Image.vue";var we=ye.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__imagelist"},[t._l(t.containerImages,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[!0!==e.hidden?a("editor-image",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,alt:e.alt,"include-alt":!0,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-imagelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-imagelist":t.isFirstInImagelist(s),"is-last-in-imagelist":t.isLastInImagelist(s),readonly:t.readonly},on:{remove:t.onRemoveImage,moveImageUp:t.onMoveImageUp,moveImageDown:t.onMoveImageDown}}):t._e()],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addImage}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_image)+"\n ")])],2)};function Se(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){var a=this.containerImages[e],s=this.containerImages[e-1];this.containerImages.splice(e-1,2,a,s)}},onRemoveImage:function(t){var e=this.getFieldNumberFromElement(t),a=this.containerImages[e];a.hidden=!0,this.$set(this.containerImages,e,a),0===this.getActiveImageFields().length&&this.addImage()},fieldName:function(t){return this.name+"["+t+"]"},addImage:function(){var t={inImagelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter,alt:""};this.counter++,this.containerImages.push(t)}}},je=Object(v.a)(ke,Ce,[],!1,null,null,null);je.options.__file="assets/js/app/editor/Components/Imagelist.vue";var De=je.exports,Ee=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{staticClass:"form-control",attrs:{id:t.id,name:t.name,type:"email",required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.value}})])};Ee._withStripped=!0;var Ie={name:"EditorEmail",props:{value:{type:String},name:{type:String},id:{type:String},required:{type:Boolean},readonly:{type:Boolean},errormessage:{type:String|Boolean},pattern:{type:String|Boolean},placeholder:String|Boolean}},Fe=Object(v.a)(Ie,Ee,[],!1,null,null,null);Fe.options.__file="assets/js/app/editor/Components/Email.vue";var $e=Fe.exports,Ae=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group-prepend"},[a("input",{ref:"inputField",staticClass:"form-control",attrs:{id:t.id,type:"password",name:t.name,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autocomplete:"new-password"},domProps:{value:t.value},on:{input:t.measureStrength}}),t._v(" "),a("i",{ref:"visibilityToggle",staticClass:"input-group-text toggle-password fas fa-eye",on:{click:t.togglePassword}})]),t._v(" "),t.strength?a("progress-bar",{ref:"progressBar",attrs:{max:4,height:"4px"}}):t._e()],1)};Ae._withStripped=!0;var Be=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress",style:this.styleHeight},[e("div",{staticClass:"progress-bar",style:this.styleWidth,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuenow":this.value,"aria-valuemax":this.max}})])};Be._withStripped=!0;var Oe={name:"ProgressBar",props:{max:{type:Number,default:100},value:{type:Number,default:0},height:{type:String,default:null}},computed:{styleWidth:function(){return{width:this.value/this.max*100+"%"}},styleHeight:function(){return{height:this.height||null}}}},Te=Object(v.a)(Oe,Be,[],!1,null,null,null);Te.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var Le={name:"EditorPassword",components:{ProgressBar:Te.exports},props:{value:String,name:String,id:String,hidden:Boolean,strength:Boolean,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},mounted:function(){this.hidden||this.$refs.visibilityToggle.click(),this.value&&this.strength&&this.$refs.inputField.dispatchEvent(new Event("input"))},methods:{togglePassword:function(t){var e=t.target,a=t.target.previousElementSibling,s=a.attributes.getNamedItem("type").value;"password"===s?(a.setAttribute("type","text"),e.classList.replace("fa-eye","fa-eye-slash")):"text"===s&&(a.setAttribute("type","password"),e.classList.replace("fa-eye-slash","fa-eye"))},measureStrength:function(t){var e=t.target;if(this.strength){var a=window.zxcvbn(e.value);this.$refs.progressBar.value=a.score}}}},Pe=Object(v.a)(Le,Ae,[],!1,null,null,null);Pe.options.__file="assets/js/app/editor/Components/Password.vue";var Ne=Pe.exports,Me=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"user__theme"},[a("h3",[t._v("Themes:")]),t._v(" "),a("ul",{staticClass:"user__theme--themes"},t._l(t.themes,(function(e,s){return a("li",{key:s,staticClass:"theme",on:{click:function(a){return t.selectTheme(e.value)}}},[a("h5",{staticClass:"theme--name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"theme--palette"},t._l(e.colors,(function(t,e){return a("span",{key:e,style:"background-color: "+t})})),0)])})),0)])};Me._withStripped=!0;var ze={name:"ThemeSelect",data:function(){return{themes:[{name:"Default",value:"default",colors:["#1a5597","#053b79","#0c223b","#ffffff"]},{name:"Light",value:"light",colors:["#1a5597","#053b79","#ffffff","#f9f9f9"]}]}},methods:{selectTheme:function(t){var e=document.querySelector("#theme"),a=e.getAttribute("href").split("theme-")[0],s="".concat(a,"theme-").concat(t,".css");e.setAttribute("href",s)}}},qe=Object(v.a)(ze,Me,[],!1,null,null,null);qe.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var Re=qe.exports,Ve=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group",attrs:{id:"multiselect-localeswitcher"}},[a("label",[t._v(t._s(t.label))]),t._v(" "),a("multiselect",{attrs:{"track-by":"name",label:"localizedname",options:t.locales,searchable:!1,"show-labels":!1,limit:1},on:{input:function(e){return t.switchLocale()}},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}},{key:"option",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}}]),model:{value:t.locale,callback:function(e){t.locale=e},expression:"locale"}})],1)};Ve._withStripped=!0;var Ue={name:"EditorLanguage",components:{Multiselect:bt.a},props:{label:String,locales:Array,current:String},data:function(){return{locale:{}}},mounted:function(){var t=this;if(this.current){var e=this.locales.filter((function(e){return e.code===t.current}));e.length>0?this.locale=e[0]:this.locale=this.locales[0]}else this.locale=this.locales[0]},methods:{switchLocale:function(){var t=this.locale.link+location.hash;return window.location.href=t}}},He=Object(v.a)(Ue,Ve,[],!1,null,null,null);He.options.__file="assets/js/app/editor/Components/Language.vue";var Ye=He.exports,Ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__file",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__file--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"input-group mb-3"},[a("input",{attrs:{name:t.name+"[media]",type:"hidden"},domProps:{value:t.media}}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:t.name+"[filename]",type:"text",placeholder:t.labels.placeholder_filename,"data-readonly":"readonly",required:t.required,"data-errormessage":t.errormessage},domProps:{value:t.filenameData}})]),t._v(" "),a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.titleData,expression:"titleData"}],staticClass:"form-control",attrs:{name:t.name+"[title]",type:"text",required:t.required,readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.titleData},on:{input:function(e){e.target.composing||(t.titleData=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"file-upload-dropdown",type:"button",disabled:t.readonly}}),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",readonly:t.readonly,"data-patience":"virtue"},on:{click:t.selectServerFile}},[a("i",{staticClass:"fas fa-fw fa-th"}),t._v("\n "+t._s(t.labels.button_from_library)+"\n ")]),t._v(" "),t.filenameData?a("a",{staticClass:"dropdown-item",attrs:{href:t.attributesLink+"?file="+t.filenameData,target:"_blank"}},[a("i",{staticClass:"fas fa-fw fa-info-circle"}),t._v("\n "+t._s(t.labels.button_edit_attributes)+"\n "),t._m(0)]):t._e()])]),t._v(" "),a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInFilelist||t.readonly},on:{click:t.onMoveFileUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInFilelist||t.readonly},on:{click:t.onMoveFileDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveFile}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__file--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};Ze._withStripped=!0;var Je={name:"EditorFile",mixins:[kt],props:{name:String,filename:String,title:String,directory:String,media:String,csrfToken:String,labels:Object,filelist:String,extensions:Array,inFilelist:Boolean,isFirstInFilelist:Boolean,isLastInFilelist:Boolean,attributesLink:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,titleData:this.title}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_title}},methods:{onMoveFileDown:function(){this.$emit("moveFileDown",this)},onMoveFileUp:function(){this.$emit("moveFileUp",this)},onRemoveFile:function(){this.filenameData="",this.titleData="",this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;n.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t)}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((function(t){console.warn(t),window.reEnablePatientButtons()}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=new FormData,s={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};a.append("file",t),a.append("_csrf_token",this.token),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.progress=0})).catch((function(t){var a=t.response.data,s="unknown error";"string"==typeof a||a instanceof String?s=a:a.error&&a.error.message&&(s=a.error.message),be.a.alert(s+"
File did not upload."),console.warn(t),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},Ge=Object(v.a)(Je,Ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);Ge.options.__file="assets/js/app/editor/Components/File.vue";var We=Ge.exports,Qe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor-filelist"},[t._l(t.containerFiles,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[a("editor-file",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-filelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-filelist":t.isFirstInFilelist(s),"is-last-in-filelist":t.isLastInFilelist(s),readonly:t.readonly},on:{remove:t.onRemoveFile,moveFileUp:t.onMoveFileUp,moveFileDown:t.onMoveFileDown}})],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addFile}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_file)+"\n ")])],2)};function Ke(t){return function(t){if(Array.isArray(t))return Xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){var a=this.containerFiles[e],s=this.containerFiles[e-1];this.containerFiles.splice(e-1,2,a,s)}},onRemoveFile:function(t){var e=this.getFieldNumberFromElement(t);this.containerFiles.splice(e,1),0===this.containerFiles.length&&this.addFile()},fieldName:function(t){return this.name+"["+t+"]"},addFile:function(){var t={inFilelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter};this.counter++,this.containerFiles.push(t)}}},ea=Object(v.a)(ta,Qe,[],!1,null,null,null);ea.options.__file="assets/js/app/editor/Components/Filelist.vue";var aa=ea.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"collectionContainer",staticClass:"collection-container",attrs:{id:t.name}},[a("div",{staticClass:"expand-buttons"},[a("label",[t._v(t._s(t.labels.field_label)+":")]),t._v(" "),a("div",{staticClass:"btn-group",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-secondary btn-sm collection-expand-all"},[a("i",{staticClass:"fas fa-fw fa-expand-alt"}),t._v("\n "+t._s(t.labels.expand_all)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-secondary btn-sm collection-collapse-all"},[a("i",{staticClass:"fas fa-fw fa-compress-alt"}),t._v("\n "+t._s(t.labels.collapse_all)+"\n ")])])]),t._v(" "),t._l(t.elements,(function(e){return a("div",{key:e.hash,staticClass:"collection-item"},[a("details",{staticClass:"card",attrs:{open:"expanded"===t.variant}},[a("summary",{staticClass:"d-block"},[a("div",{staticClass:"card-header d-flex align-items-center"},[a("i",{staticClass:"card-marker-caret fa fa-caret-right"}),t._v(" "),a("div",{staticClass:"collection-item-title",attrs:{"data-label":e.label}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),a(t.compile(e.buttons),{tag:"div"})],1)]),t._v(" "),a(t.compile(e.content),{tag:"div",staticClass:"card-body"})],1)])})),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[t.templates.length>1?a("p",{staticClass:"mt-4 mb-1"},[t._v(t._s(t.labels.add_collection_item)+":")]):t._e(),t._v(" "),t.templates.length>1?a("div",{staticClass:"dropdown"},[a("button",{staticClass:"btn btn-secondary dropdown-toggle",attrs:{id:t.name+"-dropdownMenuButton",disabled:!t.allowMore,type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v(" "+t._s(t.labels.select)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":t.name+"-dropdownMenuButton"}},t._l(t.templates,(function(e){return a("a",{key:e.label,staticClass:"dropdown-item",attrs:{"data-template":e.label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")])})),0)]):a("button",{staticClass:"btn btn-secondary btn-small",attrs:{type:"button","data-template":t.templates[0].label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[t.templates[0].icon,"fas fa-fw"]}),t._v("\n "+t._s(t.labels.add_collection_item)+"\n ")])])])],2)};sa._withStripped=!0;var na=a("Tntk"),ia={name:"EditorCollection",props:{name:{type:String,required:!0},templates:{type:Array,required:!0},existingFields:{type:Array},labels:{type:Object,required:!0},limit:{type:Number,required:!0},variant:{type:String,required:!0}},data:function(){return{elements:this.existingFields,counter:this.existingFields.length,templateSelectName:"templateSelect"+this.id,templateSelectOptions:[],selector:{collectionContainer:"#"+this.name,item:" .collection-item",remove:" .action-remove-collection-item",moveUp:" .action-move-up-collection-item",moveDown:" .action-move-down-collection-item",expandAll:" .collection-expand-all",collapseAll:" .collection-collapse-all",editor:" #editor"}}},computed:{initialSelectValue:function(){return this.templateSelectOptions[0].key},allowMore:function(){return this.countere?t.substring(0,e-1)+"…":t}));var c=a("EVdn"),d=a.n(c);d()(document).ready((function(){d()(".toast").toast("show")}));var u=a("L2JU"),m={namespaced:!0,state:{toolbarColor:null},getters:{toolbarColor:function(t){return t.toolbarColor}},actions:{toolbarColor:function(t,e){(0,t.commit)("toolbarColor",e)}},mutations:{toolbarColor:function(t,e){t.toolbarColor=e}}};o.a.use(u.a);var p=new u.a.Store({modules:{general:m}}),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"admin__toolbar--body",class:t.contrast?"is-light":"is-dark",attrs:{role:"toolbar"}},[t._m(0),t._v(" "),a("div",{staticClass:"toolbar-item toolbar-item__site"},[a("a",{attrs:{href:"/",target:"_blank"}},[a("i",{staticClass:"fas fa-sign-out-alt"}),t._v(t._s(t.labels["action.view_site"])+" ")])]),t._v(" "),a("form",{staticClass:"toolbar-item toolbar-item__filter input-group",attrs:{action:t.backendPrefix}},[a("input",{staticClass:"form-control",attrs:{id:"global-search",type:"text",placeholder:t.labels["listing.placeholder_search"],name:"filter"},domProps:{value:t.filterValue}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",attrs:{type:"submit",title:t.labels["listing.button_search"]}},[a("i",{staticClass:"fas fa-search",staticStyle:{margin:"0"}})])])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__profile"},[a("button",{staticClass:"btn user profile__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-user"}),t._v(t._s(t.labels["general.greeting"])+"\n ")]),t._v(" "),a("div",{staticClass:"profile__dropdown dropdown-menu dropdown-menu-right"},[a("ul",[a("li",[a("a",{attrs:{href:t.backendPrefix+"profile-edit"}},[a("i",{staticClass:"fas fa-user-edit fa-fw"}),t._v("\n "+t._s(t.labels["action.edit_profile"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:t.backendPrefix+"logout"}},[a("i",{staticClass:"fas fa-sign-out-alt fa-fw"}),t._v("\n "+t._s(t.labels["action.logout"])+"\n ")])]),t._v(" "),a("hr"),t._v(" "),a("li",[a("a",{attrs:{href:"https://boltcms.io/",target:"_blank"}},[a("i",{staticClass:"fas fa-globe-americas fa-fw"}),t._v("\n "+t._s(t.labels["about.visit_bolt"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://docs.bolt.cm/",target:"_blank"}},[a("i",{staticClass:"fas fa-book fa-fw"}),t._v("\n "+t._s(t.labels["about.bolt_documentation"])+"\n ")])])])])])])};f._withStripped=!0;var g=a("Zss7"),h={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:RegExp,filterValue:String},computed:{contrast:function(){return g(this.toolbarColor).isLight()},createMenu:function(){return this.menu.filter((function(t){return!t.singleton&&t.singular_name||t.singleton&&(null===t.submenu||t.submenu.length<1)}))},toolbarColor:function(){return this.$store.getters["general/toolbarColor"]}},created:function(){var t=getComputedStyle(document.body).getPropertyValue("--admin-toolbar");this.$store.dispatch("general/toolbarColor",t)}},v=a("KHd+"),b=Object(v.a)(h,f,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"toolbar-item btn-group toolbar-item__brand"},[e("img",{attrs:{src:"/assets/images/bolt_logo_dashboard.svg",alt:"⚙️ Bolt",height:"26"}})])}],!1,null,null,null);b.options.__file="assets/js/app/toolbar/Components/Toolbar.vue";var _=b.exports;document.getElementById("toolbar")&&new o.a({store:p,el:"#toolbar",name:"BoltToolbar",components:{"admin-toolbar":_}});var y={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(u.a);var w=new u.a.Store({modules:{general:y}}),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"admin__sidebar--nav"},[a("sidebar-menu",{attrs:{menu:t.menu,labels:t.labels}}),t._v(" "),a("sidebar-toggler",{attrs:{version:t.version,"about-link":t.aboutLink,labels:t.labels}}),t._v(" "),a("footer",{staticClass:"admin__sidebar--footer"},[a("a",{attrs:{href:t.aboutLink}},[t._v("Bolt v"),a("span",{staticClass:"sr-only"},[t._v("ersion ")]),t._v(t._s(t.version))])])],1)};C._withStripped=!0;var S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"admin__sidebar--menu"},t._l(t.menu,(function(e,s){return a("li",{key:s},["separator"===e.type?a("p",{staticClass:"admin__sidebar--separator"},[t._v("\n "+t._s(e.name)+"\n ")]):e.singleton?a("a",{staticClass:"admin__sidebar--link",attrs:{href:t.singleton(e)}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))])]):a("a",{staticClass:"admin__sidebar--link",class:{"has-menu":null!==e.submenu},attrs:{href:e.link}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))]),t._v(" "),null!==e.submenu?[a("i",{staticClass:"fas fa-caret-right link--caret"}),t._v(" "),a("sub-menu",{attrs:{item:e,labels:t.labels}})]:t._e()],2)])})),0)};S._withStripped=!0;var x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"link--menu"},[null!==t.item.link_new?a("li",{staticClass:"link--actions"},[a("a",{attrs:{href:t.item.link_new,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw fa-magic mr-2"}),a("span",[t._v(t._s(t.labels["action.new"]))])]),t._v(" "),a("a",{attrs:{href:t.item.link_listing,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw",class:t.item.icon}),t._v(" "),a("span",[t._v(t._s(t.labels["action.view"])+" "+t._s(t.item.name))])])]):t._e(),t._v(" "),t._l(t.item.submenu,(function(e,s){return null!==t.item.submenu?a("li",{key:s},[a("a",{attrs:{href:e.editLink,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw mr-2",class:e.icon}),t._v(" "),e.name?a("span",{domProps:{innerHTML:t._s(e.name)}}):a("span",[a("em",[t._v("(Untitled)")])])])]):t._e()}))],2)};x._withStripped=!0;var k={name:"SubMenu",props:{item:Object,labels:Object}},j=Object(v.a)(k,x,[],!1,null,null,null);j.options.__file="assets/js/app/sidebar/Components/Menu/_SubMenu.vue";var D={name:"SidebarMenu",components:{"sub-menu":j.exports},props:{menu:Array,labels:Object},methods:{singleton:function(t){return t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}}},E=Object(v.a)(D,S,[],!1,null,null,null);E.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var I=E.exports,F=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"admin__sidebar--slim",on:{click:function(e){return t.slimSidebar(!t.slim)}}},[a("i",{staticClass:"fas fa-exchange-alt"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.toggler))])])};F._withStripped=!0;var $={name:"SidebarFooter",props:{version:String,aboutLink:String,labels:Object},computed:{slim:function(){return!!this.$store.getters["general/slimSidebar"]&&this.$store.getters["general/slimSidebar"]}},watch:{slim:function(){var t=document.querySelector(".admin");this.slim?t.classList.add("is-slim"):t.classList.remove("is-slim"),localStorage.setItem("slim-sidebar",this.slim)}},methods:{slimSidebar:function(t){this.$store.dispatch("general/slimSidebar",t)}}},A=Object(v.a)($,F,[],!1,null,null,null);A.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var B={name:"Sidebar",components:{"sidebar-menu":I,"sidebar-toggler":A.exports},props:{menu:Array,version:String,aboutLink:String,labels:Object},created:function(){var t=JSON.parse(localStorage.getItem("slim-sidebar"));t&&this.$store.dispatch("general/slimSidebar",t)}},O=Object(v.a)(B,C,[],!1,null,null,null);O.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var T=O.exports;document.getElementById("sidebar")&&new o.a({store:w,el:"#sidebar",name:"BoltSidebar",components:{"admin-sidebar":T}});var L={namespaced:!0,state:{type:null,rowSize:"normal",sorting:!1},getters:{getType:function(t){return t.type},getRowSize:function(t){return t.rowSize},getSorting:function(t){return t.sorting}},actions:{setType:function(t,e){(0,t.commit)("setType",e)},setRowSize:function(t,e){(0,t.commit)("setRowSize",e)},setSorting:function(t,e){(0,t.commit)("setSorting",e)}},mutations:{setType:function(t,e){t.type=e},setRowSize:function(t,e){t.rowSize=e},setSorting:function(t,e){t.sorting=e}}},P={namespaced:!0,state:{records:[]},getters:{getRecords:function(t){return t.records},getOrder:function(t){return t.records.map((function(t){return t.id}))}},actions:{setRecords:function(t,e){(0,t.commit)("setRecords",e)}},mutations:{setRecords:function(t,e){t.records=e}}},N={namespaced:!0,state:{selectAll:!1,selectedCount:0,selected:[]},getters:{selectAll:function(t){return t.selectAll},selectedCount:function(t){return t.selectedCount},selected:function(t){return t.selected}},actions:{selectAll:function(t,e){(0,t.commit)("selectAll",e)},select:function(t,e){(0,t.commit)("select",e)},deSelect:function(t,e){(0,t.commit)("deSelect",e)}},mutations:{selectAll:function(t,e){t.selectAll=e},select:function(t,e){t.selectedCount++,t.selected.push(e)},deSelect:function(t,e){t.selectedCount--;var a=t.selected.indexOf(e);a>-1&&t.selected.splice(a,1)}}};o.a.use(u.a);var M=new u.a.Store({modules:{general:L,listing:P,selecting:N}}),z=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};z._withStripped=!0;var q={name:"ListingRecords",props:{type:String,data:Array,labels:Object},created:function(){this.$store.dispatch("general/setType",this.type),this.$store.dispatch("listing/setRecords",this.data)}},R=Object(v.a)(q,z,[],!1,null,null,null);R.options.__file="assets/js/app/listing/Components/Records.vue";var V=R.exports,U=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"listing__filter"},[a("ul",{staticClass:"listing__filter--controls"},["dashboard"!==t.type?a("li",[t.sorting?t._e():a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{staticClass:"custom-control-input",attrs:{id:"selectAll",type:"checkbox"},domProps:{value:t.selectAll}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"selectAll"},on:{click:function(e){return t.enableSelectAll(!t.selectAll)}}})])]):t._e(),t._v(" "),a("li",{staticClass:"control--left"},[a("button",{staticClass:"control--button",class:{"is-selected":"normal"===t.size},attrs:{title:t.labels.button_expanded},on:{click:function(e){return t.changeSize("normal")}}},[a("i",{staticClass:"fas fa-align-justify fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_expanded))])])]),t._v(" "),a("li",[a("button",{staticClass:"control--button",class:{"is-selected":"small"===t.size},attrs:{title:t.labels.button_compact},on:{click:function(e){return t.changeSize("small")}}},[a("i",{staticClass:"fas fa-grip-lines fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_compact))])])])])])};U._withStripped=!0;var H={computed:{type:function(){return this.$store.getters["general/getType"]}}},Y={name:"ListingFilter",mixins:[H],props:{labels:Object},computed:{size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]},selectAll:function(){return this.$store.getters["selecting/selectAll"]}},watch:{sorting:function(){this.sorting&&this.$store.dispatch("selecting/selectAll",!1)}},created:function(){var t=localStorage.getItem("listing-row-size");null!==t&&this.$store.dispatch("general/setRowSize",t)},methods:{enableSorting:function(t){this.$store.dispatch("general/setSorting",t)},enableSelectAll:function(t){this.$store.dispatch("selecting/selectAll",t)},changeSize:function(t){this.$store.dispatch("general/setRowSize",t),localStorage.setItem("listing-row-size",t)}}},Z=Object(v.a)(Y,U,[],!1,null,null,null);Z.options.__file="assets/js/app/listing/Components/Filter.vue";var J=Z.exports,G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__records"},[a("draggable",{attrs:{handle:".listing__row--move","force-fallback":"true"},model:{value:t.records,callback:function(e){t.records=e},expression:"records"}},[a("transition-group",t._l(t.records,(function(e){return a("table-row",{key:e.id,attrs:{record:e,labels:t.labels}})})),1)],1)],1)};G._withStripped=!0;var W=a("t2rG"),Q=a.n(W),K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition-group",{staticClass:"listing--container",class:{"is-dashboard":"dashboard"===t.type},attrs:{tag:"div"}},["dashboard"!==t.type?a("row-checkbox",{key:"select",attrs:{id:t.record.id}}):t._e(),t._v(" "),a("div",{key:"row",staticClass:"listing__row",class:"is-"+t.size,on:{mouseleave:t.leave}},[a("div",{staticClass:"listing__row--item is-details"},[a("a",{staticClass:"listing__row--item-title",attrs:{href:t.record.extras.editLink,title:t.slug}},[t._v("\n "+t._s(t._f("raw")(t._f("trim")(t.record.extras.title,62)))+"\n ")]),t._v(" "),t.record.extras.feature?a("span",{staticClass:"badge",class:"badge-"+t.record.extras.feature},[t._v(t._s(t.record.extras.feature))]):t._e(),t._v(" "),a("span",{staticClass:"listing__row--item-title-excerpt"},[t._v(t._s(t._f("raw")(t.record.extras.excerpt)))])]),t._v(" "),"normal"===t.size&&t.record.extras.image?a("div",{staticClass:"listing__row--item is-thumbnail"},[a("img",{staticStyle:{width:"108px"},attrs:{src:t.record.extras.image.thumbnail,loading:"lazy"}})]):t._e(),t._v(" "),a("row-meta",{attrs:{type:t.type,size:t.size,record:t.record}}),t._v(" "),a("div",{staticClass:"listing__row--item is-excerpt"},[a("span",[t._v(t._s(t.record.extras.excerpt))])]),t._v(" "),a("row-actions",{attrs:{type:t.type,record:t.record,size:t.size,labels:t.labels.actions}})],1)],1)};K._withStripped=!0;var X=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:!t.sorting,expression:"!sorting"}],key:"checkbox",staticClass:"listing--checkbox"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-control-input",attrs:{id:"row-"+t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?t._i(t.selected,null)>-1:t.selected},on:{change:function(e){var a=t.selected,s=e.target,n=!!s.checked;if(Array.isArray(a)){var i=t._i(a,null);s.checked?i<0&&(t.selected=a.concat([null])):i>-1&&(t.selected=a.slice(0,i).concat(a.slice(i+1)))}else t.selected=n}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"row-"+t.id},on:{click:function(e){t.selected,t.selected}}})])])};X._withStripped=!0;var tt={name:"Checkbox",props:{id:Number},data:function(){return{selected:!1}},computed:{selectAll:function(){return this.$store.getters["selecting/selectAll"]},sorting:function(){return this.$store.getters["general/getSorting"]}},watch:{selectAll:function(){this.selected=this.selectAll},selected:function(){this.selected?this.$store.dispatch("selecting/select",this.id):this.$store.dispatch("selecting/deSelect",this.id)},sorting:function(){this.sorting&&(this.selected=!1)}}},et=Object(v.a)(tt,X,[],!1,null,null,null);et.options.__file="assets/js/app/listing/Components/Table/Row/_Checkbox.vue";var at=et.exports,st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-meta"},[a("ul",{staticClass:"listing__row--list text-nowrap"},[a("li",[a("span",{staticClass:"status",class:"is-"+t.record.status,attrs:{title:t.record.status}}),t._v(t._s(t._f("date")(t.record.publishedAt?t.record.publishedAt:t.record.createdAt))+"\n ")]),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas fa-user"}),t._v(" "+t._s(t.record.authorName))]):t._e(),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas",class:t.record.extras.icon}),t._v(" "),"dashboard"===t.type?[a("a",{attrs:{href:"/bolt/content/"+t.record.contentType}},[t._v(" "+t._s(t.record.extras.singular_name))])]:[t._v(t._s(t.record.extras.singular_name))],t._v(" № "+t._s(t.record.id)+"\n ")],2):t._e()])])};st._withStripped=!0;var nt={name:"MetaData",props:{type:String,size:String,record:Object}},it=Object(v.a)(nt,st,[],!1,null,null,null);it.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var rt=it.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-actions edit-actions"},[a("div",{staticClass:"btn-group"},[a("a",{staticClass:"btn btn-secondary btn-block btn-sm text-nowrap",attrs:{href:t.record.extras.editLink,"data-patience":"virtue"}},[a("i",{staticClass:"far fa-edit mr-1"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"edit-actions__dropdown dropdown-menu dropdown-menu-right",staticStyle:{width:"320px"}},["published"===t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.link,target:"_blank"}},[a("i",{staticClass:"fas fa-w fa-external-link-square-alt"}),t._v("\n "+t._s(t.labels.view_on_site)+"\n ")]):t._e(),t._v(" "),"published"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=published"}},[a("span",{staticClass:"status mr-1 is-published"}),t._v("\n "+t._s(t.labels.status_to_publish)+"\n ")]):t._e(),t._v(" "),"held"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=held"}},[a("span",{staticClass:"status mr-1 is-held"}),t._v("\n "+t._s(t.labels.status_to_held)+"\n ")]):t._e(),t._v(" "),"draft"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=draft"}},[a("span",{staticClass:"status mr-1 is-draft"}),t._v("\n "+t._s(t.labels.status_to_draft)+"\n ")]):t._e(),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.duplicateLink}},[a("i",{staticClass:"far fa-w fa-copy"}),t._v("\n "+t._s(t.labels.duplicate)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.deleteLink,"data-confirmation":"Are you sure you wish to delete this Content?"}},[a("i",{staticClass:"fas fa-w fa-trash"}),t._v("\n "+t._s(t.labels.delete)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-divider"}),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-link fa-w"}),t._v("\n "+t._s(t.labels.slug)+":\n "),a("code",{attrs:{title:t.slug}},[t._v(t._s(t._f("trim")(t.slug,24)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-asterisk fa-w"}),t._v("\n "+t._s(t.labels.created_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.createdAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"far fa-calendar-alt fa-w"}),t._v("\n "+t._s(t.labels.published_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.publishedAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-redo fa-w"}),t._v("\n "+t._s(t.labels.last_modified_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.modifiedAt)))])])])])])};ot._withStripped=!0;var lt={name:"Actions",props:{type:String,record:Object,labels:Object},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]}},created:function(){}},ct=Object(v.a)(lt,ot,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-sm btn-secondary edit-actions__dropdown-toggler dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])}],!1,null,null,null);ct.options.__file="assets/js/app/listing/Components/Table/Row/_Actions.vue";var dt={name:"TableRow",components:{"row-checkbox":at,"row-meta":rt,"row-actions":ct.exports},mixins:[H],props:{record:Object,labels:Object},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]},size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]}},methods:{leave:function(){d()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},ut=Object(v.a)(dt,K,[],!1,null,null,null);ut.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var mt=ut.exports,pt={name:"ListingTable",components:{draggable:Q.a,"table-row":mt},props:{labels:Object},computed:{records:{get:function(){return this.$store.getters["listing/getRecords"]},set:function(t){this.$store.dispatch("listing/setRecords",t)}}}},ft=Object(v.a)(pt,G,[],!1,null,null,null);ft.options.__file="assets/js/app/listing/Components/Table/index.vue";var gt=ft.exports,ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:"card"}},[t.selectedCount>0?a("div",{staticClass:"card mb-3"},[a("div",{staticClass:"card-header"},[a("span",{staticClass:"is-primary mr-1"},[t._v(t._s(t.selectedCount))]),t._v(" "),1===t.selectedCount?[t._v(t._s(t.singular))]:[t._v(t._s(t.plural))],t._v("\n "+t._s(t.labels.selected)+"\n ")],2),t._v(" "),a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group"},[a("multiselect",{attrs:{"allow-empty":!1,multiple:!1,"show-labels":!1,label:"value","track-by":"key",options:t.options},scopedSlots:t._u([{key:"option",fn:function(e){return[a("span",{class:e.option.class}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.value)+"\n ")])]}}],null,!1,1963688328),model:{value:t.selectedAction,callback:function(e){t.selectedAction=e},expression:"selectedAction"}})],1),t._v(" "),a("form",{attrs:{action:t.postUrl,method:"post"}},[a("input",{attrs:{type:"hidden",name:"records"},domProps:{value:t.selected}}),t._v(" "),a("input",{attrs:{type:"hidden",name:"_csrf_token"},domProps:{value:t.csrftoken}}),t._v(" "),a("div",{staticClass:"form-group"},[a("button",{staticClass:"btn btn-secondary",attrs:{type:"submit",name:"bulk-action",disabled:null===t.selectedAction}},[t._v("\n "+t._s(t.labels.update_all)+"\n ")])])])])]):t._e()])};ht._withStripped=!0;var vt=a("jl8+"),bt=a.n(vt),_t={name:"ListingSelectedBox",components:{Multiselect:bt.a},props:{singular:String,plural:String,labels:Object,csrftoken:String,backendPrefix:RegExp},data:function(){return{selectedAction:null,options:[{key:"status/published",value:this.labels.status_to_published,selected:!1,class:"status mr-1 is-published"},{key:"status/draft",value:this.labels.status_to_draft,selected:!1,class:"status mr-1 is-draft"},{key:"status/held",value:this.labels.status_to_held,selected:!1,class:"status mr-1 is-held"},{key:"delete",value:this.labels.delete,selected:!1,class:"fas fa-w fa-trash"}]}},computed:{postUrl:function(){return this.selectedAction?this.backendPrefix+"bulk/"+this.selectedAction.key:""},selectedCount:function(){return this.$store.getters["selecting/selectedCount"]},selected:function(){return this.$store.getters["selecting/selected"]},order:function(){return this.$store.getters["listing/getOrder"]}}},yt=Object(v.a)(_t,ht,[],!1,null,null,null);yt.options.__file="assets/js/app/listing/Components/SelectBox.vue";var wt=yt.exports;document.getElementById("listing")&&new o.a({store:M,el:"#listing",name:"BoltListing",components:{"listing-records":V,"listing-filter":J,"listing-table":gt,"listing-select-box":wt}});var Ct={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(u.a);var St=new u.a.Store({modules:{general:Ct}}),xt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.rawVal,expression:"rawVal"}],staticClass:"form-control",class:t.getType,attrs:{id:t.id,name:t.name,type:"text",disabled:t.disabled,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autofocus:1==t.autofocus},domProps:{value:t.rawVal},on:{input:function(e){e.target.composing||(t.rawVal=e.target.value)}}})])};xt._withStripped=!0;var kt={mounted:function(){this.val=this.value;var t=document.createElement("textarea");t.innerHTML=this.value,this.rawVal=t.value},data:function(){return{val:null,rawVal:null}}},jt={name:"EditorText",mixins:[kt],props:{value:String,name:String,type:String,disabled:Boolean,id:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean,autofocus:Boolean},data:function(){return{generate:!1}},computed:{getType:function(){return"large"===this.type?"form-control-lg":this.type}},watch:{rawVal:function(){this.generate&&this.$root.$emit("slugify-from-title")}},mounted:function(){var t=this;this.$root.$on("generate-from-title",(function(e){return t.generate=e}))}},Dt=Object(v.a)(jt,xt,[],!1,null,null,null);Dt.options.__file="assets/js/app/editor/Components/Text.vue";var Et=Dt.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-3"},[a("div",{staticClass:"input-group-prepend"},[a("span",{staticClass:"input-group-text"},[t._v(t._s(t.prefix))])]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",class:t.fieldClass,attrs:{name:t.name,placeholder:"…",type:"text",readonly:t.readonly||!t.edit,required:t.required,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary dropdown-toggle",class:[{"btn-primary":t.edit},{"btn-secondary":!t.edit}],attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:t.readonly}},[a("i",{staticClass:"fas fa-fw",class:"fa-"+t.icon}),t._v(" "+t._s(t.buttonText)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu"},[t.edit?t._e():[a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.editSlug}},[a("i",{staticClass:"fas fa-pencil-alt fa-fw"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")])],t._v(" "),t.locked?t._e():[a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.lockSlug}},[a("i",{staticClass:"fas fa-lock fa-fw"}),t._v(" "+t._s(t.labels.button_locked)+"\n ")])],t._v(" "),a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.generateSlug}},[a("i",{staticClass:"fas fa-link fa-fw"}),t._v(" "+t._s(t.labels.generate_from)+"\n "+t._s(t.generate)+"\n ")])],2)])])])};It._withStripped=!0;var Ft={name:"EditorSlug",mixins:[kt],props:{value:String,name:String,prefix:String,fieldClass:String,generate:String,labels:Object,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,localize:Boolean,isNew:Boolean},data:function(){return{edit:!1,locked:!0,buttonText:this.$props.labels.button_locked,icon:"lock"}},mounted:function(){var t=this;setTimeout((function(){var e="";t.generate.split(",").forEach((function(t){e+=document.querySelector("input[name='fields[".concat(t,"]']")).value})),t.shouldGenerateFromTitle(e)&&(t.icon="unlock",t.buttonText=t.$props.labels.button_unlocked,t.$root.$emit("generate-from-title",!0))}),0),this.$root.$on("slugify-from-title",(function(){return t.generateSlug()}))},methods:{shouldGenerateFromTitle:function(t){return!!this.isNew||t.length<=0&&this.localize},editSlug:function(){this.$root.$emit("generate-from-title",!1),this.edit=!0,this.locked=!1,this.buttonText=this.$props.labels.button_edit,this.icon="pencil-alt"},lockSlug:function(){this.$root.$emit("generate-from-title",!1);var t=this.$options.filters.slugify(this.val);this.val=t,this.edit=!1,this.locked=!0,this.buttonText=this.$props.labels.button_locked,this.icon="lock"},generateSlug:function(){var t="";this.generate.split(",").forEach((function(e){t=t+" "+document.querySelector("input[name='fields[".concat(e,"]']")).value}));var e=this.$options.filters.slugify(t);this.val=e,this.$root.$emit("generate-from-title",!0),this.edit=!1,this.locked=!1,this.buttonText=this.$props.labels.button_unlocked,this.icon="unlock"}}},$t=Object(v.a)(Ft,It,[],!1,null,null,null);$t.options.__file="assets/js/app/editor/Components/Slug.vue";var At=$t.exports,Bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group"},[a("flat-pickr",{staticClass:"form-control editor--date",attrs:{config:t.config,disabled:t.readonly,form:t.form,name:t.name,placeholder:"Select date",required:t.required,"data-errormessage":t.errormessage},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-toggle":""}},[a("i",{staticClass:"fa fa-calendar"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.toggle))])])]),t._v(" "),a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-clear":""}},[a("i",{staticClass:"fa fa-times"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.clear))])])])])],1)])};Bt._withStripped=!0;var Ot=a("w48C"),Tt={name:"EditorDate",components:{flatPickr:a.n(Ot).a},mixins:[kt],props:{value:{type:String,required:!1,default:""},name:{type:String,required:!0},readonly:{type:Boolean,required:!0},mode:{type:String,required:!0,default:"date"},form:{type:String,required:!0},locale:{type:String,default:"en"},labels:{type:String,default:""},required:{type:Boolean,required:!0},errormessage:{type:String|Boolean,required:!0}},data:function(){return{config:{wrap:!0,altFormat:"F j, Y",altInput:!0,dateFormat:"Z",enableTime:!1}}},created:function(){if("en"!==this.locale){var t=a("WqZd")("./".concat(this.locale,".js")).default[this.locale];this.config.locale=t}"datetime"===this.mode&&(this.config.enableTime=!0,this.config.altFormat="F j, Y - h:i K")}},Lt=Object(v.a)(Tt,Bt,[],!1,null,null,null);Lt.options.__file="assets/js/app/editor/Components/Date.vue";var Pt=Lt.exports,Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"multiselect-bolt-wrapper",class:t.classname,attrs:{id:"multiselect-"+t.id}},[a("multiselect",{ref:"vselect",attrs:{"allow-empty":t.allowempty,limit:1e3,multiple:t.multiple,options:t.options,searchable:t.taggable,"show-labels":!1,taggable:t.taggable,disabled:t.readonly,"data-errormessage":t.errormessage,label:"value","tag-placeholder":"Add this as new tag","tag-position":"bottom","track-by":"key"},on:{tag:t.addTag},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(t._f("raw")(e.option.value))+"\n ")]:void 0}},{key:"option",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(t._f("raw")(e.option.value))+"\n ")]:void 0}},{key:"tag",fn:function(e){return"status"!==t.name?[a("span",{class:{empty:""==e.option.value},on:{drop:function(e){return t.drop(e)},dragover:function(e){return t.allowDrop(e)}}},[a("span",{key:e.option.value,staticClass:"multiselect__tag",attrs:{id:e.option.key,draggable:!t.taggable},on:{dragstart:function(e){return t.drag(e)},dragover:function(e){return t.dragOver(e)},dragleave:function(e){return t.dragLeave(e)},dragend:function(e){return t.dragEnd(e)}}},[t.taggable?t._e():a("div",{staticClass:"multiselect__tag__drag"},[a("i",{staticClass:"fas fa-arrows-alt"})]),t._v(" "),a("span",{domProps:{innerHTML:t._s(e.option.value)}}),t._v(" "),a("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:(a.preventDefault(),t.removeElement(e.option))},mousedown:function(a){return a.preventDefault(),t.removeElement(e.option)}}})])])]:void 0}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}),t._v(" "),a("input",{attrs:{id:t.id,type:"hidden",name:t.name,form:t.form},domProps:{value:t.sanitized}})],1)};Nt._withStripped=!0;var Mt={name:"EditorSelect",components:{Multiselect:bt.a},props:{value:Array|String,name:String,id:String,form:String,options:Array,multiple:Boolean,allowempty:Boolean,taggable:Boolean,readonly:Boolean,classname:String,errormessage:String|Boolean},data:function(){return{selected:[]}},computed:{sanitized:function(){var t;return null===this.selected?JSON.stringify([]):this.selected.map?(t=this.selected.map((function(t){return t.key})),JSON.stringify(t)):JSON.stringify([this.selected.key])},fieldName:function(){return this.name+"[]"}},mounted:function(){var t=this.value.map?this.value:[this.value],e=this.options,a=t.map((function(t){var a=e.filter((function(e){return e.key===t}));if(a)return a[0]}));0===a.length&&(a=[e[0]]),this.selected=a},methods:{addTag:function(t){var e={key:t,value:t,selected:!0};this.options.push(e),this.value.push(e),this.selected.push(e)},removeElement:function(t){this.$refs.vselect.removeElement(t)},drop:function(t){t.preventDefault();var e=t.dataTransfer.getData("text"),a=this.findDropElement(t.target).id,s=this.selected.find((function(t){return""+t.key==""+e})),n=this.selected.find((function(t){return""+t.key==""+a})),i=this.selected.indexOf(s),r=this.selected.indexOf(n),o=i0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()]),t._v(" "),a("div",{staticClass:"col-3"},[a("div",{staticClass:"editor__image--preview"},[""!==t.previewImage?a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.thumbnailImage+"')",attrs:{href:t.previewImage}}):t._e()])])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__image--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};fe._withStripped=!0;var ge=a("eAd9"),he=a.n(ge),ve=a("JdwY"),be=a.n(ve),_e={name:"EditorImage",mixins:[kt],props:{filename:String,name:String,required:Boolean,readonly:Boolean,thumbnail:String,alt:String,includeAlt:Boolean,directory:String,media:Number|String,csrfToken:String,labels:Object,filelist:String,extensions:Array,attributesLink:String,inImagelist:Boolean,isFirstInImagelist:Boolean,isLastInImagelist:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{previewImage:null,thumbnailImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,altData:this.alt}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_alt_text}},mounted:function(){this.resetImage()},updated:function(){this.resetImage(),de.a.run(".editor__image--preview",{afterShow:function(){he.a.on()},afterHide:function(){he.a.off()}})},methods:{resetImage:function(){if(!this.filenameData)return this.previewImage=null,void(this.thumbnailImage=null);this.previewImage="/thumbs/1000×1000/"+this.filenameData,this.thumbnailImage="/thumbs/400×300/"+this.filenameData},onMoveImageDown:function(){this.$emit("moveImageDown",this)},onMoveImageUp:function(){this.$emit("moveImageUp",this)},onRemoveImage:function(){this.filenameData=null,this.resetImage(),this.includeAlt&&(this.altData=""),this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;n.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t,e.thumbnailData="/thumbs/400×300/".concat(t),e.previewData="/thumbs/1000×1000/".concat(t))}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((function(t){be.a.alert(t.response.data+"
Image did not upload."),console.warn(t),window.reEnablePatientButtons()}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=new FormData,s={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};a.append("image",t),a.append("_csrf_token",this.token),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.thumbnailData="/thumbs/400×300/".concat(t.data),e.previewData="/thumbs/1000×1000/".concat(t.data),e.progress=0})).catch((function(t){be.a.alert(t.response.data.error.message),console.warn(t.response.data.error.message),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},ye=Object(v.a)(_e,fe,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);ye.options.__file="assets/js/app/editor/Components/Image.vue";var we=ye.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__imagelist"},[t._l(t.containerImages,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[!0!==e.hidden?a("editor-image",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,alt:e.alt,"include-alt":!0,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-imagelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-imagelist":t.isFirstInImagelist(s),"is-last-in-imagelist":t.isLastInImagelist(s),readonly:t.readonly},on:{remove:t.onRemoveImage,moveImageUp:t.onMoveImageUp,moveImageDown:t.onMoveImageDown}}):t._e()],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addImage}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_image)+"\n ")])],2)};function Se(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){var a=this.containerImages[e],s=this.containerImages[e-1];this.containerImages.splice(e-1,2,a,s)}},onRemoveImage:function(t){var e=this.getFieldNumberFromElement(t),a=this.containerImages[e];a.hidden=!0,this.$set(this.containerImages,e,a),0===this.getActiveImageFields().length&&this.addImage()},fieldName:function(t){return this.name+"["+t+"]"},addImage:function(){var t={inImagelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter,alt:""};this.counter++,this.containerImages.push(t)}}},je=Object(v.a)(ke,Ce,[],!1,null,null,null);je.options.__file="assets/js/app/editor/Components/Imagelist.vue";var De=je.exports,Ee=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{staticClass:"form-control",attrs:{id:t.id,name:t.name,type:"email",required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.value}})])};Ee._withStripped=!0;var Ie={name:"EditorEmail",props:{value:{type:String},name:{type:String},id:{type:String},required:{type:Boolean},readonly:{type:Boolean},errormessage:{type:String|Boolean},pattern:{type:String|Boolean},placeholder:String|Boolean}},Fe=Object(v.a)(Ie,Ee,[],!1,null,null,null);Fe.options.__file="assets/js/app/editor/Components/Email.vue";var $e=Fe.exports,Ae=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group-prepend"},[a("input",{ref:"inputField",staticClass:"form-control",attrs:{id:t.id,type:"password",name:t.name,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autocomplete:"new-password"},domProps:{value:t.value},on:{input:t.measureStrength}}),t._v(" "),a("i",{ref:"visibilityToggle",staticClass:"input-group-text toggle-password fas fa-eye",on:{click:t.togglePassword}})]),t._v(" "),t.strength?a("progress-bar",{ref:"progressBar",attrs:{max:4,height:"4px"}}):t._e()],1)};Ae._withStripped=!0;var Be=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress",style:this.styleHeight},[e("div",{staticClass:"progress-bar",style:this.styleWidth,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuenow":this.value,"aria-valuemax":this.max}})])};Be._withStripped=!0;var Oe={name:"ProgressBar",props:{max:{type:Number,default:100},value:{type:Number,default:0},height:{type:String,default:null}},computed:{styleWidth:function(){return{width:this.value/this.max*100+"%"}},styleHeight:function(){return{height:this.height||null}}}},Te=Object(v.a)(Oe,Be,[],!1,null,null,null);Te.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var Le={name:"EditorPassword",components:{ProgressBar:Te.exports},props:{value:String,name:String,id:String,hidden:Boolean,strength:Boolean,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},mounted:function(){this.hidden||this.$refs.visibilityToggle.click(),this.value&&this.strength&&this.$refs.inputField.dispatchEvent(new Event("input"))},methods:{togglePassword:function(t){var e=t.target,a=t.target.previousElementSibling,s=a.attributes.getNamedItem("type").value;"password"===s?(a.setAttribute("type","text"),e.classList.replace("fa-eye","fa-eye-slash")):"text"===s&&(a.setAttribute("type","password"),e.classList.replace("fa-eye-slash","fa-eye"))},measureStrength:function(t){var e=t.target;if(this.strength){var a=window.zxcvbn(e.value);this.$refs.progressBar.value=a.score}}}},Pe=Object(v.a)(Le,Ae,[],!1,null,null,null);Pe.options.__file="assets/js/app/editor/Components/Password.vue";var Ne=Pe.exports,Me=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"user__theme"},[a("h3",[t._v("Themes:")]),t._v(" "),a("ul",{staticClass:"user__theme--themes"},t._l(t.themes,(function(e,s){return a("li",{key:s,staticClass:"theme",on:{click:function(a){return t.selectTheme(e.value)}}},[a("h5",{staticClass:"theme--name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"theme--palette"},t._l(e.colors,(function(t,e){return a("span",{key:e,style:"background-color: "+t})})),0)])})),0)])};Me._withStripped=!0;var ze={name:"ThemeSelect",data:function(){return{themes:[{name:"Default",value:"default",colors:["#1a5597","#053b79","#0c223b","#ffffff"]},{name:"Light",value:"light",colors:["#1a5597","#053b79","#ffffff","#f9f9f9"]}]}},methods:{selectTheme:function(t){var e=document.querySelector("#theme"),a=e.getAttribute("href").split("theme-")[0],s="".concat(a,"theme-").concat(t,".css");e.setAttribute("href",s)}}},qe=Object(v.a)(ze,Me,[],!1,null,null,null);qe.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var Re=qe.exports,Ve=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group",attrs:{id:"multiselect-localeswitcher"}},[a("label",[t._v(t._s(t.label))]),t._v(" "),a("multiselect",{attrs:{"track-by":"name",label:"localizedname",options:t.locales,searchable:!1,"show-labels":!1,limit:1},on:{input:function(e){return t.switchLocale()}},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}},{key:"option",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}}]),model:{value:t.locale,callback:function(e){t.locale=e},expression:"locale"}})],1)};Ve._withStripped=!0;var Ue={name:"EditorLanguage",components:{Multiselect:bt.a},props:{label:String,locales:Array,current:String},data:function(){return{locale:{}}},mounted:function(){var t=this;if(this.current){var e=this.locales.filter((function(e){return e.code===t.current}));e.length>0?this.locale=e[0]:this.locale=this.locales[0]}else this.locale=this.locales[0]},methods:{switchLocale:function(){var t=this.locale.link+location.hash;return window.location.href=t}}},He=Object(v.a)(Ue,Ve,[],!1,null,null,null);He.options.__file="assets/js/app/editor/Components/Language.vue";var Ye=He.exports,Ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__file",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__file--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"input-group mb-3"},[a("input",{attrs:{name:t.name+"[media]",type:"hidden"},domProps:{value:t.media}}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:t.name+"[filename]",type:"text",placeholder:t.labels.placeholder_filename,"data-readonly":"readonly",required:t.required,"data-errormessage":t.errormessage},domProps:{value:t.filenameData}})]),t._v(" "),a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.titleData,expression:"titleData"}],staticClass:"form-control",attrs:{name:t.name+"[title]",type:"text",required:t.required,readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.titleData},on:{input:function(e){e.target.composing||(t.titleData=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"file-upload-dropdown",type:"button",disabled:t.readonly}}),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",readonly:t.readonly,"data-patience":"virtue"},on:{click:t.selectServerFile}},[a("i",{staticClass:"fas fa-fw fa-th"}),t._v("\n "+t._s(t.labels.button_from_library)+"\n ")]),t._v(" "),t.filenameData?a("a",{staticClass:"dropdown-item",attrs:{href:t.attributesLink+"?file="+t.filenameData,target:"_blank"}},[a("i",{staticClass:"fas fa-fw fa-info-circle"}),t._v("\n "+t._s(t.labels.button_edit_attributes)+"\n "),t._m(0)]):t._e()])]),t._v(" "),a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInFilelist||t.readonly},on:{click:t.onMoveFileUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInFilelist||t.readonly},on:{click:t.onMoveFileDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveFile}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__file--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};Ze._withStripped=!0;var Je={name:"EditorFile",mixins:[kt],props:{name:String,filename:String,title:String,directory:String,media:String,csrfToken:String,labels:Object,filelist:String,extensions:Array,inFilelist:Boolean,isFirstInFilelist:Boolean,isLastInFilelist:Boolean,attributesLink:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,titleData:this.title}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_title}},methods:{onMoveFileDown:function(){this.$emit("moveFileDown",this)},onMoveFileUp:function(){this.$emit("moveFileUp",this)},onRemoveFile:function(){this.filenameData="",this.titleData="",this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;n.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t)}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((function(t){console.warn(t),window.reEnablePatientButtons()}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=new FormData,s={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};a.append("file",t),a.append("_csrf_token",this.token),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.progress=0})).catch((function(t){var a=t.response.data,s="unknown error";"string"==typeof a||a instanceof String?s=a:a.error&&a.error.message&&(s=a.error.message),be.a.alert(s+"
File did not upload."),console.warn(t),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},Ge=Object(v.a)(Je,Ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);Ge.options.__file="assets/js/app/editor/Components/File.vue";var We=Ge.exports,Qe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor-filelist"},[t._l(t.containerFiles,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[a("editor-file",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-filelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-filelist":t.isFirstInFilelist(s),"is-last-in-filelist":t.isLastInFilelist(s),readonly:t.readonly},on:{remove:t.onRemoveFile,moveFileUp:t.onMoveFileUp,moveFileDown:t.onMoveFileDown}})],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addFile}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_file)+"\n ")])],2)};function Ke(t){return function(t){if(Array.isArray(t))return Xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){var a=this.containerFiles[e],s=this.containerFiles[e-1];this.containerFiles.splice(e-1,2,a,s)}},onRemoveFile:function(t){var e=this.getFieldNumberFromElement(t);this.containerFiles.splice(e,1),0===this.containerFiles.length&&this.addFile()},fieldName:function(t){return this.name+"["+t+"]"},addFile:function(){var t={inFilelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter};this.counter++,this.containerFiles.push(t)}}},ea=Object(v.a)(ta,Qe,[],!1,null,null,null);ea.options.__file="assets/js/app/editor/Components/Filelist.vue";var aa=ea.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"collectionContainer",staticClass:"collection-container",attrs:{id:t.name}},[a("div",{staticClass:"expand-buttons"},[a("label",[t._v(t._s(t.labels.field_label)+":")]),t._v(" "),a("div",{staticClass:"btn-group",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-secondary btn-sm collection-expand-all"},[a("i",{staticClass:"fas fa-fw fa-expand-alt"}),t._v("\n "+t._s(t.labels.expand_all)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-secondary btn-sm collection-collapse-all"},[a("i",{staticClass:"fas fa-fw fa-compress-alt"}),t._v("\n "+t._s(t.labels.collapse_all)+"\n ")])])]),t._v(" "),t._l(t.elements,(function(e){return a("div",{key:e.hash,staticClass:"collection-item"},[a("details",{staticClass:"card",attrs:{open:"expanded"===t.variant}},[a("summary",{staticClass:"d-block"},[a("div",{staticClass:"card-header d-flex align-items-center"},[a("i",{staticClass:"card-marker-caret fa fa-caret-right"}),t._v(" "),a("div",{staticClass:"collection-item-title",attrs:{"data-label":e.label}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),a(t.compile(e.buttons),{tag:"div"})],1)]),t._v(" "),a(t.compile(e.content),{tag:"div",staticClass:"card-body"})],1)])})),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[t.templates.length>1?a("p",{staticClass:"mt-4 mb-1"},[t._v(t._s(t.labels.add_collection_item)+":")]):t._e(),t._v(" "),t.templates.length>1?a("div",{staticClass:"dropdown"},[a("button",{staticClass:"btn btn-secondary dropdown-toggle",attrs:{id:t.name+"-dropdownMenuButton",disabled:!t.allowMore,type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v(" "+t._s(t.labels.select)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":t.name+"-dropdownMenuButton"}},t._l(t.templates,(function(e){return a("a",{key:e.label,staticClass:"dropdown-item",attrs:{"data-template":e.label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")])})),0)]):a("button",{staticClass:"btn btn-secondary btn-small",attrs:{type:"button","data-template":t.templates[0].label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[t.templates[0].icon,"fas fa-fw"]}),t._v("\n "+t._s(t.labels.add_collection_item)+"\n ")])])])],2)};sa._withStripped=!0;var na=a("Tntk"),ia={name:"EditorCollection",props:{name:{type:String,required:!0},templates:{type:Array,required:!0},existingFields:{type:Array},labels:{type:Object,required:!0},limit:{type:Number,required:!0},variant:{type:String,required:!0}},data:function(){return{elements:this.existingFields,counter:this.existingFields.length,templateSelectName:"templateSelect"+this.id,templateSelectOptions:[],selector:{collectionContainer:"#"+this.name,item:" .collection-item",remove:" .action-remove-collection-item",moveUp:" .action-move-up-collection-item",moveDown:" .action-move-down-collection-item",expandAll:" .collection-expand-all",collapseAll:" .collection-collapse-all",editor:" #editor"}}},computed:{initialSelectValue:function(){return this.templateSelectOptions[0].key},allowMore:function(){return this.counter (https://boltcms.io)", "license": "MIT", @@ -32,7 +32,7 @@ "baguettebox.js": "^1.11.1", "bootbox": "^5.5.1", "bootstrap": "^4.5.3", - "browserslist": "^4.14.5", + "browserslist": "^4.14.6", "caniuse-lite": "^1.0.30001151", "codemirror": "^5.58.2", "dropzone": "^5.7.2", @@ -68,14 +68,14 @@ "@babel/preset-env": "^7.12.1", "@fortawesome/fontawesome-free": "^5.15.1", "@symfony/webpack-encore": "^0.30.2", - "@vue/test-utils": "^1.1.0", + "@vue/test-utils": "^1.1.1", "ajv-keywords": "^3.5.2", "autoprefixer": "^9.8.6", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.1.0", "babel-jest": "^25.5.1", "eslint": "^6.8.0", - "eslint-config-prettier": "^6.14.0", + "eslint-config-prettier": "^6.15.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-standard": "^4.0.2", "eslint-plugin-vue": "^6.2.2", @@ -92,8 +92,8 @@ "stylelint": "^13.7.2", "stylelint-config-standard": "^19.0.0", "vue-jest": "^3.0.7", - "vue-loader": "^15.9.3", - "vue-router": "^3.4.7", + "vue-loader": "^15.9.5", + "vue-router": "^3.4.8", "vue-template-compiler": "^2.6.12", "webpackbar": "^4.0.0", "workbox-webpack-plugin": "^4.3.1"