PageSourceSearch

https://thebeautyroom.se/build/6485.c87d9428.js

js thebeautyroom.se collected 2026-10-03 00:26:00 UTC 15,352 bytes, 3 lines download raw bytes

1/*! For license information please see 6485.c87d9428.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6485],{53131:(e,t,n)=>{n.d(t,{A:()=>y});var i=n(37688);const s=function(e,t,n){var s=e.length;return n=void 0===n?s:n,!t&&n>=s?e:(0,i.A)(e,t,n)};var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const o=function(e){return r.test(e)};const a=function(e){return e.split("")};var l="\\ud800-\\udfff",c="["+l+"]",u="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",f="[^"+l+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",m="(?:"+u+"|"+d+")"+"?",b="[\\ufe0e\\ufe0f]?",p=b+m+("(?:\\u200d(?:"+[f,h,g].join("|")+")"+b+m+")*"),k="(?:"+[f+u+"?",u,h,g,c].join("|")+")",A=RegExp(d+"(?="+d+")|"+k+p,"g");const v=function(e){return e.match(A)||[]};const _=function(e){return o(e)?v(e):a(e)};var w=n(3456);const y=function(e){return function(t){t=(0,w.A)(t);var n=o(t)?_(t):void 0,i=n?n[0]:t.charAt(0),r=n?s(n,1).join(""):t.slice(1);return i[e]()+r}}("toUpperCase")},96485:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var i=n(67868),s=n(89104),r=n(93125),o=n(81e3);const a=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class l extends i.k_{static get requires(){return[s.ep,o.A]}static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(e,t){return t.textNode&&t.textNode.hasAttribute("linkHref")?(0,s.Py)(t,"linkHref",t.textNode.getAttribute("linkHref"),e):null}_selectEntireLinks(e,t){const n=this.editor.model,i=n.document.selection,s=i.getFirstPosition(),r=i.getLastPosition();let o=t.getJoined(this._expandLinkRange(n,s)||t);o&&(o=o.getJoined(this._expandLinkRange(n,r)||t)),o&&(o.start.isBefore(s)||o.end.isAfter(r))&&e.setSelection(o)}_enablePasteLinking(){const e=this.editor,t=e.model,n=t.document.selection,i=e.plugins.get("ClipboardPipeline"),s=e.commands.get("link");i.on("inputTransformation",((e,i)=>{if(!this.isEnabled||!s.isEnabled||n.isCollapsed||"paste"!==i.method)return;if(n.rangeCount>1)return;const r=n.getFirstRange(),o=i.dataTransfer.getData("text/plain");if(!o)return;const l=o.match(a);l&&l[2]===o&&(t.change((e=>{this._selectEntireLinks(e,r),s.execute(o)})),e.stop())}),{priority:"high"})}_enableTypingHandling(){const e=this.editor,t=new s.qV(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=c(e.substr(0,e.length-1));return t?{url:t}:void 0}));t.on("matched:data",((t,n)=>{const{batch:i,range:s,url:r}=n;if(!i.isTyping)return;const o=s.end.getShiftedBy(-1),a=o.getShiftedBy(-r.length),l=e.model.createRange(a,o);this._applyAutoLink(r,l)})),t.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("enter");n&&n.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;const n=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("shiftEnter");n&&n.on("execute",(()=>{const e=t.document.selection.getFirstPosition(),n=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:n,range:i}=(0,s.ex)(e,t),r=c(n);if(r){const e=t.createRange(i.end.getShiftedBy(-r.length),i.end);this._applyAutoLink(r,e)}}_applyAutoLink(e,t){const n=this.editor.model,i=this.editor.config.get("link.defaultProtocol"),s=(0,r.eB)(e,i);this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}
2(t,n)&&(0,r.z0)(s)&&!function(e){const t=e.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(s,t)}_persistAutoLink(e,t){const n=this.editor.model,i=this.editor.plugins.get("Delete");n.enqueueChange((s=>{s.setAttribute("linkHref",e,t),n.enqueueChange((()=>{i.requestUndoOnBackspace()}))}))}}function c(e){const t=a.exec(e);return t?t[2]:null}},81e3:(e,t,n)=>{n.d(t,{A:()=>m});var i=n(67868),s=n(89104),r=n(72158),o=n(8526);class a{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach((e=>this._definitions.add(e))):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",((e,t,n)=>{if(!n.consumable.test(t.item,"attribute:linkHref"))return;if(!t.item.is("selection")&&!n.schema.isInline(t.item))return;const i=n.writer,s=i.document.selection;for(const e of this._definitions){const r=i.createAttributeElement("a",e.attributes,{priority:5});e.classes&&i.addClass(e.classes,r);for(const t in e.styles)i.setStyle(t,e.styles[t],r);i.setCustomProperty("link",!0,r),e.callback(t.attributeNewValue)?t.item.is("selection")?i.wrap(s.getFirstRange(),r):i.wrap(n.mapper.toViewRange(t.range),r):i.unwrap(n.mapper.toViewRange(t.range),r)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",((e,t,{writer:n,mapper:i})=>{const s=i.toViewElement(t.item),r=Array.from(s.getChildren()).find((e=>e.is("element","a")));for(const e of this._definitions){const i=(0,o.av)(e.attributes);if(e.callback(t.attributeNewValue)){for(const[e,t]of i)"class"===e?n.addClass(t,r):n.setAttribute(e,t,r);e.classes&&n.addClass(e.classes,r);for(const t in e.styles)n.setStyle(t,e.styles[t],r)}else{for(const[e,t]of i)"class"===e?n.removeClass(t,r):n.removeAttribute(e,r);e.classes&&n.removeClass(e.classes,r);for(const t in e.styles)n.removeStyle(t,r)}}}))}}}var l=n(93125);class c extends i.uB{constructor(){super(...arguments),this.manualDecorators=new o.pM,this.automaticDecorators=new a}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||(0,o.$1)(t.getSelectedBlocks());(0,l.To)(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}execute(e,t={}){const n=this.editor.model,i=n.document.selection,r=[],a=[];for(const e in t)t[e]?r.push(e):a.push(e);n.change((t=>{if(i.isCollapsed){const l=i.getFirstPosition();if(i.hasAttribute("linkHref")){const o=u(i);let c=(0,s.Py)(l,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===o&&(c=this._updateLinkContent(n,t,c,e)),t.setAttribute("linkHref",e,c),r.forEach((e=>{t.setAttribute(e,!0,c)})),a.forEach((e=>{t.removeAttribute(e,c)})),t.setSelection(t.createPositionAfter(c.end.nodeBefore))}else if(""!==e){const s=(0,o.av)(i.getAttributes());s.set("linkHref",e),r.forEach((e=>{s.set(e,!0)}));const{end:a}=n.insertContent(t.createText(e,s),l);t.setSelection(a)}["linkHref",...r,...a].forEach((e=>{t.removeSelectionAttribute(e)}))}else{const s=n.schema.getValidRanges(i.getRanges(),"linkHref"),o=[];for(const e of i.getSelectedBlocks())n.schema.checkAttribute(e,"linkHref")&&o.push(t.createRangeOn(e));const l=o.slice();for(const e of s)this._isRangeToUpdate(e,o)&&l.push(e);for(const s of l){let o=s;if(1===l.length){const r=u(i);i.getAttribute("linkHref")===r&&(o=this._updateLinkContent(n,t,s,e),t.setSelection(t.createSelection(o)))}t.setAttribute("linkHref",e,o),r.forEach((e=>{t.setAttribute(e,!0,o)})),a.forEach((e=>{t.removeAttribute(e,o)}))}}}))}_getDecoratorStateFromModel(e){const t=this.editor.model,n=t.document.selection,i=n.getSelectedElement();return(0,l.To)(i,t.schema)?i.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(const n of t)if(n.containsRange(e))return!1;return!0}_updateLinkContent(e,t,n,i){const s=t.createText(i,{linkHref:i});return e.insertContent(s,n)}}function u(e){if(e.isCollapsed){const t=e.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(e.getFirstRange().getItems());if(t.length>1)return null;const n=t[0];return n.is("$text")||n.is("$textProxy")?n.data:null}}class d extends i.uB{refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();(0,l.To)(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,t=this.editor.model,n=t.document.selection,i=e.commands.get("link");t.change((e=>{const r=n.isCollapsed?[(0,s.Py)(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:t.schema.getValidRanges(n.getRanges(),"linkHref");for(const t of r)if(e.removeAttribute("linkHref",t),i)for(const n of i.manualDecorators)e.removeAttribute(n.id,t)}))}}class f extends((0,o.VM)()){constructor({id:e,label:t,attributes:n,classes:i,styles:s,defaultValue:r}){super(),this.id=e,this.set("value",void 0),this.defaultValue=r,this.label=t,this.attributes=n,this.classes=i,this.styles=s}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}const h="automatic",g=/^(https?:)?\/\//;class m extends i.k_{static get pluginName(){return"LinkEditing"}static get requires(){return[s.Vp,s.pd,r.xz]}constructor(e){super(e),e.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const e=this.editor,t=this.editor.config.get("link.allowedProtocols");e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:l.Tk}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,n)=>(0,l.Tk)((0,l.HO)(e,t),n)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new c(e)),e.commands.add("unlink",new d(e));const n=(0,l.Kf)(e.t,(0,l.Q0)(e.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter((e=>e.mode===h))),this._enableManualDecorators(n.filter((e=>"manual"===e.mode)));e.plugins.get(s.Vp).registerAttribute("linkHref"),(0,s.Il)(e,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(e){const t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:h,callback:e=>!!e&&g.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((e=>{t.model.schema.extend("$text",{allowAttributes:e.id});const i=new f(e);n.add(i),t.conversion.for("downcast").attributeToElement({model:i.id,view:(e,{writer
2:t,schema:n},{item:s})=>{if((s.is("selection")||n.isInline(s))&&e){const e=t.createAttributeElement("a",i.attributes,{priority:5});i.classes&&t.addClass(i.classes,e);for(const n in i.styles)t.setStyle(n,i.styles[n],e);return t.setCustomProperty("link",!0,e),e}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...i._createPattern()},model:{key:i.id}})}))}_enableLinkOpen(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",((e,t)=>{if(!(o._K.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let n=t.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const i=n.getAttribute("href");i&&(e.stop(),t.preventDefault(),(0,l.Fe)(i))}),{context:"$capture"}),this.listenTo(t,"keydown",((t,n)=>{const i=e.commands.get("link").value;!!i&&n.keyCode===o.uP.enter&&n.altKey&&(t.stop(),(0,l.Fe)(i))}))}_enableSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(t,"change:attribute",((n,{attributeKeys:i})=>{i.includes("linkHref")&&!t.hasAttribute("linkHref")&&e.change((t=>{var n;!function(e,t){e.removeSelectionAttribute("linkHref");for(const n of t)e.removeSelectionAttribute(n)}(t,(n=e.schema,n.getDefinition("$text").allowAttributes.filter((e=>e.startsWith("link")))))}))}))}_enableClipboardIntegration(){const e=this.editor,t=e.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(e.plugins.get("ClipboardPipeline"),"contentInsertion",((e,i)=>{t.change((e=>{const t=e.createRangeIn(i.content);for(const i of t.getItems())if(i.hasAttribute("linkHref")){const t=(0,l.eB)(i.getAttribute("linkHref"),n);e.setAttribute("linkHref",t,i)}}))}))}}},93125:(e,t,n)=>{n.d(t,{Fe:()=>k,HO:()=>f,JL:()=>u,Kf:()=>h,Q0:()=>g,Tk:()=>d,To:()=>m,eB:()=>b,tO:()=>c,z0:()=>p});var i=n(53131);const s=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,r="^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))",o=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,a=/^((\w+:(\/{2,})?)|(\W))/i,l=["https?","ftps?","mailto"],c="Ctrl+K";function u(e){return e.is("attributeElement")&&!!e.getCustomProperty("link")}function d(e,{writer:t}){const n=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,n),n}function f(e,t=l){const n=String(e),i=t.join("|");return function(e,t){const n=e.replace(s,"");return!!n.match(t)}(n,new RegExp(`${r.replace("<protocols>",i)}`,"i"))?n:"#"}function h(e,t){const n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((e=>("label"in e&&n[e.label]&&(e.label=n[e.label]),e))),t}function g(e){const t=[];if(e)for(const[n,s]of Object.entries(e)){const e=Object.assign({},s,{id:`link${(0,i.A)(n)}`});t.push(e)}return t}function m(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function b(e,t){const n=(i=e,o.test(i)?"mailto:":t);var i;const s=!!n&&!p(e);return e&&s?n+e:e}function p(e){return a.test(e)}function k(e){window.open(e,"_blank","noopener")}},72158:(e,t,n)=>{n.d(t,{B0:()=>i.default,$J:()=>r.A,xz:()=>s.A});var i=n(37614),s=n(756),r=n(10589);n(72017),n(32532),n(77695),n(33237)},67868:(e,t,n)=>{n.d(t,{HY:()=>i.HY,JF:()=>i.JF,KE:()=>i.KE,Pt:()=>i.Pt,TS:()=>i.TS,fE:()=>i.fE,k_:()=>i.k_,mJ:()=>i.mJ,ob:()=>i.ob,uB:()=>i.uB});var i=n(90975)},89104:(e,t,n)=>{n.d(t,{IG:()=>i.IG,Il:()=>i.Il,Py:()=>i.Py,Vp:()=>i.Vp,ep:()=>i.ep,ex:()=>i.ex,lO:()=>i.lO,pd:()=>i.pd,qV:()=>i.qV});var i=n(37957)},8526:(e,t,n)=>{n.d(t,{$1:()=>i.$1,$r:()=>i.$r,$x:()=>i.$x,EP:()=>i.EP,FF:()=>i.FF,Kf:()=>i.Kf,Ld:()=>i.Ld,Mm:()=>i.Mm,PZ:()=>i.PZ,QC:()=>i.QC,Sf:()=>i.Sf,To:()=>i.To,Ui:()=>i.Ui,VM:()=>i.VM,Yb:()=>i.Yb,ZX:()=>i.ZX,_K:()=>i._K,av:()=>i.av,bi:()=>i.bi,c5:()=>i.c5,i8:()=>i.i8,iJ:()=>i.iJ,j3:()=>i.j3,n:()=>i.n,pG:()=>i.pG,pM:()=>i.pM,q8:()=>i.q8,rw:()=>i.rw,tb:()=>i.tb,uP:()=>i.uP,vK:()=>i.vK,vV:()=>i.vV,vx:()=>i.vx,zN:()=>i.zN});var i=n(40118)}}]);
3//# sourceMappingURL=6485.c87d9428.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.