UNPKG

weborama-ui-react

Version:

Weborama Semantic UI React Components

6 lines 35.8 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["weborama-ui-react"]=t(require("react")):e["weborama-ui-react"]=t(e.react)}(window,(function(e){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=106)}({0:function(e,t,o){e.exports=o(6)()},1:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=function(e,t){var o=e[1]||"",n=e[3];if(!n)return o;if(t&&"function"==typeof btoa){var i=(c=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */"),r=n.sources.map((function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"}));return[o].concat(r).concat([i]).join("\n")}var c;return[o].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o})).join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var c=e[i];"number"==typeof c[0]&&n[c[0]]||(o&&!c[2]?c[2]=o:o&&(c[2]="("+c[2]+") and ("+o+")"),t.push(c))}},t}},106:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=a(o(0)),r=a(o(4)),c=a(o(5));function a(e){return e&&e.__esModule?e:{default:e}}o(107),o(109);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.onChecked=o.onChecked.bind(o),o.onUnchecked=o.onUnchecked.bind(o),o.onChange=o.onChange.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){$(this.refs.checkbox).checkbox({onChecked:this.onChecked,onUnchecked:this.onUnchecked,onChange:this.onChange})}},{key:"onChecked",value:function(){"function"==typeof this.props.onChecked&&this.props.onChecked(this.refs.checkbox.dataset.value)}},{key:"onUnchecked",value:function(){"function"==typeof this.props.onUnchecked&&this.props.onUnchecked(this.refs.checkbox.dataset.value)}},{key:"onChange",value:function(){"function"==typeof this.props.onChange&&this.props.onChange(this.refs.checkbox.dataset.value)}},{key:"isChecked",value:function(){return $(this.refs.checkbox).checkbox("is checked")}},{key:"check",value:function(){$(this.refs.checkbox).checkbox("check")}},{key:"unCheck",value:function(){$(this.refs.checkbox).checkbox("uncheck")}},{key:"render",value:function(){var e=(0,c.default)({ui:!0,toggle:this.props.toggle,slider:this.props.slider,fitted:this.props.fitted,disabled:this.props.disabled,checked:this.props.checked,radio:this.props.radio,checkbox:!0},this.props.className),t=this.props.radio?"radio":"checkbox";return r.default.createElement("div",{className:e,ref:"checkbox","data-value":this.props.value,style:this.props.style},r.default.createElement("input",{type:t,name:this.props.name,defaultChecked:this.props.checked,"data-validate":this.props.validation}),r.default.createElement("label",null,this.props.children))}}]),t}(r.default.Component);s.displayName="Checkbox",t.default=s,s.propTypes={value:i.default.any,disabled:i.default.bool,slider:i.default.bool,toggle:i.default.bool,fitted:i.default.bool,radio:i.default.bool,checked:i.default.bool,onChange:i.default.func,onChecked:i.default.func,onUnchecked:i.default.func,name:i.default.string,className:i.default.string,children:i.default.any,style:i.default.object,validation:i.default.string}},107:function(e,t,o){var n=o(108);"string"==typeof n&&(n=[[e.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};o(2)(n,i);n.locals&&(e.exports=n.locals)},108:function(e,t,o){(e.exports=o(1)(!1)).push([e.i,"/*!\n * # Semantic UI 2.4.2 - Checkbox\n * http://github.com/semantic-org/semantic-ui/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */.ui.checkbox{position:relative;display:inline-block;-webkit-backface-visibility:hidden;backface-visibility:hidden;outline:0;vertical-align:baseline;font-style:normal;min-height:17px;font-size:1rem;line-height:17px;min-width:17px}.ui.checkbox input[type=checkbox],.ui.checkbox input[type=radio]{cursor:pointer;position:absolute;top:0;left:0;opacity:0!important;outline:0;z-index:3;width:17px;height:17px}.ui.checkbox .box,.ui.checkbox label{cursor:auto;position:relative;display:block;padding-left:1.85714em;outline:0;font-size:1em}.ui.checkbox .box:before,.ui.checkbox label:before{position:absolute;top:0;left:0;width:17px;height:17px;content:'';background:#fff;border-radius:.21428571rem;-webkit-transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,-webkit-box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,-webkit-box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease,-webkit-transform .1s ease,-webkit-box-shadow .1s ease;border:1px solid #d4d4d5}.ui.checkbox .box:after,.ui.checkbox label:after{position:absolute;font-size:14px;top:0;left:0;width:17px;height:17px;text-align:center;opacity:0;color:rgba(0,0,0,.87);-webkit-transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,-webkit-box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,-webkit-box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease,-webkit-transform .1s ease,-webkit-box-shadow .1s ease}.ui.checkbox label,.ui.checkbox+label{color:rgba(0,0,0,.87);-webkit-transition:color .1s ease;transition:color .1s ease}.ui.checkbox+label{vertical-align:middle}.ui.checkbox .box:hover::before,.ui.checkbox label:hover::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox label:hover,.ui.checkbox+label:hover{color:rgba(0,0,0,.8)}.ui.checkbox .box:active::before,.ui.checkbox label:active::before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox .box:active::after,.ui.checkbox label:active::after{color:rgba(0,0,0,.95)}.ui.checkbox input:active~label{color:rgba(0,0,0,.95)}.ui.checkbox input:focus~.box:before,.ui.checkbox input:focus~label:before{background:#fff;border-color:#96c8da}.ui.checkbox input:focus~.box:after,.ui.checkbox input:focus~label:after{color:rgba(0,0,0,.95)}.ui.checkbox input:focus~label{color:rgba(0,0,0,.95)}.ui.checkbox input:checked~.box:before,.ui.checkbox input:checked~label:before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:checked~.box:after,.ui.checkbox input:checked~label:after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input:not([type=radio]):indeterminate~.box:before,.ui.checkbox input:not([type=radio]):indeterminate~label:before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:not([type=radio]):indeterminate~.box:after,.ui.checkbox input:not([type=radio]):indeterminate~label:after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input:checked:focus~.box:before,.ui.checkbox input:checked:focus~label:before,.ui.checkbox input:not([type=radio]):indeterminate:focus~.box:before,.ui.checkbox input:not([type=radio]):indeterminate:focus~label:before{background:#fff;border-color:#96c8da}.ui.checkbox input:checked:focus~.box:after,.ui.checkbox input:checked:focus~label:after,.ui.checkbox input:not([type=radio]):indeterminate:focus~.box:after,.ui.checkbox input:not([type=radio]):indeterminate:focus~label:after{color:rgba(0,0,0,.95)}.ui.read-only.checkbox,.ui.read-only.checkbox label{cursor:default}.ui.checkbox input[disabled]~.box:after,.ui.checkbox input[disabled]~label,.ui.disabled.checkbox .box:after,.ui.disabled.checkbox label{cursor:default!important;opacity:.5;color:#000}.ui.checkbox input.hidden{z-index:-1}.ui.checkbox input.hidden+label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui.radio.checkbox{min-height:15px}.ui.radio.checkbox .box,.ui.radio.checkbox label{padding-left:1.85714em}.ui.radio.checkbox .box:before,.ui.radio.checkbox label:before{content:'';-webkit-transform:none;transform:none;width:15px;height:15px;border-radius:500rem;top:1px;left:0}.ui.radio.checkbox .box:after,.ui.radio.checkbox label:after{border:none;content:''!important;width:15px;height:15px;line-height:15px}.ui.radio.checkbox .box:after,.ui.radio.checkbox label:after{top:1px;left:0;width:15px;height:15px;border-radius:500rem;-webkit-transform:scale(.46666667);transform:scale(.46666667);background-color:rgba(0,0,0,.87)}.ui.radio.checkbox input:focus~.box:before,.ui.radio.checkbox input:focus~label:before{background-color:#fff}.ui.radio.checkbox input:focus~.box:after,.ui.radio.checkbox input:focus~label:after{background-color:rgba(0,0,0,.95)}.ui.radio.checkbox input:indeterminate~.box:after,.ui.radio.checkbox input:indeterminate~label:after{opacity:0}.ui.radio.checkbox input:checked~.box:before,.ui.radio.checkbox input:checked~label:before{background-color:#fff}.ui.radio.checkbox input:checked~.box:after,.ui.radio.checkbox input:checked~label:after{background-color:rgba(0,0,0,.95)}.ui.radio.checkbox input:focus:checked~.box:before,.ui.radio.checkbox input:focus:checked~label:before{background-color:#fff}.ui.radio.checkbox input:focus:checked~.box:after,.ui.radio.checkbox input:focus:checked~label:after{background-color:rgba(0,0,0,.95)}.ui.slider.checkbox{min-height:1.25rem}.ui.slider.checkbox input{width:3.5rem;height:1.25rem}.ui.slider.checkbox .box,.ui.slider.checkbox label{padding-left:4.5rem;line-height:1rem;color:rgba(0,0,0,.4)}.ui.slider.checkbox .box:before,.ui.slider.checkbox label:before{display:block;position:absolute;content:'';border:none!important;left:0;z-index:1;top:.4rem;background-color:rgba(0,0,0,.05);width:3.5rem;height:.21428571rem;-webkit-transform:none;transform:none;border-radius:500rem;-webkit-transition:background .3s ease;transition:background .3s ease}.ui.slider.checkbox .box:after,.ui.slider.checkbox label:after{background:#fff -webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.05)));background:#fff -webkit-linear-gradient(transparent,rgba(0,0,0,.05));background:#fff linear-gradient(transparent,rgba(0,0,0,.05));position:absolute;content:''!important;opacity:1;z-index:2;border:none;-webkit-box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:-.25rem;left:0;-webkit-transform:none;transform:none;border-radius:500rem;-webkit-transition:left .3s ease;transition:left .3s ease}.ui.slider.checkbox input:focus~.box:before,.ui.slider.checkbox input:focus~label:before{background-color:rgba(0,0,0,.15);border:none}.ui.slider.checkbox .box:hover,.ui.slider.checkbox label:hover{color:rgba(0,0,0,.8)}.ui.slider.checkbox .box:hover::before,.ui.slider.checkbox label:hover::before{background:rgba(0,0,0,.15)}.ui.slider.checkbox input:checked~.box,.ui.slider.checkbox input:checked~label{color:rgba(0,0,0,.95)!important}.ui.slider.checkbox input:checked~.box:before,.ui.slider.checkbox input:checked~label:before{background-color:#545454!important}.ui.slider.checkbox input:checked~.box:after,.ui.slider.checkbox input:checked~label:after{left:2rem}.ui.slider.checkbox input:focus:checked~.box,.ui.slider.checkbox input:focus:checked~label{color:rgba(0,0,0,.95)!important}.ui.slider.checkbox input:focus:checked~.box:before,.ui.slider.checkbox input:focus:checked~label:before{background-color:#000!important}.ui.toggle.checkbox{min-height:1.5rem}.ui.toggle.checkbox input{width:3.5rem;height:1.5rem}.ui.toggle.checkbox .box,.ui.toggle.checkbox label{min-height:1.5rem;padding-left:4.5rem;color:rgba(0,0,0,.87)}.ui.toggle.checkbox label{padding-top:.15em}.ui.toggle.checkbox .box:before,.ui.toggle.checkbox label:before{display:block;position:absolute;content:'';z-index:1;-webkit-transform:none;transform:none;border:none;top:0;background:rgba(0,0,0,.05);-webkit-box-shadow:none;box-shadow:none;width:3.5rem;height:1.5rem;border-radius:500rem}.ui.toggle.checkbox .box:after,.ui.toggle.checkbox label:after{background:#fff -webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.05)));background:#fff -webkit-linear-gradient(transparent,rgba(0,0,0,.05));background:#fff linear-gradient(transparent,rgba(0,0,0,.05));position:absolute;content:''!important;opacity:1;z-index:2;border:none;-webkit-box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:0;left:0;border-radius:500rem;-webkit-transition:background .3s ease,left .3s ease;transition:background .3s ease,left .3s ease}.ui.toggle.checkbox input~.box:after,.ui.toggle.checkbox input~label:after{left:-.05rem;-webkit-box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset}.ui.toggle.checkbox input:focus~.box:before,.ui.toggle.checkbox input:focus~label:before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox .box:hover::before,.ui.toggle.checkbox label:hover::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox input:checked~.box,.ui.toggle.checkbox input:checked~label{color:rgba(0,0,0,.95)!important}.ui.toggle.checkbox input:checked~.box:before,.ui.toggle.checkbox input:checked~label:before{background-color:#2185d0!important}.ui.toggle.checkbox input:checked~.box:after,.ui.toggle.checkbox input:checked~label:after{left:2.15rem;-webkit-box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset}.ui.toggle.checkbox input:focus:checked~.box,.ui.toggle.checkbox input:focus:checked~label{color:rgba(0,0,0,.95)!important}.ui.toggle.checkbox input:focus:checked~.box:before,.ui.toggle.checkbox input:focus:checked~label:before{background-color:#0d71bb!important}.ui.fitted.checkbox .box,.ui.fitted.checkbox label{padding-left:0!important}.ui.fitted.toggle.checkbox{width:3.5rem}.ui.fitted.slider.checkbox{width:3.5rem}@font-face{font-family:Checkbox;src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBD8AAAC8AAAAYGNtYXAYVtCJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zn4huwUAAAF4AAABYGhlYWQGPe1ZAAAC2AAAADZoaGVhB30DyAAAAxAAAAAkaG10eBBKAEUAAAM0AAAAHGxvY2EAmgESAAADUAAAABBtYXhwAAkALwAAA2AAAAAgbmFtZSC8IugAAAOAAAABknBvc3QAAwAAAAAFFAAAACAAAwMTAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADoAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6AL//f//AAAAAAAg6AD//f//AAH/4xgEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAEUAUQO7AvgAGgAAARQHAQYjIicBJjU0PwE2MzIfAQE2MzIfARYVA7sQ/hQQFhcQ/uMQEE4QFxcQqAF2EBcXEE4QAnMWEP4UEBABHRAXFhBOEBCoAXcQEE4QFwAAAAABAAABbgMlAkkAFAAAARUUBwYjISInJj0BNDc2MyEyFxYVAyUQEBf9SRcQEBAQFwK3FxAQAhJtFxAQEBAXbRcQEBAQFwAAAAABAAAASQMlA24ALAAAARUUBwYrARUUBwYrASInJj0BIyInJj0BNDc2OwE1NDc2OwEyFxYdATMyFxYVAyUQEBfuEBAXbhYQEO4XEBAQEBfuEBAWbhcQEO4XEBACEm0XEBDuFxAQEBAX7hAQF20XEBDuFxAQEBAX7hAQFwAAAQAAAAIAAHRSzT9fDzz1AAsEAAAAAADRsdR3AAAAANGx1HcAAAAAA7sDbgAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADuwABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABFAyUAAAMlAAAAAAAAAAoAFAAeAE4AcgCwAAEAAAAHAC0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAIAAAAAQAAAAAAAgAHAGkAAQAAAAAAAwAIADkAAQAAAAAABAAIAH4AAQAAAAAABQALABgAAQAAAAAABgAIAFEAAQAAAAAACgAaAJYAAwABBAkAAQAQAAgAAwABBAkAAgAOAHAAAwABBAkAAwAQAEEAAwABBAkABAAQAIYAAwABBAkABQAWACMAAwABBAkABgAQAFkAAwABBAkACgA0ALBDaGVja2JveABDAGgAZQBjAGsAYgBvAHhWZXJzaW9uIDIuMABWAGUAcgBzAGkAbwBuACAAMgAuADBDaGVja2JveABDAGgAZQBjAGsAYgBvAHhDaGVja2JveABDAGgAZQBjAGsAYgBvAHhSZWd1bGFyAFIAZQBnAHUAbABhAHJDaGVja2JveABDAGgAZQBjAGsAYgBvAHhGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype')}.ui.checkbox .box:after,.ui.checkbox label:after{font-family:Checkbox}.ui.checkbox input:checked~.box:after,.ui.checkbox input:checked~label:after{content:'\\E800'}.ui.checkbox input:indeterminate~.box:after,.ui.checkbox input:indeterminate~label:after{font-size:12px;content:'\\E801'}",""])},109:function(e,t){!function(e,t,o,n){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.checkbox=function(i){var r,c=e(this),a=c.selector||"",s=(new Date).getTime(),l=[],u=i,b="string"==typeof u,d=[].slice.call(arguments,1);return c.each((function(){var c,A,f=e.extend(!0,{},e.fn.checkbox.settings,i),h=f.className,p=f.namespace,k=f.selector,g=f.error,x="."+p,m="module-"+p,v=e(this),y=e(this).children(k.label),w=e(this).children(k.input),B=w[0],C=!1,E=!1,Q=v.data(m),O=this;A={initialize:function(){A.verbose("Initializing checkbox",f),A.create.label(),A.bind.events(),A.set.tabbable(),A.hide.input(),A.observeChanges(),A.instantiate(),A.setup()},instantiate:function(){A.verbose("Storing instance of module",A),Q=A,v.data(m,A)},destroy:function(){A.verbose("Destroying module"),A.unbind.events(),A.show.input(),v.removeData(m)},fix:{reference:function(){v.is(k.input)&&(A.debug("Behavior called on <input> adjusting invoked element"),v=v.closest(k.checkbox),A.refresh())}},setup:function(){A.set.initialLoad(),A.is.indeterminate()?(A.debug("Initial value is indeterminate"),A.indeterminate()):A.is.checked()?(A.debug("Initial value is checked"),A.check()):(A.debug("Initial value is unchecked"),A.uncheck()),A.remove.initialLoad()},refresh:function(){y=v.children(k.label),w=v.children(k.input),B=w[0]},hide:{input:function(){A.verbose("Modifying <input> z-index to be unselectable"),w.addClass(h.hidden)}},show:{input:function(){A.verbose("Modifying <input> z-index to be selectable"),w.removeClass(h.hidden)}},observeChanges:function(){"MutationObserver"in t&&((c=new MutationObserver((function(e){A.debug("DOM tree modified, updating selector cache"),A.refresh()}))).observe(O,{childList:!0,subtree:!0}),A.debug("Setting up mutation observer",c))},attachEvents:function(t,o){var n=e(t);o=e.isFunction(A[o])?A[o]:A.toggle,0<n.length?(A.debug("Attaching checkbox events to element",t,o),n.on("click"+x,o)):A.error(g.notFound)},event:{click:function(t){var o=e(t.target);o.is(k.input)?A.verbose("Using default check action on initialized checkbox"):o.is(k.link)?A.debug("Clicking link inside checkbox, skipping toggle"):(A.toggle(),w.focus(),t.preventDefault())},keydown:function(e){var t=e.which;E=27==t?(A.verbose("Escape key pressed blurring field"),w.blur(),!0):!(e.ctrlKey||32!=t&&13!=t||(A.verbose("Enter/space key pressed, toggling checkbox"),A.toggle(),0))},keyup:function(e){E&&e.preventDefault()}},check:function(){A.should.allowCheck()&&(A.debug("Checking checkbox",w),A.set.checked(),A.should.ignoreCallbacks()||(f.onChecked.call(B),f.onChange.call(B)))},uncheck:function(){A.should.allowUncheck()&&(A.debug("Unchecking checkbox"),A.set.unchecked(),A.should.ignoreCallbacks()||(f.onUnchecked.call(B),f.onChange.call(B)))},indeterminate:function(){A.should.allowIndeterminate()?A.debug("Checkbox is already indeterminate"):(A.debug("Making checkbox indeterminate"),A.set.indeterminate(),A.should.ignoreCallbacks()||(f.onIndeterminate.call(B),f.onChange.call(B)))},determinate:function(){A.should.allowDeterminate()?A.debug("Checkbox is already determinate"):(A.debug("Making checkbox determinate"),A.set.determinate(),A.should.ignoreCallbacks()||(f.onDeterminate.call(B),f.onChange.call(B)))},enable:function(){A.is.enabled()?A.debug("Checkbox is already enabled"):(A.debug("Enabling checkbox"),A.set.enabled(),f.onEnable.call(B),f.onEnabled.call(B))},disable:function(){A.is.disabled()?A.debug("Checkbox is already disabled"):(A.debug("Disabling checkbox"),A.set.disabled(),f.onDisable.call(B),f.onDisabled.call(B))},get:{radios:function(){var t=A.get.name();return e('input[name="'+t+'"]').closest(k.checkbox)},otherRadios:function(){return A.get.radios().not(v)},name:function(){return w.attr("name")}},is:{initialLoad:function(){return C},radio:function(){return w.hasClass(h.radio)||"radio"==w.attr("type")},indeterminate:function(){return w.prop("indeterminate")!==n&&w.prop("indeterminate")},checked:function(){return w.prop("checked")!==n&&w.prop("checked")},disabled:function(){return w.prop("disabled")!==n&&w.prop("disabled")},enabled:function(){return!A.is.disabled()},determinate:function(){return!A.is.indeterminate()},unchecked:function(){return!A.is.checked()}},should:{allowCheck:function(){return A.is.determinate()&&A.is.checked()&&!A.should.forceCallbacks()?(A.debug("Should not allow check, checkbox is already checked"),!1):!1!==f.beforeChecked.apply(B)||(A.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return A.is.determinate()&&A.is.unchecked()&&!A.should.forceCallbacks()?(A.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==f.beforeUnchecked.apply(B)||(A.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return A.is.indeterminate()&&!A.should.forceCallbacks()?(A.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==f.beforeIndeterminate.apply(B)||(A.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return A.is.determinate()&&!A.should.forceCallbacks()?(A.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==f.beforeDeterminate.apply(B)||(A.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return A.is.initialLoad()&&f.fireOnInit},ignoreCallbacks:function(){return C&&!f.fireOnInit}},can:{change:function(){return!(v.hasClass(h.disabled)||v.hasClass(h.readOnly)||w.prop("disabled")||w.prop("readonly"))},uncheck:function(){return"boolean"==typeof f.uncheckable?f.uncheckable:!A.is.radio()}},set:{initialLoad:function(){C=!0},checked:function(){A.verbose("Setting class to checked"),v.removeClass(h.indeterminate).addClass(h.checked),A.is.radio()&&A.uncheckOthers(),A.is.indeterminate()||!A.is.checked()?(A.verbose("Setting state to checked",B),w.prop("indeterminate",!1).prop("checked",!0),A.trigger.change()):A.debug("Input is already checked, skipping input property change")},unchecked:function(){A.verbose("Removing checked class"),v.removeClass(h.indeterminate).removeClass(h.checked),A.is.indeterminate()||!A.is.unchecked()?(A.debug("Setting state to unchecked"),w.prop("indeterminate",!1).prop("checked",!1),A.trigger.change()):A.debug("Input is already unchecked")},indeterminate:function(){A.verbose("Setting class to indeterminate"),v.addClass(h.indeterminate),A.is.indeterminate()?A.debug("Input is already indeterminate, skipping input property change"):(A.debug("Setting state to indeterminate"),w.prop("indeterminate",!0),A.trigger.change())},determinate:function(){A.verbose("Removing indeterminate class"),v.removeClass(h.indeterminate),A.is.determinate()?A.debug("Input is already determinate, skipping input property change"):(A.debug("Setting state to determinate"),w.prop("indeterminate",!1))},disabled:function(){A.verbose("Setting class to disabled"),v.addClass(h.disabled),A.is.disabled()?A.debug("Input is already disabled, skipping input property change"):(A.debug("Setting state to disabled"),w.prop("disabled","disabled"),A.trigger.change())},enabled:function(){A.verbose("Removing disabled class"),v.removeClass(h.disabled),A.is.enabled()?A.debug("Input is already enabled, skipping input property change"):(A.debug("Setting state to enabled"),w.prop("disabled",!1),A.trigger.change())},tabbable:function(){A.verbose("Adding tabindex to checkbox"),w.attr("tabindex")===n&&w.attr("tabindex",0)}},remove:{initialLoad:function(){C=!1}},trigger:{change:function(){var e=o.createEvent("HTMLEvents"),t=w[0];t&&(A.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{label:function(){0<w.prevAll(k.label).length?(w.prev(k.label).detach().insertAfter(w),A.debug("Moving existing label",y)):A.has.label()||(y=e("<label>").insertAfter(w),A.debug("Creating label",y))}},has:{label:function(){return 0<y.length}},bind:{events:function(){A.verbose("Attaching checkbox events"),v.on("click"+x,A.event.click).on("keydown"+x,k.input,A.event.keydown).on("keyup"+x,k.input,A.event.keyup)}},unbind:{events:function(){A.debug("Removing events"),v.off(x)}},uncheckOthers:function(){var e=A.get.otherRadios();A.debug("Unchecking other radios",e),e.removeClass(h.checked)},toggle:function(){A.can.change()?A.is.indeterminate()||A.is.unchecked()?(A.debug("Currently unchecked"),A.check()):A.is.checked()&&A.can.uncheck()&&(A.debug("Currently checked"),A.uncheck()):A.is.radio()||A.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(t,o){if(A.debug("Changing setting",t,o),e.isPlainObject(t))e.extend(!0,f,t);else{if(o===n)return f[t];e.isPlainObject(f[t])?e.extend(!0,f[t],o):f[t]=o}},internal:function(t,o){if(e.isPlainObject(t))e.extend(!0,A,t);else{if(o===n)return A[t];A[t]=o}},debug:function(){!f.silent&&f.debug&&(f.performance?A.performance.log(arguments):(A.debug=Function.prototype.bind.call(console.info,console,f.name+":"),A.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?A.performance.log(arguments):(A.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),A.verbose.apply(console,arguments)))},error:function(){f.silent||(A.error=Function.prototype.bind.call(console.error,console,f.name+":"),A.error.apply(console,arguments))},performance:{log:function(e){var t,o;f.performance&&(o=(t=(new Date).getTime())-(s||t),s=t,l.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:O,"Execution Time":o})),clearTimeout(A.performance.timer),A.performance.timer=setTimeout(A.performance.display,500)},display:function(){var t=f.name+":",o=0;s=!1,clearTimeout(A.performance.timer),e.each(l,(function(e,t){o+=t["Execution Time"]})),t+=" "+o+"ms",a&&(t+=" '"+a+"'"),(console.group!==n||console.table!==n)&&0<l.length&&(console.groupCollapsed(t),console.table?console.table(l):e.each(l,(function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")})),console.groupEnd()),l=[]}},invoke:function(t,o,i){var c,a,s,l=Q;return o=o||d,i=O||i,"string"==typeof t&&l!==n&&(t=t.split(/[\. ]/),c=t.length-1,e.each(t,(function(o,i){var r=o!=c?i+t[o+1].charAt(0).toUpperCase()+t[o+1].slice(1):t;if(e.isPlainObject(l[r])&&o!=c)l=l[r];else{if(l[r]!==n)return a=l[r],!1;if(!e.isPlainObject(l[i])||o==c)return l[i]!==n?a=l[i]:A.error(g.method,t),!1;l=l[i]}}))),e.isFunction(a)?s=a.apply(i,o):a!==n&&(s=a),e.isArray(r)?r.push(s):r!==n?r=[r,s]:s!==n&&(r=s),a}},b?(Q===n&&A.initialize(),A.invoke(u)):(Q!==n&&Q.invoke("destroy"),A.initialize())})),r!==n?r:this},e.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!0,performance:!0,uncheckable:"auto",fireOnInit:!1,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",label:"label, .box",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document)},2:function(e,t,o){var n,i,r={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=n.apply(this,arguments)),i}),a=function(e,t){return t?t.querySelector(e):document.querySelector(e)},s=function(e){var t={};return function(e,o){if("function"==typeof e)return e();if(void 0===t[e]){var n=a.call(this,e,o);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,u=0,b=[],d=o(3);function A(e,t){for(var o=0;o<e.length;o++){var n=e[o],i=r[n.id];if(i){i.refs++;for(var c=0;c<i.parts.length;c++)i.parts[c](n.parts[c]);for(;c<n.parts.length;c++)i.parts.push(x(n.parts[c],t))}else{var a=[];for(c=0;c<n.parts.length;c++)a.push(x(n.parts[c],t));r[n.id]={id:n.id,refs:1,parts:a}}}}function f(e,t){for(var o=[],n={},i=0;i<e.length;i++){var r=e[i],c=t.base?r[0]+t.base:r[0],a={css:r[1],media:r[2],sourceMap:r[3]};n[c]?n[c].parts.push(a):o.push(n[c]={id:c,parts:[a]})}return o}function h(e,t){var o=s(e.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=b[b.length-1];if("top"===e.insertAt)n?n.nextSibling?o.insertBefore(t,n.nextSibling):o.appendChild(t):o.insertBefore(t,o.firstChild),b.push(t);else if("bottom"===e.insertAt)o.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(e.insertAt.before,o);o.insertBefore(t,i)}}function p(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function k(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return o.nc}();n&&(e.attrs.nonce=n)}return g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach((function(o){e.setAttribute(o,t[o])}))}function x(e,t){var o,n,i,r;if(t.transform&&e.css){if(!(r="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=r}if(t.singleton){var c=u++;o=l||(l=k(t)),n=y.bind(null,o,c,!1),i=y.bind(null,o,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),n=B.bind(null,o,t),i=function(){p(o),o.href&&URL.revokeObjectURL(o.href)}):(o=k(t),n=w.bind(null,o),i=function(){p(o)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=c()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var o=f(e,t);return A(o,t),function(e){for(var n=[],i=0;i<o.length;i++){var c=o[i];(a=r[c.id]).refs--,n.push(a)}e&&A(f(e,t),t);for(i=0;i<n.length;i++){var a;if(0===(a=n[i]).refs){for(var s=0;s<a.parts.length;s++)a.parts[s]();delete r[a.id]}}}};var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function y(e,t,o,n){var i=o?"":n.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var r=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(r,c[t]):e.appendChild(r)}}function w(e,t){var o=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}function B(e,t,o){var n=o.css,i=o.sourceMap,r=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||r)&&(n=d(n)),i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var c=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(c),a&&URL.revokeObjectURL(a)}},3:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,n=o+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,r=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?e:(i=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:n+r.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},4:function(t,o){t.exports=e},5:function(e,t,o){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var c=i.apply(null,n);c&&e.push(c)}else if("object"===r)for(var a in n)o.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},6:function(e,t,o){"use strict";var n=o(7);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,o,i,r,c){if(c!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return o.PropTypes=o,o}},7:function(e,t,o){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}})}));