@tripetto/block-multiple-choice
Version:
Multiple choice block for Tripetto.
2 lines • 48 kB
JavaScript
/*! Tripetto Multiple Choice Block 7.0.1 - Copyright (C) 2023 Tripetto B.V. - All Rights Reserved */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Tripetto")):"function"==typeof define&&define.amd?define("TripettoBlockMultipleChoiceBuilder",["Tripetto"],t):"object"==typeof exports?exports.TripettoBlockMultipleChoiceBuilder=t(require("Tripetto")):e.TripettoBlockMultipleChoiceBuilder=t(e.Tripetto)}(self,(function(e){return function(){"use strict";var t={874:function(e,t,o){var i,l=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),c=this&&this.__decorate||function(e,t,o,i){var l,c=arguments.length,n=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(c<3?l(n):c>3?l(t,o,n):l(t,o))||n);return c>3&&n&&Object.defineProperty(t,o,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.Choice=void 0;var n=o(210),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="",t}return l(t,e),t.prototype.defineSlot=function(){if(this.ref.multiple&&!(0,n.isString)(this.url)){var e=this.name&&(0,n.markdownifyToString)(this.name,n.Markdown.MarkdownFeatures.Formatting|n.Markdown.MarkdownFeatures.Hyperlinks)||void 0,t=this.ref.slots.dynamic({type:n.Slots.Boolean,reference:this.id,label:(0,n.pgettext)("block:multiple-choice","Choice"),sequence:this.index,name:e,alias:this.value,required:this.ref.required,exportable:"concatenate"!==this.ref.format&&this.ref.exportable,pipeable:{label:(0,n.pgettext)("block:multiple-choice","Choice"),content:this.moniker?{string:e||"",markdown:this.moniker}:this.name!==e?{string:e||"",markdown:this.name}:"name",alias:this.ref.alias,legacy:"Choice"}});t.labelForTrue=this.labelForTrue||this.ref.labelForTrue||(0,n.pgettext)("block:multiple-choice","Selected"),t.labelForFalse=this.labelForFalse||this.ref.labelForFalse||(0,n.pgettext)("block:multiple-choice","Not selected")}else this.deleteSlot()},t.prototype.deleteSlot=function(){this.ref.slots.delete(this.id,"dynamic")},t.prototype.defineEditor=function(){var e=this;this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Name"),form:{title:(0,n.pgettext)("block:multiple-choice","Choice name"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"name","")).action("@",(0,n.insertVariable)(this)).autoFocus().autoSelect().enter(this.editor.close).escape(this.editor.close)]},locked:!0}),this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Description"),form:{title:(0,n.pgettext)("block:multiple-choice","Choice description"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"description",void 0)).action("@",(0,n.insertVariable)(this))]},activated:(0,n.isString)(this.description)}),this.editor.group((0,n.pgettext)("block:multiple-choice","Options"));var t=new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Open in new tab/window"),"self"!==this.target).on((function(t){e.target=t.isFeatureEnabled&&!t.isDisabled?t.isChecked?"blank":"self":void 0}));this.editor.option({name:(0,n.pgettext)("block:multiple-choice","URL"),form:{title:(0,n.pgettext)("block:multiple-choice","URL"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"url",void 0)).placeholder("https://").action("@",(0,n.insertVariable)(this)).autoValidate((function(e){return""===e.value?"unknown":n.REGEX_IS_URL.test(e.value)||(0===e.value.indexOf("mailto:")||0===e.value.indexOf("tel:"))&&e.value.length>10?"pass":"fail"})).on((function(e){t.isDisabled=0===e.value.indexOf("mailto:")||0===e.value.indexOf("tel:")})),t,new n.Forms.Static((0,n.pgettext)("block:multiple-choice","If a URL is set, clicking the choice will open it. The choice cannot be selected as answer."))]},activated:(0,n.isString)(this.url),on:function(t){o.disabled(t.isActivated),a.disabled(t.isActivated),i.disabled(t.isActivated||!e.ref.multiple),r.disabled(t.isActivated||!e.ref.multiple)}});var o=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Moniker"),form:{title:(0,n.pgettext)("block:multiple-choice","Choice moniker"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"moniker",void 0)).action("@",(0,n.insertVariable)(this)),new n.Forms.Static((0,n.pgettext)("block:multiple-choice","If a moniker is set, this moniker will be used when referred to this choice."))]},activated:(0,n.isString)(this.moniker),disabled:(0,n.isString)(this.url)});this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Color"),form:{title:(0,n.pgettext)("block:multiple-choice","Choice color"),controls:[new n.Forms.ColorPicker(n.Forms.ColorPicker.bind(this,"color",void 0)).placeholder((0,n.pgettext)("block:multiple-choice","Select an alternative color for this choice")).swatches(!1,!0),new n.Forms.Static((0,n.pgettext)("block:multiple-choice","Here you can specify an alternative color for the choice button."))]},activated:(0,n.isString)(this.color)});var i=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Exclusivity"),form:{title:(0,n.pgettext)("block:multiple-choice","Choice exclusivity"),controls:[new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Unselect all other selected choices when selected"),n.Forms.Checkbox.bind(this,"exclusive",void 0,!0))]},activated:this.ref.multiple&&!(0,n.isString)(this.url)&&(0,n.isBoolean)(this.exclusive)||!1,disabled:!this.ref.multiple||(0,n.isString)(this.url)}),l=(0,n.pgettext)("block:multiple-choice","Selected"),c=(0,n.pgettext)("block:multiple-choice","Not selected"),r=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Labels"),form:{title:(0,n.pgettext)("block:multiple-choice","Labels"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"labelForTrue",void 0)).placeholder(l),new n.Forms.Text("singleline",n.Forms.Text.bind(this,"labelForFalse",void 0)).placeholder(c),new n.Forms.Static((0,n.pgettext)("block:multiple-choice","These labels will be used in the dataset and override the default values %1 and %2.","**".concat(l,"**"),"**".concat(c,"**"))).markdown()]},activated:(0,n.isString)(this.labelForTrue)||(0,n.isString)(this.labelForFalse),disabled:!this.ref.multiple||(0,n.isString)(this.url)}),a=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Identifier"),form:{title:(0,n.pgettext)("block:multiple-choice","Choice identifier"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"value",void 0)),new n.Forms.Static((0,n.pgettext)("block:multiple-choice","If a choice identifier is set, this identifier will be used instead of the label."))]},activated:(0,n.isString)(this.value),disabled:(0,n.isString)(this.url)}),s=this.ref.slots.select("score","feature");this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Score"),form:{title:(0,n.pgettext)("block:multiple-choice","Score"),controls:[new n.Forms.Numeric(n.Forms.Numeric.bind(this,"score",void 0)).precision((null==s?void 0:s.precision)||0).digits((null==s?void 0:s.digits)||0).decimalSign((null==s?void 0:s.decimal)||"").thousands(!!(null==s?void 0:s.separator),(null==s?void 0:s.separator)||"").prefix((null==s?void 0:s.prefix)||"").prefixPlural((null==s?void 0:s.prefixPlural)||void 0).suffix((null==s?void 0:s.suffix)||"").suffixPlural((null==s?void 0:s.suffixPlural)||void 0)]},activated:!0,locked:!!s,disabled:!s})},c([(0,n.definition)("string"),n.name],t.prototype,"name",void 0),c([(0,n.definition)("string","optional")],t.prototype,"description",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#refresh")],t.prototype,"url",void 0),c([(0,n.definition)("string","optional")],t.prototype,"target",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#refresh")],t.prototype,"moniker",void 0),c([(0,n.definition)("string","optional"),n.alias],t.prototype,"value",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#refresh")],t.prototype,"labelForTrue",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#refresh")],t.prototype,"labelForFalse",void 0),c([(0,n.definition)("number","optional"),n.score],t.prototype,"score",void 0),c([(0,n.definition)("boolean","optional"),(0,n.affects)("#name")],t.prototype,"exclusive",void 0),c([(0,n.definition)("string","optional")],t.prototype,"color",void 0),c([n.created,n.reordered,n.renamed,n.refreshed],t.prototype,"defineSlot",null),c([n.deleted],t.prototype,"deleteSlot",null),c([n.editor],t.prototype,"defineEditor",null),t}(n.Collection.Item);t.Choice=r},282:function(e,t,o){var i,l=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),c=this&&this.__decorate||function(e,t,o,i){var l,c=arguments.length,n=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(c<3?l(n):c>3?l(t,o,n):l(t,o))||n);return c>3&&n&&Object.defineProperty(t,o,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoiceCondition=void 0;var n=o(210),r=o(110),a=o(537),s=o(843),u=o(481),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"icon",{get:function(){var e,t;return(null===(e=this.node)||void 0===e?void 0:e.block)instanceof r.MultipleChoice&&(null===(t=this.node)||void 0===t?void 0:t.block.multiple)?u.default:s.default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){var e;return(null===(e=this.choice)||void 0===e?void 0:e.name)||this.type.label},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){var e;return(null===(e=this.node)||void 0===e?void 0:e.block)instanceof r.MultipleChoice&&(this.node.block.alias||this.node.label)||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.node&&this.node.block instanceof r.MultipleChoice&&this.node.block.choices||void 0},enumerable:!1,configurable:!0}),t.prototype.migrate=function(){var e,t=this;if(this.choice&&(null===(e=this.node)||void 0===e?void 0:e.block)instanceof r.MultipleChoice){var o=this.node.block.slots,i=this.node.block.multiple?this.choice.id:"choice";return function(){var e;return(null===(e=t.node)||void 0===e?void 0:e.block)instanceof r.MultipleChoice&&(t.slot=o.select(i),!0)}}},t.prototype.defineEditor=function(){if(this.node&&this.choices){var e=[];this.choices.each((function(t){(0,n.isFilledString)(t.name)&&e.push({label:(0,n.markdownifyToString)(t.name),value:t})})),(0,n.arraySize)(e)>0&&this.editor.form({title:this.node.label,controls:[new n.Forms.Dropdown(e,n.Forms.Dropdown.bind(this,"choice",void 0))]})}},c([(0,n.affects)("#condition"),(0,n.collection)("#choices")],t.prototype,"choice",void 0),c([(0,n.detached)("slot")],t.prototype,"migrate",null),c([n.editor],t.prototype,"defineEditor",null),t=c([(0,n.tripetto)({type:"condition",legacyBlock:!0,context:"@tripetto/block-multiple-choice",identifier:"@tripetto/block-multiple-choice",version:"7.0.1",alias:"multiple-choice",icon:a.default,get label(){return(0,n.pgettext)("block:multiple-choice","Choice")}})],t)}(n.ConditionBlock);t.MultipleChoiceCondition=p},929:function(e,t,o){var i,l=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),c=this&&this.__decorate||function(e,t,o,i){var l,c=arguments.length,n=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(c<3?l(n):c>3?l(t,o,n):l(t,o))||n);return c>3&&n&&Object.defineProperty(t,o,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.CounterCondition=void 0;var n=o(210),r=o(948),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowMarkdown=!0,t.mode="equal",t}return l(t,e),Object.defineProperty(t.prototype,"label",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){var e=this.slot;if(e instanceof n.Slots.Number){var t=this.parse(e,this.value);switch(this.mode){case"between":return"".concat(t," ≤ @").concat(e.id," ≤ ").concat(this.parse(e,this.to));case"not-between":return"@".concat(e.id," < ").concat(t," ").concat((0,n.pgettext)("block:multiple-choice","or")," @").concat(e.id," > ").concat(this.parse(e,this.to));case"not-equal":return"@".concat(e.id," ≠ ").concat(t);case"above":case"below":case"equal":return"@".concat(e.id," ").concat("above"===this.mode?">":"below"===this.mode?"<":"="," ").concat(t)}}return this.type.label},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){var e,t;return(null===(e=this.slot)||void 0===e?void 0:e.label)||(null===(t=this.node)||void 0===t?void 0:t.label)},enumerable:!1,configurable:!0}),t.prototype.parse=function(e,t){var o;return(0,n.isNumberFinite)(t)?e.toString(t,(function(e){return n.L10n.locale.number(e,0,!1)})):(0,n.isString)(t)&&t&&(null===(o=(0,n.lookupVariable)(this,t))||void 0===o?void 0:o.label)?"@".concat(t):"\\_\\_"},t.prototype.defineEditor=function(){var e=this;this.editor.form({title:(0,n.pgettext)("block:multiple-choice","Compare mode"),controls:[new n.Forms.Radiobutton([{label:(0,n.pgettext)("block:multiple-choice","Counter is equal to"),value:"equal"},{label:(0,n.pgettext)("block:multiple-choice","Counter is not equal to"),value:"not-equal"},{label:(0,n.pgettext)("block:multiple-choice","Counter is lower than"),value:"below"},{label:(0,n.pgettext)("block:multiple-choice","Counter is higher than"),value:"above"},{label:(0,n.pgettext)("block:multiple-choice","Counter is between"),value:"between"},{label:(0,n.pgettext)("block:multiple-choice","Counter is not between"),value:"not-between"}],n.Forms.Radiobutton.bind(this,"mode","equal")).on((function(e){switch(i.visible("between"===e.value||"not-between"===e.value),e.value){case"equal":o.title=(0,n.pgettext)("block:multiple-choice","If counter equals");break;case"not-equal":o.title=(0,n.pgettext)("block:multiple-choice","If counter not equals");break;case"below":o.title=(0,n.pgettext)("block:multiple-choice","If counter is lower than");break;case"above":o.title=(0,n.pgettext)("block:multiple-choice","If counter is higher than");break;case"between":o.title=(0,n.pgettext)("block:multiple-choice","If counter is between");break;case"not-between":o.title=(0,n.pgettext)("block:multiple-choice","If counter is not between")}}))]});var t=function(t,o){var i,l=e[t],c=new n.Forms.Numeric((0,n.isNumberFinite)(l)?l:0).label((0,n.pgettext)("block:multiple-choice","Use fixed number")).autoFocus("value"===t).escape(e.editor.close).enter((function(){return("between"!==e.mode&&"not-between"!==e.mode||"to"===t)&&e.editor.close()})).on((function(o){o.isFormVisible&&o.isObservable&&(e[t]=o.value)})),r=(0,n.populateVariables)(e,(function(e){return e instanceof n.Slots.Number||e instanceof n.Slots.Numeric}),(0,n.isString)(l)?l:void 0,!0,null===(i=e.slot)||void 0===i?void 0:i.id),a=new n.Forms.Dropdown(r,(0,n.isString)(l)?l:"").label((0,n.pgettext)("block:multiple-choice","Use value of")).width("full").on((function(o){o.isFormVisible&&o.isObservable&&(e[t]=o.value||"")}));return e.editor.form({title:o,controls:[new n.Forms.Radiobutton([{label:(0,n.pgettext)("block:multiple-choice","Number"),value:"number"},{label:(0,n.pgettext)("block:multiple-choice","Value"),value:"variable",disabled:0===r.length}],(0,n.isString)(l)?"variable":"number").on((function(e){c.visible("number"===e.value),a.visible("variable"===e.value),c.isObservable&&c.focus()})),c,a]})},o=t("value",(0,n.pgettext)("block:multiple-choice","If counter equals")),i=t("to",(0,n.pgettext)("block:multiple-choice","And"))},c([n.definition,(0,n.affects)("#name")],t.prototype,"mode",void 0),c([n.definition,(0,n.affects)("#name")],t.prototype,"value",void 0),c([n.definition,(0,n.affects)("#name")],t.prototype,"to",void 0),c([n.editor],t.prototype,"defineEditor",null),t=c([(0,n.tripetto)({type:"condition",legacyBlock:!0,context:"@tripetto/block-multiple-choice",identifier:"".concat("@tripetto/block-multiple-choice",":counter"),version:"7.0.1",icon:r.default,get label(){return(0,n.pgettext)("block:multiple-choice","Verify counter")}})],t)}(n.ConditionBlock);t.CounterCondition=a},287:function(e,t,o){var i,l=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),c=this&&this.__decorate||function(e,t,o,i){var l,c=arguments.length,n=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(c<3?l(n):c>3?l(t,o,n):l(t,o))||n);return c>3&&n&&Object.defineProperty(t,o,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var n=o(210),r=o(939),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowMarkdown=!0,t.mode="equal",t}return l(t,e),Object.defineProperty(t.prototype,"label",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){var e=this.slot;if(e instanceof n.Slots.Numeric){var t=this.parse(e,this.value);switch(this.mode){case"between":return"".concat(t," ≤ @").concat(e.id," ≤ ").concat(this.parse(e,this.to));case"not-between":return"@".concat(e.id," < ").concat(t," ").concat((0,n.pgettext)("block:multiple-choice","or")," @").concat(e.id," > ").concat(this.parse(e,this.to));case"defined":return"@".concat(e.id," ").concat((0,n.pgettext)("block:multiple-choice","calculated"));case"undefined":return"@".concat(e.id," ").concat((0,n.pgettext)("block:multiple-choice","not calculated"));case"not-equal":return"@".concat(e.id," ≠ ").concat(t);case"above":case"below":case"equal":return"@".concat(e.id," ").concat("above"===this.mode?">":"below"===this.mode?"<":"="," ").concat(t)}}return this.type.label},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){var e,t;return(null===(e=this.slot)||void 0===e?void 0:e.label)||(null===(t=this.node)||void 0===t?void 0:t.label)},enumerable:!1,configurable:!0}),t.prototype.parse=function(e,t){var o;return(0,n.isNumberFinite)(t)?e.toString(t,(function(e,t){return n.L10n.locale.number(e,t,!1)})):(0,n.isString)(t)&&t&&(null===(o=(0,n.lookupVariable)(this,t))||void 0===o?void 0:o.label)?"@".concat(t):"\\_\\_"},t.prototype.defineEditor=function(){var e=this;this.editor.form({title:(0,n.pgettext)("block:multiple-choice","Compare mode"),controls:[new n.Forms.Radiobutton([{label:(0,n.pgettext)("block:multiple-choice","Score is equal to"),value:"equal"},{label:(0,n.pgettext)("block:multiple-choice","Score is not equal to"),value:"not-equal"},{label:(0,n.pgettext)("block:multiple-choice","Score is lower than"),value:"below"},{label:(0,n.pgettext)("block:multiple-choice","Score is higher than"),value:"above"},{label:(0,n.pgettext)("block:multiple-choice","Score is between"),value:"between"},{label:(0,n.pgettext)("block:multiple-choice","Score is not between"),value:"not-between"},{label:(0,n.pgettext)("block:multiple-choice","Score is calculated"),value:"defined"},{label:(0,n.pgettext)("block:multiple-choice","Score is not calculated"),value:"undefined"}],n.Forms.Radiobutton.bind(this,"mode","equal")).on((function(e){switch(o.visible("defined"!==e.value&&"undefined"!==e.value),i.visible("between"===e.value||"not-between"===e.value),e.value){case"equal":o.title=(0,n.pgettext)("block:multiple-choice","If score equals");break;case"not-equal":o.title=(0,n.pgettext)("block:multiple-choice","If score not equals");break;case"below":o.title=(0,n.pgettext)("block:multiple-choice","If score is lower than");break;case"above":o.title=(0,n.pgettext)("block:multiple-choice","If score is higher than");break;case"between":o.title=(0,n.pgettext)("block:multiple-choice","If score is between");break;case"not-between":o.title=(0,n.pgettext)("block:multiple-choice","If score is not between")}}))]});var t=function(t,o,i){var l,c=e[t],r=e.slot,a=new n.Forms.Numeric((0,n.isNumberFinite)(c)?c:0).label((0,n.pgettext)("block:multiple-choice","Use fixed number")).precision((null==r?void 0:r.precision)||0).digits((null==r?void 0:r.digits)||0).decimalSign((null==r?void 0:r.decimal)||"").thousands(!!(null==r?void 0:r.separator),(null==r?void 0:r.separator)||"").prefix((null==r?void 0:r.prefix)||"").prefixPlural((null==r?void 0:r.prefixPlural)||void 0).suffix((null==r?void 0:r.suffix)||"").suffixPlural((null==r?void 0:r.suffixPlural)||void 0).autoFocus("value"===t).escape(e.editor.close).enter((function(){return("between"!==e.mode&&"not-between"!==e.mode||"to"===t)&&e.editor.close()})).on((function(o){o.isFormVisible&&o.isObservable&&(e[t]=o.value)})),s=(0,n.populateVariables)(e,(function(e){return e instanceof n.Slots.Number||e instanceof n.Slots.Numeric}),(0,n.isString)(c)?c:void 0,!0,null===(l=e.slot)||void 0===l?void 0:l.id),u=new n.Forms.Dropdown(s,(0,n.isString)(c)?c:"").label((0,n.pgettext)("block:multiple-choice","Use value of")).width("full").on((function(o){o.isFormVisible&&o.isObservable&&(e[t]=o.value||"")}));return e.editor.form({title:o,controls:[new n.Forms.Radiobutton([{label:(0,n.pgettext)("block:multiple-choice","Number"),value:"number"},{label:(0,n.pgettext)("block:multiple-choice","Value"),value:"variable",disabled:0===s.length}],(0,n.isString)(c)?"variable":"number").on((function(e){a.visible("number"===e.value),u.visible("variable"===e.value),a.isObservable&&a.focus()})),a,u]}).visible(i)},o=t("value",(0,n.pgettext)("block:multiple-choice","If score equals"),"defined"!==this.mode&&"undefined"!==this.mode),i=t("to",(0,n.pgettext)("block:multiple-choice","And"),"between"===this.mode||"not-between"===this.mode)},c([n.definition,(0,n.affects)("#name")],t.prototype,"mode",void 0),c([n.definition,(0,n.affects)("#name")],t.prototype,"value",void 0),c([n.definition,(0,n.affects)("#name")],t.prototype,"to",void 0),c([n.editor],t.prototype,"defineEditor",null),t=c([(0,n.tripetto)({type:"condition",legacyBlock:!0,context:"@tripetto/block-multiple-choice",identifier:"".concat("@tripetto/block-multiple-choice",":score"),version:"7.0.1",icon:r.default,get label(){return(0,n.pgettext)("block:multiple-choice","Verify score")}})],t)}(n.ConditionBlock);t.ScoreCondition=a},124:function(e,t,o){var i,l=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),c=this&&this.__decorate||function(e,t,o,i){var l,c=arguments.length,n=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(c<3?l(n):c>3?l(t,o,n):l(t,o))||n);return c>3&&n&&Object.defineProperty(t,o,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoiceUndefinedCondition=void 0;var n=o(210),r=o(417),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t=c([(0,n.tripetto)({type:"condition",legacyBlock:!0,context:"@tripetto/block-multiple-choice",identifier:"".concat("@tripetto/block-multiple-choice",":undefined"),version:"7.0.1",icon:r.default,get label(){return(0,n.pgettext)("block:multiple-choice","No choice made")}})],t)}(n.ConditionBlock);t.MultipleChoiceUndefinedCondition=a},110:function(e,t,o){var i,l=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),c=this&&this.__decorate||function(e,t,o,i){var l,c=arguments.length,n=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(n=(c<3?l(n):c>3?l(t,o,n):l(t,o))||n);return c>3&&n&&Object.defineProperty(t,o,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoice=void 0;var n=o(210),r=o(874),a=o(282),s=o(124),u=o(287),p=o(929),d=o(617),h=o(843),b=o(481),m=o(948),g=o(939),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.choices=n.Collection.of(r.Choice,t),t}return l(t,e),Object.defineProperty(t.prototype,"label",{get:function(){return(0,n.npgettext)("block:multiple-choice","%2 (%1 option)","%2 (%1 options)",this.choices.count,this.type.label)},enumerable:!1,configurable:!0}),t.prototype.defineSlot=function(){this.multiple?(this.slots.delete("choice","static"),this.slots.meta({type:n.Slots.Number,reference:"counter",label:(0,n.pgettext)("block:multiple-choice","Counter"),exportable:!1,protected:!0}),"concatenate"===this.format||"both"===this.format?this.slots.feature({type:n.Slots.Text,reference:"concatenation",label:(0,n.pgettext)("block:multiple-choice","Text value"),exportable:this.exportable,alias:this.alias,protected:!0}):this.slots.delete("concatenation","feature")):(this.slots.delete("counter","meta"),this.slots.delete("concatenation","feature"),this.slots.static({type:n.Slots.String,reference:"choice",label:(0,n.pgettext)("block:multiple-choice","Choice"),alias:this.alias,required:this.required,exportable:this.exportable,exchange:["alias","required","exportable"]}))},t.prototype.defineEditor=function(){var e=this;this.editor.name(!0,!0),this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Caption"),form:{title:(0,n.pgettext)("block:multiple-choice","Caption"),controls:[new n.Forms.Text("multiline",n.Forms.Text.bind(this,"caption",void 0)).placeholder((0,n.pgettext)("block:multiple-choice","Type caption text here...")).action("@",(0,n.insertVariable)(this))]},activated:(0,n.isString)(this.caption)}),this.editor.description(),this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Image"),form:{title:(0,n.pgettext)("block:multiple-choice","Image"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"imageURL",void 0)).label((0,n.pgettext)("block:multiple-choice","Image source URL")).inputMode("url").placeholder("https://").action("@",(0,n.insertVariable)(this)).autoValidate((function(e){return""===e.value?"unknown":n.REGEX_IS_URL.test(e.value)||e.value.length>23&&0===e.value.indexOf("data:image/jpeg;base64,")||e.value.length>22&&0===e.value.indexOf("data:image/png;base64,")||e.value.length>22&&0===e.value.indexOf("data:image/svg;base64,")||e.value.length>22&&0===e.value.indexOf("data:image/gif;base64,")||e.value.length>1&&"/"===e.value.charAt(0)?"pass":"fail"})),new n.Forms.Text("singleline",n.Forms.Checkbox.bind(this,"imageWidth",void 0)).label((0,n.pgettext)("block:multiple-choice","Image width (optional)")).width(100).align("center"),new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Display image on top of the paragraph"),n.Forms.Checkbox.bind(this,"imageAboveText",void 0))]},activated:(0,n.isString)(this.imageURL)}),this.editor.explanation();var t=this.editor.collection({collection:this.choices,title:(0,n.pgettext)("block:multiple-choice","Choices"),placeholder:(0,n.pgettext)("block:multiple-choice","Unnamed choice"),icon:this.multiple?b.default:h.default,autoOpen:!0,allowVariables:!0,allowImport:!0,allowExport:!0,allowDedupe:!0,showAliases:!0,markdown:n.Markdown.MarkdownFeatures.Formatting|n.Markdown.MarkdownFeatures.Hyperlinks,sorting:"manual",indicator:function(t){return e.multiple&&t.exclusive&&(0,n.pgettext)("block:multiple-choice","Exclusive").toUpperCase()||void 0},emptyMessage:(0,n.pgettext)("block:multiple-choice","Click the + button to add a choice...")});this.editor.groups.settings(),this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Multiple select"),form:{title:(0,n.pgettext)("block:multiple-choice","Multiple select"),controls:[new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Allow the selection of multiple choices"),n.Forms.Checkbox.bind(this,"multiple",void 0,!0)).on((function(){l.disabled(!e.multiple),a.disabled(!e.multiple),d.disabled(!e.multiple),s.disabled(e.multiple&&"concatenate"!==e.format&&"both"!==e.format||!1),t.icon=e.multiple?b.default:h.default,e.choices.each((function(e){!0===e.exclusive&&e.refresh("name")}))}))]},activated:(0,n.isBoolean)(this.multiple)});var o=new n.Forms.Numeric(n.Forms.Numeric.bind(this,"min",void 0)).min(1).max(this.max).visible((0,n.isNumber)(this.min)).indent(32).width(75).on((function(){i.min(e.min||1)})),i=new n.Forms.Numeric(n.Forms.Numeric.bind(this,"max",void 0)).min(this.min||1).visible((0,n.isNumber)(this.max)).indent(32).width(75).on((function(){o.max(e.max)})),l=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Limits"),form:{title:(0,n.pgettext)("block:multiple-choice","Limits"),controls:[new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Minimum number of selected choices"),(0,n.isNumber)(this.min)).on((function(e){o.visible(e.isChecked)})),o,new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Maximum number of selected choices"),(0,n.isNumber)(this.max)).on((function(e){i.visible(e.isChecked)})),i]},activated:(0,n.isNumber)(this.max)||(0,n.isNumber)(this.min),disabled:!this.multiple});this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Randomization"),form:{title:(0,n.pgettext)("block:multiple-choice","Randomization"),controls:[new n.Forms.Checkbox((0,n.pgettext)("block:multiple-choice","Randomize the choices (using [Fisher-Yates shuffle](%1))","https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle"),n.Forms.Checkbox.bind(this,"randomize",void 0,!0)).markdown()]},activated:(0,n.isBoolean)(this.randomize)}),this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Alignment"),form:{title:(0,n.pgettext)("block:multiple-choice","Alignment"),controls:[new n.Forms.Radiobutton([{label:(0,n.pgettext)("block:multiple-choice","Vertical - Variable width"),description:(0,n.pgettext)("block:multiple-choice","Display choices vertically (top-down). All choices have their own width."),value:!1},{label:(0,n.pgettext)("block:multiple-choice","Vertical - Equal width"),description:(0,n.pgettext)("block:multiple-choice","Display choices vertically (top-down). All choices have equal widths, determined by the widest choice."),value:"equal"},{label:(0,n.pgettext)("block:multiple-choice","Vertical - Full width"),description:(0,n.pgettext)("block:multiple-choice","Display choices vertically (top-down). All choices have 100% widths, with text centered."),value:"full"},{label:(0,n.pgettext)("block:multiple-choice","Columns"),description:(0,n.pgettext)("block:multiple-choice","Display choices in two columns. All choices have 100% widths inside their column. Both columns have 50% width."),value:"columns"},{label:(0,n.pgettext)("block:multiple-choice","Horizontal"),description:(0,n.pgettext)("block:multiple-choice","Display choices from left to right. All choices have their own width."),value:!0}],n.Forms.Radiobutton.bind(this,"alignment",void 0))]},activated:(0,n.isBoolean)(this.alignment)||"equal"===this.alignment||"full"===this.alignment||"columns"===this.alignment}),this.editor.groups.options(),this.editor.required(this),this.editor.visibility();var c=(0,n.pgettext)("block:multiple-choice","Selected"),r=(0,n.pgettext)("block:multiple-choice","Not selected"),a=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Labels"),form:{title:(0,n.pgettext)("block:multiple-choice","Labels"),controls:[new n.Forms.Text("singleline",n.Forms.Text.bind(this,"labelForTrue",void 0)).placeholder(c),new n.Forms.Text("singleline",n.Forms.Text.bind(this,"labelForFalse",void 0)).placeholder(r),new n.Forms.Static((0,n.pgettext)("block:multiple-choice","These labels will be used in the dataset and override the default values %1 and %2.","**".concat(c,"**"),"**".concat(r,"**"))).markdown()]},activated:(0,n.isString)(this.labelForTrue)||(0,n.isString)(this.labelForFalse),disabled:!this.multiple});this.editor.scores({target:this,collection:t,description:(0,n.pgettext)("block:multiple-choice","Generates a score based on the selected choices. Open the settings panel for each choice to set the individual score for that choice.")});var s=this.editor.alias(this).disabled(this.multiple&&"concatenate"!==this.format&&"both"!==this.format||!1),u=new n.Forms.Text("singleline",n.Forms.Text.bind(this,"formatSeparatorCustom",void 0)).visible("custom"===this.formatSeparator).sanitize(!1).width(200).label((0,n.pgettext)("block:multiple-choice","Use this separator:")),p=new n.Forms.Group([new n.Forms.Dropdown([{label:(0,n.pgettext)("block:multiple-choice","Comma separated"),value:"comma"},{label:(0,n.pgettext)("block:multiple-choice","Space separated"),value:"space"},{label:(0,n.pgettext)("block:multiple-choice","List on multiple lines"),value:"list"},{label:(0,n.pgettext)("block:multiple-choice","Bulleted list"),value:"bullets"},{label:(0,n.pgettext)("block:multiple-choice","Numbered list"),value:"numbers"},{label:(0,n.pgettext)("block:multiple-choice","Language sensitive conjunction (_, _, and _)"),value:"conjunction"},{label:(0,n.pgettext)("block:multiple-choice","Language sensitive disjunction (_, _, or _)"),value:"disjunction"},{label:(0,n.pgettext)("block:multiple-choice","Custom separator"),value:"custom"}],n.Forms.Radiobutton.bind(this,"formatSeparator",void 0,"comma")).label((0,n.pgettext)("block:multiple-choice","How to separate the selected choices:")).on((function(e){u.visible("custom"===e.value)})),u]).visible("concatenate"===this.format||"both"===this.format),d=this.editor.option({name:(0,n.pgettext)("block:multiple-choice","Data format"),form:{title:(0,n.pgettext)("block:multiple-choice","Data format"),controls:[new n.Forms.Radiobutton([{label:(0,n.pgettext)("block:multiple-choice","Every choice as a separate field"),description:(0,n.pgettext)("block:multiple-choice","Every choice is included in the dataset as a separate value."),value:"fields"},{label:(0,n.pgettext)("block:multiple-choice","Text field with a list of all selected choices"),description:(0,n.pgettext)("block:multiple-choice","All the selected choices are concatenated to a single string of text separated using a configurable separator."),value:"concatenate"},{label:(0,n.pgettext)("block:multiple-choice","Both options above"),description:(0,n.pgettext)("block:multiple-choice","Includes every choice in the dataset together with the concatenated text."),value:"both"}],n.Forms.Radiobutton.bind(this,"format",void 0,"fields")).label((0,n.pgettext)("block:multiple-choice","This setting determines how the data is stored in the dataset:")).on((function(t){p.visible("concatenate"===t.value||"both"===t.value),s.disabled(e.multiple&&"concatenate"!==e.format&&"both"!==e.format||!1)})),p]},activated:(0,n.isString)(this.format),disabled:!this.multiple});this.editor.exportable(this)},t.prototype.defineConditions=function(){var e=this;this.choices.each((function(t){t.name&&!(0,n.isString)(t.url)&&e.conditions.template({condition:a.MultipleChoiceCondition,label:t.name,icon:e.multiple?b.default:h.default,burst:"branch",props:{choice:t,slot:e.slots.select(e.multiple?t.id:"choice")}})})),this.choices.count>0&&this.conditions.template({condition:s.MultipleChoiceUndefinedCondition,separator:!0});var t=this.slots.select("counter","meta");if(t&&t.label){var o=this.conditions.group(t.label,m.default);(0,n.each)([{mode:"equal",label:(0,n.pgettext)("block:multiple-choice","Counter is equal to")},{mode:"not-equal",label:(0,n.pgettext)("block:multiple-choice","Counter is not equal to")},{mode:"below",label:(0,n.pgettext)("block:multiple-choice","Counter is lower than")},{mode:"above",label:(0,n.pgettext)("block:multiple-choice","Counter is higher than")},{mode:"between",label:(0,n.pgettext)("block:multiple-choice","Counter is between")},{mode:"not-between",label:(0,n.pgettext)("block:multiple-choice","Counter is not between")}],(function(e){o.template({condition:p.CounterCondition,label:e.label,autoOpen:!0,props:{slot:t,mode:e.mode,value:0,to:"between"===e.mode||"not-between"===e.mode?0:void 0}})}))}var i=this.slots.select("score","feature");if(i&&i.label){var l=this.conditions.group(i.label,g.default);(0,n.each)([{mode:"equal",label:(0,n.pgettext)("block:multiple-choice","Score is equal to")},{mode:"not-equal",label:(0,n.pgettext)("block:multiple-choice","Score is not equal to")},{mode:"below",label:(0,n.pgettext)("block:multiple-choice","Score is lower than")},{mode:"above",label:(0,n.pgettext)("block:multiple-choice","Score is higher than")},{mode:"between",label:(0,n.pgettext)("block:multiple-choice","Score is between")},{mode:"not-between",label:(0,n.pgettext)("block:multiple-choice","Score is not between")},{mode:"defined",label:(0,n.pgettext)("block:multiple-choice","Score is calculated")},{mode:"undefined",label:(0,n.pgettext)("block:multiple-choice","Score is not calculated")}],(function(e){l.template({condition:u.ScoreCondition,label:e.label,autoOpen:"defined"!==e.mode&&"undefined"!==e.mode,props:{slot:i,mode:e.mode,value:0,to:"between"===e.mode||"not-between"===e.mode?0:void 0}})}))}},c([(0,n.definition)("string","optional")],t.prototype,"caption",void 0),c([(0,n.definition)("string","optional")],t.prototype,"imageURL",void 0),c([(0,n.definition)("string","optional")],t.prototype,"imageWidth",void 0),c([(0,n.definition)("boolean","optional")],t.prototype,"imageAboveText",void 0),c([(0,n.definition)("items"),(0,n.affects)("#name"),(0,n.supplies)("#slot","choice")],t.prototype,"choices",void 0),c([(0,n.definition)("boolean","optional"),(0,n.affects)("#slots"),(0,n.affects)("#collection","choices")],t.prototype,"multiple",void 0),c([(0,n.definition)("number","optional")],t.prototype,"min",void 0),c([(0,n.definition)("number","optional")],t.prototype,"max",void 0),c([(0,n.definition)("alignment","optional")],t.prototype,"alignment",void 0),c([(0,n.definition)("boolean","optional"),(0,n.affects)("#required"),(0,n.affects)("#slots"),(0,n.affects)("#collection","choices")],t.prototype,"required",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#slots"),(0,n.affects)("#collection","choices"),(0,n.affects)("#label")],t.prototype,"alias",void 0),c([(0,n.definition)("boolean","optional"),(0,n.affects)("#slots"),(0,n.affects)("#collection","choices")],t.prototype,"exportable",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#collection","choices")],t.prototype,"labelForTrue",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#collection","choices")],t.prototype,"labelForFalse",void 0),c([(0,n.definition)("boolean","optional")],t.prototype,"randomize",void 0),c([(0,n.definition)("string","optional"),(0,n.affects)("#slots"),(0,n.affects)("#collection","choices")],t.prototype,"format",void 0),c([(0,n.definition)("string","optional")],t.prototype,"formatSeparator",void 0),c([(0,n.definition)("string","optional")],t.prototype,"formatSeparatorCustom",void 0),c([n.slots],t.prototype,"defineSlot",null),c([n.editor],t.prototype,"defineEditor",null),c([n.conditions],t.prototype,"defineConditions",null),t=c([(0,n.tripetto)({type:"node",legacyBlock:!0,identifier:"@tripetto/block-multiple-choice",version:"7.0.1",icon:d.default,alias:"multiple-choice",get label(){return(0,n.pgettext)("block:multiple-choice","Multiple choice")}})],t)}(n.NodeBlock);t.MultipleChoice=f},537:function(e,t,o){o.r(t),t.default="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTE2LjIzIDMuMzA3Yy0uMzk2LS4yNjgtLjk0OS0uNTA0LTEuNjQzLS43MDJDMTMuMjIxIDIuMjE1IDExLjQxNSAyIDkuNSAycy0zLjcyMi4yMTUtNS4wODcuNjA1Yy0uNjk0LjE5OC0xLjI0Ni40MzQtMS42NDMuNzAyLS42MzcuNDMtLjc3Ljg4Ni0uNzcgMS4xOTNWNWMwIC40MjguMzIxIDEuMTMzLjYzOSAxLjYwOWw0Ljg5MSA3LjMzNmMuMjUxLjM3Ni40NzEgMS4xMDMuNDcxIDEuNTU1djNhLjUuNSAwIDAgMCAuNzI0LjQ0N2wyLTFhLjUuNSAwIDAgMCAuMjc2LS40NDd2LTJjMC0uNDUyLjIyLTEuMTc5LjQ3MS0xLjU1NWw0Ljg5MS03LjMzNmMuMzE3LS40NzYuNjM5LTEuMTgyLjYzOS0xLjYwOXYtLjVjMC0uMzA3LS4xMzQtLjc2My0uNzctMS4xOTN6bS0xMS41NDIuMjZDNS45NjcgMy4yMDIgNy42NzYgMyA5LjUgM3MzLjUzNC4yMDEgNC44MTIuNTY3QzE1LjY5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MjlTMCAxMi42NzEgMCAxMGMwLTIuNjcxIDEuMDQtNS4xODIgMi45MjktNy4wNzFTNy4zMjkgMCAxMCAwYzIuNjcxIDAgNS4xODIgMS4wNCA3LjA3MSAyLjkyOVMyMCA3LjMyOSAyMCAxMGMwIDIuNjcxLTEuMDQgNS4xODItMi45MjkgNy4wNzFTMTIuNjcxIDIwIDEwIDIwem0wLTE5Yy00Ljk2MyAwLTkgNC4wMzctOSA5czQuMDM3IDkgOSA5IDktNC4wMzcgOS05LTQuMDM3LTktOS05eiIgY2xhc3M9InRyaXBldHRvLWZpbGwiLz48cGF0aCBkPSJNMTAgMTZjLTMuMzA4IDAtNi0yLjY5Mi02LTZzMi42OTItNiA2LTYgNiAyLjY5MiA2IDYtMi42OTIgNi02IDZ6bTAtMTFjLTIuNzU3IDAtNSAyLjI0My01IDVzMi4yNDMgNSA1IDUgNS0yLjI0MyA1LTUtMi4yNDMtNS01LTV6IiBjbGFzcz0idHJpcGV0dG8tZmlsbCIvPjwvc3ZnPg=="},417:function(e,t,o){o.r(t),t.default="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0ibTEwLjcwNyAxMC41IDUuNjQ2LTUuNjQ2YS41LjUgMCAwIDAtLjcwNy0uNzA3TDEwIDkuNzkzIDQuMzU0IDQuMTQ3YS41LjUgMCAwIDAtLjcwNy43MDdMOS4yOTMgMTAuNWwtNS42NDYgNS42NDZhLjUuNSAwIDAgMCAuNzA4LjcwN2w1LjY0Ni01LjY0NiA1LjY0NiA1LjY0NmEuNDk4LjQ5OCAwIDAgMCAuNzA4IDAgLjUuNSAwIDAgMCAwLS43MDdMMTAuNzA5IDEwLjV6IiBjbGFzcz0idHJpcGV0dG8tZmlsbCIvPjwvc3ZnPg=="},210:function(t){t.exports=e}},o={};function i(e){var l=o[e];if(void 0!==l)return l.exports;var c=o[e]={exports:{}};return t[e].call(c.exports,c,c.exports,i),c.exports}return i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(110)}()}));