PageSourceSearch

https://static.allas.se/c40086352442e1e777645028ffe21a0f3c49cd51/_next/static/chunks/6713.5e4e7c3b1bc55731.js

js allas.se collected 2026-09-24 18:18:39 UTC 14,069 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6713],{16929:(t,e,r)=>{"use strict";r.d(e,{H2:()=>s,fI:()=>u,l6:()=>d,lM:()=>h});var n=r(37876);let s=t=>{let{children:e}=t;return(0,n.jsx)("div",{className:"flex flex-wrap gap-6 bg-primary-100 p-3",children:e})};var a=r(36955),i=r(61343);let u=t=>{let{options:e,content:r,...s}=t;return"residence"===(0,i.m)()?null:(0,n.jsx)(a.f,{content:(0,n.jsx)("div",{className:"max-w-full resize-x overflow-x-hidden",children:r}),options:{className:"mx-0 max-w-full flex flex-col",...e},...s})};var o=r(18562);r(14232);let l=["\uD83D\uDC35","\uD83D\uDC36","\uD83D\uDC3A","\uD83E\uDD8A","\uD83E\uDD9D","\uD83D\uDC31","\uD83E\uDD81","\uD83D\uDC2F","\uD83D\uDC2E","\uD83D\uDC37","\uD83D\uDC2D","\uD83D\uDC39","\uD83D\uDC30","\uD83D\uDC3B","\uD83D\uDC3B‍❄️","\uD83D\uDC28","\uD83D\uDC3C"],d=t=>{let{label:e,items:r,onChange:s,defaultValue:a,disabled:i}=t;return(0,n.jsxs)("label",{className:"space-x-2",children:[(0,n.jsxs)("span",{children:[e,":"]}),(0,n.jsxs)("select",{onChange:t=>{let{target:{value:e}}=t;s(e||void 0)},defaultValue:a,disabled:i,children:[(0,n.jsx)("option",{value:"",suppressHydrationWarning:!0,children:l[(0,o.A)(0,l.length-1)]}),r.map(t=>(0,n.jsx)("option",{value:t,children:t},t))]})]})};var c=r(56102),f=r(3084);let h=t=>{let{onChange:e,checked:r,defaultChecked:s,disabled:a,...i}=t;return(0,n.jsx)(c.S,{...(0,f.v6)({options:{$input:{onChange:t=>{let{target:{checked:r}}=t;return e(r)},checked:r,defaultChecked:s,disabled:a}}},i)})}},18562:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=Math.floor,s=Math.random,a=r(41373),i=r(51099),u=parseFloat,o=Math.min,l=Math.random;let d=function(t,e,r){if(r&&"boolean"!=typeof r&&(0,a.A)(t,e,r)&&(e=r=void 0),void 0===r&&("boolean"==typeof e?(r=e,e=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=(0,i.A)(t),void 0===e?(e=t,t=0):e=(0,i.A)(e)),t>e){var d,c,f=t;t=e,e=f}if(r||t%1||e%1){var h=l();return o(t+h*(e-t+u("1e-"+((h+"").length-1))),e)}return d=t,c=e,d+n(s()*(c-d+1))}},36955:(t,e,r)=>{"use strict";r.d(e,{f:()=>p});var n=r(37876),s=r(7369),a=r(3084),i=r(48314),u=r(53796),o=r(34197);let l=(0,o.S)({theme:u.a}),d=l({as:"div",slot:"base"}),c=l({as:"div",slot:"headline"}),f=l({as:"div",slot:"caption"}),h=Object.assign(d,{Headline:c,Caption:f,Footer:l({as:"footer",slot:"footer"}),Button:(0,o.Q)({as:i.$,theme:u.a.Button})}),m=t=>{var e;let{button:r,caption:s,content:i,footer:u,headline:o,...l}=t;return(0,n.jsxs)(h,{...l,children:[o&&(0,n.jsx)(h.Headline,{children:o}),s&&(0,n.jsx)(h.Caption,{children:s}),i,(u||r)&&(0,n.jsxs)(h.Footer,{children:[u,r&&(0,n.jsx)(h.Button,{...(0,a.v6)({options:null==(e=l.options)?void 0:e.$button},r)})]})]})},p=(0,s.Qj)(t=>(0,n.jsx)(m,{...t}))},51099:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var n=/\s/;let s=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e};var a=/^\s+/,i=r(29356),u=r(94147),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;let h=function(t){if("number"==typeof t)return t;if((0,u.A)(t))return o;if((0,i.A)(t)){var e,r="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.A)(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,s(e)+1).replace(a,""):e;var n=d.test(t);return n||c.test(t)?f(t.slice(2),n?2:8):l.test(t)?o:+t};var m=1/0;let p=function(t){return t?(t=h(t))===m||t===-m?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},53796:(t,e,r)=>{"use strict";r.d(e,{a:()=>o});var n=r(70273),s=r(9906);let a=n.O,i=Object.assign(s.tw.theme({slots:{base:["group/row","row","relative","mx-auto","grid","w-full","max-w-grid","auto-rows-min","grid-cols-12","gap-grid","empty:hidden","group-[]/row:flex","group-[]/row:flex-col","[&:not(:has(.box))]:flex","[&:not(:has(.box))]:flex-col","[&:not(:has(:not(.box:empty)))]:hidden","[&.bg]:py-grid-gap"],headline:["col-span-12","w-full","text-black","text-headline-sm","after:h-0.25","after:bg-black","sm:text-headline-md"],caption:["col-span-12","w-full","text-black","text-body-sm"],footer:["col-span-12","flex","w-full","items-center","justify-center","[&:not(:first-child)]:mt-12"]}}),{Button:a}),u=s.tw.theme({extend:n.O,variants:{size:{medium:["text-button-sm","md:text-button-md","!h-7","md:h-11"]}}}),o=Object.assign(s.tw.theme({extend:i,slots:{base:[],headline:["text-headline-xs","sm:text-headline-sm"],footer:["[&:not(:first-child)]:mt-4","[&:not(:first-child)]:md:mt-6"]}}),{Button:u})},56557:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",s="week",a="month",i="quarter",u="year",o="date",l="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
1|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},h="en",m={};m[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var p="$isDayjsObject",M=function(t){return t instanceof y||!(!t||!t[p])},v=function t(e,r,n){var s;if(!e)return h;if("string"==typeof e){var a=e.toLowerCase();m[a]&&(s=a),r&&(m[a]=r,s=a);var i=e.split("-");if(!s&&i.length>1)return t(i[0])}else{var u=e.name;m[u]=e,s=u}return!n&&s&&(h=s),s||!n&&h},$=function(t,e){if(M(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new y(r)},g={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,a),i=r-s<0,u=e.clone().add(n+(i?-1:1),a);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return({M:a,y:u,w:s,d:"day",D:o,h:n,m:r,s:e,ms:t,Q:i})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};g.l=v,g.i=M,g.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var y=function(){function f(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var h=f.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var s=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return g},h.isValid=function(){return this.$d.toString()!==l},h.isSame=function(t,e){var r=$(t);return this.startOf(e)<=r&&r<=this.endOf(e)},h.isAfter=function(t,e){return $(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<$(t)},h.$g=function(t,e,r){return g.u(t)?this[e]:this.set(r,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,i){var l=this,d=!!g.u(i)||i,c=g.p(t),f=function(t,e){var r=g.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return d?r:r.endOf("day")},h=function(t,e){return g.w(l.toDate()[t].apply(l.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},m=this.$W,p=this.$M,M=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case u:return d?f(1,0):f(31,11);case a:return d?f(1,p):f(0,p+1);case s:var $=this.$locale().weekStart||0,y=(m<$?m+7:m)-$;return f(d?M-y:M+(6-y),p);case"day":case o:return h(v+"Hours",0);case n:return h(v+"Minutes",1);case r:return h(v+"Seconds",2);case e:return h(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(s,i){var l,d=g.p(s),c="set"+(this.$u?"UTC":""),f=((l={}).day=c+"Date",l[o]=c+"Date",l[a]=c+"Month",l[u]=c+"FullYear",l[n]=c+"Hours",l[r]=c+"Minutes",l[e]=c+"Seconds",l[t]=c+"Milliseconds",l)[d],h="day"===d?this.$D+(i-this.$W):i;if(d===a||d===u){var m=this.clone().set(o,1);m.$d[f](h),m.init(),this.$d=m.set(o,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[g.p(t)]()},h.add=function(t,i){var o,l=this;t=Number(t);var d=g.p(i),c=function(e){var r=$(l);return g.w(r.date(r.date()+Math.round(e*t)),l)};if(d===a)return this.set(a,this.$M+t);if(d===u)return this.set(u,this.$y+t);if("day"===d)return c(1);if(d===s)return c(7);var f=((o={})[r]=6e4,o[n]=36e5,o[e]=1e3,o)[d]||1,h=this.$d.getTime()+t*f;return g.w(h,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=g.z(this),a=this.$H,i=this.$m,u=this.$M,o=r.weekdays,d=r.months,f=r.meridiem,h=function(t,r,s,a){return t&&(t[r]||t(e,n))||s[r].slice(0,a)},m=function(t){return g.s(a%12||12,t,"0")},p=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(c,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return g.s(e.$y,4,"0");case"M":return u+1;case"MM":return g.s(u+1,2,"0");case"MMM":return h(r.monthsShort,u,d,3);case"MMMM":return h(d,u);case"D":return e.$D;case"DD":return g.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,o,2);case"ddd":return h(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(a);case"HH":return g.s(a,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return p(a,i,!0);case"A":return p(a,i,!1);case"m":return String(i);case"mm":return g.s(i,2,"0");case"s":return String(e.$s);case"ss":return g.s(e.$s,2,"0");case"SSS":return g.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(t,o,l){var d,c=this,f=g.p(o),h=$(t),m=(h.utcOffset()-this.utcOffset())*6e4,p=this-h,M=function(){return g.m(c,h)};switch(f){case u:d=M()/12;break;case a:d=M();break;case i:d=M()/3;break;case s:d=(p-m)/6048e5;break;case"day":d=(p-m)/864e5;break;case n:d=p/36e5;break;case r:d=p/6e4;break;case e:d=p/1e3;break;default:d=p}return l?d:g.a(d)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return m[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=v(t,e,!0);return n&&(r.$L=n),r},h.clone=function(){return g.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),x=y.prototype;return $.prototype=x,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",u],["$D",o]].forEac
1h(function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),$.extend=function(t,e){return t.$i||(t(e,y,$),t.$i=!0),$},$.locale=v,$.isDayjs=M,$.unix=function(t){return $(1e3*t)},$.en=m[h],$.Ls=m,$.p={},$}()},79932:function(t,e,r){t.exports=function(t){"use strict";var e={name:"sv",weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(t){var e=t%10;return"["+t+(1===e||2===e?"a":"e")+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(e,null,!0),e}(r(56557))},80717:(t,e,r)=>{"use strict";r.d(e,{X:()=>M});var n=r(37876),s=r(7369);r(3084);var a=r(56557),i=r.n(a),u=r(79932),o=r.n(u),l=r(9906);let d=l.tw.theme({slots:{base:"",date:"",updatedDate:"text-gray-600"}}),c=l.tw.theme({extend:d,slots:{date:"text-gray-700 text-body-sm sm:text-body-md",updatedDate:"text-gray-700 text-body-sm sm:text-body-md"}}),f=(0,r(34197).S)({theme:c}),h=f({as:"div",slot:"base"}),m=Object.assign(h,{Date:f({as:"time",slot:"date"}),UpdatedDate:f({as:"span",slot:"updatedDate"})}),p=t=>{let{publishedDatetime:e,updatedDatetime:r,format:s="D MMMM YYYY",...a}=t,u=i()(e).locale(o()).format(s),l=i()(r).locale(o()).format(s),d=i()(e).toISOString();return(0,n.jsxs)(m,{...a,children:[(0,n.jsx)(m.Date,{dateTime:d,suppressHydrationWarning:!0,children:u}),r&&(0,n.jsxs)(m.UpdatedDate,{suppressHydrationWarning:!0,children:["\xa0","UPPDATERAD ".concat(l)]})]})},M=(0,s.Qj)(t=>(0,n.jsx)(p,{...t}))},96713:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ArticleDatePreview:()=>o,default:()=>l});var n=r(37876),s=r(80717),a=r(16929),i=r(14232);let u=["D MMMM, YYYY","DD MMMM YYYY, H:m:s","DD MMMM YYYY H:m:s","DD.MM.YYYY HH:mm:ss"],o=()=>{let[t,e]=(0,i.useState)(""),[r,o]=(0,i.useState)(u[0]),[l,d]=(0,i.useState)(!0);(0,i.useEffect)(()=>{e(new Date().toISOString())},[]);let c=(0,n.jsxs)(a.H2,{children:[(0,n.jsx)(a.l6,{label:"Date format",items:u,onChange:o}),(0,n.jsx)(a.lM,{label:"Show updated date",onChange:d,defaultChecked:!0})]});return(0,n.jsx)(a.fI,{headline:"Article Date",caption:c,content:(0,n.jsx)(s.X,{publishedDatetime:t,updatedDatetime:l?t:void 0,format:r})})},l=o}}]);
2//# sourceMappingURL=6713.5e4e7c3b1bc55731.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.