MDL-64506 templates: Move BS2 btns' to BS4 btns'
[moodle.git] / lib / editor / atto / plugins / charmap / yui / build / moodle-atto_charmap-button / moodle-atto_charmap-button-min.js
1 YUI.add("moodle-atto_charmap-button",function(e,t){var n="atto_charmap",r={BUTTON:"atto_charmap_character",CHARMAP:"atto_charmap_selector"},i=[[" "," ",!0,"nobreakspace"],["&","&",!0,"ampersand"],[""",""",!0,"quotationmark"],["‽","‽",!0,"interrobang"],["¢","¢",!0,"centsign"],["€","€",!0,"eurosign"],["£","£",!0,"poundsign"],["¥","¥",!0,"yensign"],["©","©",!0,"copyrightsign"],["®","®",!0,"registeredsign"],["™","™",!0,"trademarksign"],["‰","‰",!0,"permillesign"],["µ","µ",!0,"microsign"],["·","·",!0,"middledot"],["•","•",!0,"bullet"],["…","…",!0,"threedotleader"],["′","′",!0,"minutesfeet"],["″","″",!0,"secondsinches"],["§","§",!0,"sectionsign"],["¶","¶",!0,"paragraphsign"],["ß","ß",!0,"sharpsesszed"],["‹","‹",!0,"singleleftpointinganglequotationmark"],["›","›",!0,"singlerightpointinganglequotationmark"],["«","«",!0,"leftpointingguillemet"],["»","»",!0,"rightpointingguillemet"],["‘","‘",!0,"leftsinglequotationmark"],["’","’",!0,"rightsinglequotationmark"],["“","“",!0,"leftdoublequotationmark"],["”","”",!0,"rightdoublequotationmark"],["‚","‚",!0,"singlelow9quotationmark"],["„","„",!0,"doublelow9quotationmark"],["<","<",!0,"lessthansign"],[">",">",!0,"greaterthansign"],["≤","≤",!0,"lessthanorequalto"],["≥","≥",!0,"greaterthanorequalto"],["–","–",!0,"endash"],["—","—",!0,"emdash"],["¯","¯",!0,"macron"],["‾","‾",!0,"overline"],["¤","¤",!0,"currencysign"],["¦","¦",!0,"brokenbar"],["¨","¨",!0,"diaeresis"],["¡","¡",!0,"invertedexclamationmark"],["¿","¿",!0,"turnedquestionmark"],["ˆ","ˆ",!0,"circumflexaccent"],["˜","˜",!0,"smalltilde"],["°","°",!0,"degreesign"],["−","−",!0,"minussign"],["±","±",!0,"plusminussign"],["÷","÷",!0,"divisionsign"],["⁄","⁄",!0,"fractionslash"],["×","×",!0,"multiplicationsign"],["¹","¹",!0,"superscriptone"],["²","²",!0,"superscripttwo"],["³","³",!0,"superscriptthree"],["¼","¼",!0,"fractiononequarter"],["½","½",!0,"fractiononehalf"],["¾","¾",!0,"fractionthreequarters"],["ƒ","ƒ",!0,"functionflorin"],["∫","∫",!0,"integral"],["∑","∑",!0,"narysumation"],["∞","∞",!0,"infinity"],["√","√",!0,"squareroot"],["∼","∼",!1,"similarto"],["≅","≅",!1,"approximatelyequalto"],["≈","≈",!0,"almostequalto"],["≠","≠",!0,"notequalto"],["≡","≡",!0,"identicalto"],["∈","∈",!1,"elementof"],["∉","∉",!1,"notanelementof"],["∋","∋",!1,"containsasmember"],["∏","∏",!0,"naryproduct"],["∧","∧",!1,"logicaland"],["∨","∨",!1,"logicalor"],["¬","¬",!0,"notsign"],["∩","∩",!0,"intersection"],["∪","∪",!1,"union"],["∂","∂",!0,"partialdifferential"],["∀","∀",!1,"forall"],["∃","∃",!1,"thereexists"],["∅","∅",!1,"diameter"],["∇","∇",!1,"backwarddifference"],["∗","∗",!1,"asteriskoperator"],["∝","∝",!1,"proportionalto"],["∠","∠",!1,"angle"],["´","´",!0,"acuteaccent"],["¸","¸",!0,"cedilla"],["ª","ª",!0,"feminineordinalindicator"],["º","º",!0,"masculineordinalindicator"],["†","†",!0,"dagger"],["‡","‡",!0,"doubledagger"],["À","À",!0,"agrave_caps"],["Á","Á",!0,"aacute_caps"],["Â","Â",!0,"acircumflex_caps"],["Ã","Ã",!0,"atilde_caps"],["Ä","Ä",!0,"adiaeresis_caps"],["Å","Å",!0,"aringabove_caps"],["Ā","Ā",!0,"amacron_caps"],["Æ","Æ",!0,"ligatureae_caps"],["Ç","Ç",!0,"ccedilla_caps"],["È","È",!0,"egrave_caps"],["É","É",!0,"eacute_caps"],["Ê","Ê",!0,"ecircumflex_caps"],["Ë","Ë",!0,"ediaeresis_caps"],["Ē","Ē",!0,"emacron_caps"],["Ì","Ì",!0,"igrave_caps"],["Í","Í",!0,"iacute_caps"],["Î","Î",!0,"icircumflex_caps"],["Ï","Ï",!0,"idiaeresis_caps"],["Ī","Ī",!0,"imacron_caps"],["Ð","Ð",!0,"eth_caps"],["Ñ","Ñ",!0,"ntilde_caps"],["Ò","Ò",!0,"ograve_caps"],["Ó","Ó",!0,"oacute_caps"],["Ô","Ô",!0,"ocircumflex_caps"],["Õ","Õ",!0,"otilde_caps"],["Ö","Ö",!0,"odiaeresis_caps"],["Ø","Ø",!0,"oslash_caps"],["Ō","Ō",!0,"omacron_caps"],["Œ","Œ",!0,"ligatureoe_caps"],["Š","Š",!0,"scaron_caps"],["Ù","Ù",!0,"ugrave_caps"],["Ú","Ú",!0,"uacute_caps"],["Û","Û",!0,"ucircumflex_caps"],["Ü","Ü",!0,"udiaeresis_caps"],["Ū","Ū",!0,"umacron_caps"],["Ý","Ý",!0,"yacute_caps"],["Ÿ","Ÿ",!0,"ydiaeresis_caps"],["Þ","Þ",!0,"thorn_caps"],["à","à",!0,"agrave"],["á","á",!0,"aacute"],["â","â",!0,"acircumflex"],["ã","ã",!0,"atilde"],["ä","ä",!0,"adiaeresis"],["å","å",!0,"aringabove"],["ā","ā",!0,"amacron"],["æ","æ",!0,"ligatureae"],["ç","ç",!0,"ccedilla"],["è","è",!0,"egrave"],["é","é",!0,"eacute"],["ê","ê",!0,"ecircumflex"],["ë","ë",!0,"ediaeresis"],["ē","ē",!0,"emacron"],["ì","ì",!0,"igrave"],["í","í",!0,"iacute"],["î","î",!0,"icircumflex"],["ï","ï",!0,"idiaeresis"],["ī","ī",!0,"imacron"
2 ],["&eth;","&#240;",!0,"eth"],["&ntilde;","&#241;",!0,"ntilde"],["&ograve;","&#242;",!0,"ograve"],["&oacute;","&#243;",!0,"oacute"],["&ocirc;","&#244;",!0,"ocircumflex"],["&otilde;","&#245;",!0,"otilde"],["&ouml;","&#246;",!0,"odiaeresis"],["&oslash;","&#248;",!0,"oslash"],["&#333;","&#333;",!0,"omacron"],["&oelig;","&#339;",!0,"ligatureoe"],["&scaron;","&#353;",!0,"scaron"],["&ugrave;","&#249;",!0,"ugrave"],["&uacute;","&#250;",!0,"uacute"],["&ucirc;","&#251;",!0,"ucircumflex"],["&uuml;","&#252;",!0,"udiaeresis"],["&#363;","&#363;",!0,"umacron"],["&yacute;","&#253;",!0,"yacute"],["&thorn;","&#254;",!0,"thorn"],["&yuml;","&#255;",!0,"ydiaeresis"],["&Alpha;","&#913;",!0,"alpha_caps"],["&Beta;","&#914;",!0,"beta_caps"],["&Gamma;","&#915;",!0,"gamma_caps"],["&Delta;","&#916;",!0,"delta_caps"],["&Epsilon;","&#917;",!0,"epsilon_caps"],["&Zeta;","&#918;",!0,"zeta_caps"],["&Eta;","&#919;",!0,"eta_caps"],["&Theta;","&#920;",!0,"theta_caps"],["&Iota;","&#921;",!0,"iota_caps"],["&Kappa;","&#922;",!0,"kappa_caps"],["&Lambda;","&#923;",!0,"lambda_caps"],["&Mu;","&#924;",!0,"mu_caps"],["&Nu;","&#925;",!0,"nu_caps"],["&Xi;","&#926;",!0,"xi_caps"],["&Omicron;","&#927;",!0,"omicron_caps"],["&Pi;","&#928;",!0,"pi_caps"],["&Rho;","&#929;",!0,"rho_caps"],["&Sigma;","&#931;",!0,"sigma_caps"],["&Tau;","&#932;",!0,"tau_caps"],["&Upsilon;","&#933;",!0,"upsilon_caps"],["&Phi;","&#934;",!0,"phi_caps"],["&Chi;","&#935;",!0,"chi_caps"],["&Psi;","&#936;",!0,"psi_caps"],["&Omega;","&#937;",!0,"omega_caps"],["&alpha;","&#945;",!0,"alpha"],["&beta;","&#946;",!0,"beta"],["&gamma;","&#947;",!0,"gamma"],["&delta;","&#948;",!0,"delta"],["&epsilon;","&#949;",!0,"epsilon"],["&zeta;","&#950;",!0,"zeta"],["&eta;","&#951;",!0,"eta"],["&theta;","&#952;",!0,"theta"],["&iota;","&#953;",!0,"iota"],["&kappa;","&#954;",!0,"kappa"],["&lambda;","&#955;",!0,"lambda"],["&mu;","&#956;",!0,"mu"],["&nu;","&#957;",!0,"nu"],["&xi;","&#958;",!0,"xi"],["&omicron;","&#959;",!0,"omicron"],["&pi;","&#960;",!0,"pi"],["&rho;","&#961;",!0,"rho"],["&sigmaf;","&#962;",!0,"finalsigma"],["&sigma;","&#963;",!0,"sigma"],["&tau;","&#964;",!0,"tau"],["&upsilon;","&#965;",!0,"upsilon"],["&phi;","&#966;",!0,"phi"],["&chi;","&#967;",!0,"chi"],["&psi;","&#968;",!0,"psi"],["&omega;","&#969;",!0,"omega"],["&alefsym;","&#8501;",!1,"alefsymbol"],["&piv;","&#982;",!1,"pisymbol"],["&real;","&#8476;",!1,"realpartsymbol"],["&thetasym;","&#977;",!1,"thetasymbol"],["&upsih;","&#978;",!1,"upsilonhooksymbol"],["&weierp;","&#8472;",!1,"weierstrassp"],["&image;","&#8465;",!1,"imaginarypart"],["&larr;","&#8592;",!0,"leftwardsarrow"],["&uarr;","&#8593;",!0,"upwardsarrow"],["&rarr;","&#8594;",!0,"rightwardsarrow"],["&darr;","&#8595;",!0,"downwardsarrow"],["&harr;","&#8596;",!0,"leftrightarrow"],["&crarr;","&#8629;",!1,"carriagereturn"],["&lArr;","&#8656;",!1,"leftwardsdoublearrow"],["&uArr;","&#8657;",!1,"upwardsdoublearrow"],["&rArr;","&#8658;",!1,"rightwardsdoublearrow"],["&dArr;","&#8659;",!1,"downwardsdoublearrow"],["&hArr;","&#8660;",!1,"leftrightdoublearrow"],["&there4;","&#8756;",!1,"therefore"],["&sub;","&#8834;",!1,"subsetof"],["&sup;","&#8835;",!1,"supersetof"],["&nsub;","&#8836;",!1,"notasubsetof"],["&sube;","&#8838;",!1,"subsetoforequalto"],["&supe;","&#8839;",!1,"supersetoforequalto"],["&oplus;","&#8853;",!1,"circledplus"],["&otimes;","&#8855;",!1,"circledtimes"],["&perp;","&#8869;",!1,"perpendicular"],["&sdot;","&#8901;",!1,"dotoperator"],["&lceil;","&#8968;",!1,"leftceiling"],["&rceil;","&#8969;",!1,"rightceiling"],["&lfloor;","&#8970;",!1,"leftfloor"],["&rfloor;","&#8971;",!1,"rightfloor"],["&lang;","&#9001;",!1,"leftpointinganglebracket"],["&rang;","&#9002;",!1,"rightpointinganglebracket"],["&loz;","&#9674;",!0,"lozenge"],["&spades;","&#9824;",!0,"blackspadesuit"],["&clubs;","&#9827;",!0,"blackclubsuit"],["&hearts;","&#9829;",!0,"blackheartsuit"],["&diams;","&#9830;",!0,"blackdiamondsuit"],["&ensp;","&#8194;",!1,"enspace"],["&emsp;","&#8195;",!1,"emspace"],["&thinsp;","&#8201;",!1,"thinspace"],["&zwnj;","&#8204;",!1,"zerowidthnonjoiner"],["&zwj;","&#8205;",!1,"zerowidthjoiner"],["&lrm;","&#8206;",!1,"lefttorightmark"],["&rlm;","&#8207;",!1,"righttoleftmark"],["&shy;","&#173;",!1,"softhyphen"]];e.namespace("M.atto_charmap").Button=e.Base.create("button",e.M.editor_atto.EditorPlugin,[],{_currentSelection:null,initializer:function(){this.addButton({icon:"e/special_character",callback:this._displayDialogue})},_displayDialogue:function(){this._currentSelection=this.get("host").getSelection();if(this._currentSelection===!1)return;var e=this.getDialogue({headerContent:M.util.get_string("insertcharacter",n),focusAfterHide:!0},!0);e.set("bodyContent",this._getDialogueContent()).show()},_getDialogueContent:function(){var t=e.Handlebars.compile('<div class="{{CSS.CHARMAP}}">{{#each CHARMAP}}{{#if this.[2]}}<button class="btn btn-secondary btn-sm {{../../CSS.BUTTON}}" aria-label="{{get_string this.[3] ../../component}}" title="{{get_string this.[3] ../../component}}" data-character="{{this.[0]}}" >{{{this.[0]}}}</button>{{/if}}{{/each}}</div>'),s=e.Node.create(t({component:n,CSS:r,CHARMAP:i}));return s.delegate("click",this._insertChar,"."+r.BUTTON,this),s},_insertChar:function(e){var t=e.target.getData("character");this.getDialogue({focusAfterHide:null}).hide();var n=this.get("host");n.setSelection(this._currentSelection),n.insertContentAtFocusPoint(t),this.markUpdated()}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]});