@freshworks/crayons
Version:
Crayons Web Components library
1 lines • 6.63 kB
JavaScript
System.register(["./p-6fb516eb.system.js","./p-60d4b4d4.system.js","./p-287d763c.system.js"],(function(e){"use strict";var a,t,i,n,o;return{setters:[function(e){a=e.b;t=e.a;i=e.c;n=e.d},function(e){o=e.i},function(){}],execute:function(){var r={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};var m=function e(a,t,i){var n;var o=r[a];if(typeof o==="string"){n=o}else if(t===1){n=o.one}else{n=o.other.replace("{{count}}",t.toString())}if(i!==null&&i!==void 0&&i.addSuffix){if(i.comparison&&i.comparison>0){return"tra "+n}else{return n+" fa"}}return n};var d={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"};var s={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var u={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"};var l={date:a({formats:d,defaultWidth:"full"}),time:a({formats:s,defaultWidth:"full"}),dateTime:a({formats:u,defaultWidth:"full"})};var g=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function c(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+g[e]+" scorso alle' p"}}function v(e){return"'"+g[e]+" alle' p"}function f(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+g[e]+" prossimo alle' p"}}var h={lastWeek:function e(a,t,i){var n=a.getUTCDay();if(o(a,t,i)){return v(n)}else{return c(n)}},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function e(a,t,i){var n=a.getUTCDay();if(o(a,t,i)){return v(n)}else{return f(n)}},other:"P"};var p=function e(a,t,i,n){var o=h[a];if(typeof o==="function"){return o(t,i,n)}return o};var b={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]};var z={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var w={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]};var M={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]};var y={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}};var P={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}};var W=function e(a,t){var i=Number(a);return i+"º"};var C={ordinalNumber:W,era:t({values:b,defaultWidth:"wide"}),quarter:t({values:z,defaultWidth:"wide",argumentCallback:function e(a){return a-1}}),month:t({values:w,defaultWidth:"wide"}),day:t({values:M,defaultWidth:"wide"}),dayPeriod:t({values:y,defaultWidth:"wide",formattingValues:P,defaultFormattingWidth:"wide"})};var x=/^(\d+)(º)?/i;var H=/\d+/i;var k={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i};var T={any:[/^a/i,/^(d|e)/i]};var S={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i};var X={any:[/1/i,/2/i,/3/i,/4/i]};var A={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i};var D={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]};var E={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i};var q={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]};var N={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i};var V={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}};var Y={ordinalNumber:i({matchPattern:x,parsePattern:H,valueCallback:function e(a){return parseInt(a,10)}}),era:n({matchPatterns:k,defaultMatchWidth:"wide",parsePatterns:T,defaultParseWidth:"any"}),quarter:n({matchPatterns:S,defaultMatchWidth:"wide",parsePatterns:X,defaultParseWidth:"any",valueCallback:function e(a){return a+1}}),month:n({matchPatterns:A,defaultMatchWidth:"wide",parsePatterns:D,defaultParseWidth:"any"}),day:n({matchPatterns:E,defaultMatchWidth:"wide",parsePatterns:q,defaultParseWidth:"any"}),dayPeriod:n({matchPatterns:N,defaultMatchWidth:"any",parsePatterns:V,defaultParseWidth:"any"})};var j=e("default",{code:"it",formatDistance:m,formatLong:l,formatRelative:p,localize:C,match:Y,options:{weekStartsOn:1,firstWeekContainsDate:4}})}}}));