PageSourceSearch

https://www.medi.se/typo3conf/ext/mediprovider/Resources/Public/ReactBuild/SearchBar.chunk.js

js medi.se collected 2026-10-02 13:36:09 UTC 7,553 bytes, 1 lines download raw bytes

1export const id=1660;export const ids=[1660,1432];export const modules={4102:(e,t,s)=>{"use strict";var o=s(4135);function n(){}function r(){}r.resetWarningCache=n,e.exports=function(){function e(e,t,s,n,r,i){if(i!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return s.PropTypes=s,s}},3398:(e,t,s)=>{e.exports=s(4102)()},4135:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6865:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var o=s(7401),n=s(3398),r=s.n(n),i=s(2674),a=s(6819);class p extends o.Component{constructor(e){super(e),this._name=this.constructor.name,this.state={},this.state.isReady=!1,this.state.ownWidth=null,this.state.isMounted=!1}static getViewportName(){if("undefined"!=typeof window){let e,t=window.innerWidth,s=this.getBreakpoints(),o=this.getViewPorts();for(let n in s)t>=s[n]&&(e=o[n]);return e}}static getViewPorts(){return{xs:"xs",sm:"sm sm-up",md:"md sm-up md-up",lg:"lg sm-up md-up lg-up",xl:"xl sm-up md-up lg-up xl-up"}}
1static getBreakpoints(){return{xs:0,sm:376,md:768,lg:992,xl:1200}}determineOwnWidthAsBreakpointUnit(){let e=this._domElement.offsetWidth,t=p.getBreakpoints(),s="";for(let o in t)e>=t[o]&&(s=o);return s}assembleClassName(){let e=[];const t=this.extendClassName();"string"==typeof t?e.push(t):Array.isArray(t)&&e.push(t.filter((e=>e)).join(" ")),this.props.gridClass&&e.push(this.props.gridClass),this.props.variantColor&&(Array.isArray(this.props.variantColor)?e.concat(this.props.variantColor):e.push(this.props.variantColor)),this.props.blockElement&&e.push(this.props.blockElement),("true"===this.props.isReady||this.state.isReady)&&e.push("is-ready"),"true"===this.props.isActive&&e.push("is-active"),"true"===this.props.isCurrent&&e.push("is-current"),"true"===this.props.isDisabled&&e.push("is-disabled"),this.props.isFocused&&e.push("is-focused"),this.props.isHidden&&e.push("component-is-hidden"),"true"===this.props.isBreakpointSensitive&&e.push("is-breakpoint-sensitive"),this.state.isMounted&&e.push("is-mounted"),this.state.ownWidth&&e.push("own-width--"+this.state.ownWidth);let s=e.join(" ").split(" ");return s.filter(((e,t,s)=>s.indexOf(e)===t)),s.join(" ")}extendClassName(){}getCurrentWidth(){return this._domElement.offsetWidth}mediComponentDidMount(e){this._domElement=i.findDOMNode(this);let t={isMounted:!0,...e};"true"===this.props.renderOwnWidth&&(t.ownWidth=this.determineOwnWidthAsBreakpointUnit()),this.setState(t)}componentDidMount(){this.mediComponentDidMount()}render(){return o.createElement(o.Fragment,null)}}p.propTypes={id:r().string,variantType:r().string,variantModifier:r().string,variantColor:r().string,blockElement:r().string,gridClass:r().string,clickHandler:r().func,blurHandler:r().func,focusHandler:r().func,keyPressHandler:r().func,isDisabled:r().oneOf(["false","true"]),isCurrent:r().oneOf(["false","true"]),isActive:r().oneOf(["false","true"]),isReady:r().oneOf(["false","true"]),renderOwnWidth:r().oneOf(["false","true"]),isFocused:r().bool,isBreakpointSensitive:r().oneOf(["false","true"]),isHidden:r().bool},p.defaultProps={};const l={Component:p,ProptypeValidators:a.Z}},5912:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SearchBarPropDefinition:()=>m,default:()=>h});var o=s(7401),n=s(3398),r=s.n(n),i=s(6865),a=s(1835);const p=a.default.FormField,l=a.default.SearchInput,d=a.default.Form,u=a.default.Button,c=a.default.Icon;class h extends i.Z.Component{extendClassName(){let e=["o-search-bar"];return this.props.buttonLabel&&e.push("o-search-bar--with-label"),e.join(" ")}render(){let e={input:o.createElement(l,{id:"searchBarInput"+this.props.id,isDisabled:"true"===this.props.isDisabled,name:this.props.name,defaultValue:this.props.defaultValue,placeholder:this.props.placeholder}),label:null},t={isDisabled:"true"===this.props.isDisabled,text:null,htmlTag:"button",clickHandler:this.props.clickHandler,iconRight:o.createElement(c,{icon:"interfaces--search"})};this.props.buttonLabel&&(t.text=this.props.buttonLabel,t.variantColor="light-grey-100",t.variantType="secondary");let s=o.createElement(u,t);return o.createElement(o.Fragment,null,o.createElement("div",{id:this.props.id,className:this.assembleClassName()},o.createElement(d,{isDisabled:"true"===this.props.isDisabled,action:this.props.action,method:this.props.method,hiddenInputs:this.props.hiddenInputs,formFields:[o.createElement(p,e)],button:s})))}}h.defaultProps={placeholder:"enter search term...",name:"please-specify-name",method:"POST"},h.propTypes={action:r().string,method:r().oneOf(["GET","POST"]),placeholder:r().string,buttonLabel:r().string,name:r().string,id:r().string,defaultValue:r().string,hiddenInputs:r().arrayOf(i.Z.ProptypeValidators.validateAllowedSubcomponents.bind(void 0,["HiddenInput"]))};const m={action:"",method:["GET","POST"],placeholder:"",buttonLabel:"",name:"",id:"",defaultValue:"",hiddenInputs:[["<HiddenInput />"]]}},6819:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var o=s(1519);class n{static validateAllowedValues(e,t,s,o,n,r){let i=e[t];if("function"==typeof n&&(n=n()),i){let e=i;Array.isArray(i)||(e=r?i.split(r):[i]),e.forEach(((e,n)=>{-1===o.indexOf(e)&&console.error('Invalid value "'+e+'" for prop `'+t+"` supplied to `"+s+'`.\nExpected one of: "'+o.join(",")+'".\n')}))}else n&&console.error("Empty value for prop `"+t+"` supplied to `"+s+'`.\nExpected one of: "'+o.join(",")+'".\n')}static validateAllowedSubcomponents(e,t,s,o){let n=[].concat(e,["ComponentFromJson"]),r=t[s];if(r&&r.type)if("object"==typeof r.type)r.type.load(r.props).then((e=>
1{let t=(new e.default).constructor.name;-1===n.indexOf(t)&&console.error("Invalid component type "+t+" for prop `"+s+"` supplied to `"+o+'`.\nExpected one of: "'+n.join(",")+'".\n')}));else{let e=r.type.name;-1===n.indexOf(e)&&console.error("Invalid component type "+e+" for prop `"+s+"` supplied to `"+o+'`.\nExpected one of: "'+n.join(",")+'".\n')}}static validateAllowedComponentTypes(e,t,s,o){o.push("ComponentFromJson");let n=e[t];n&&n.type&&n.type.load(n.props).then((e=>{let n=(new e.default).constructor.name;-1===o.indexOf(n)&&console.error("Invalid component type "+n+" for prop `"+t+"` supplied to `"+s+'`.\nExpected one of: "'+o.join(",")+'".\n')}))}}(0,o.Z)(n,"allowedTextTags",["a","p","ul","ol","li","i","b","strong","br","em","quote","span","h1","h2","h3","h4","h5","h6","blockquote","footer","cite"]),(0,o.Z)(n,"allowedHeadlineTags",["h1","h2","h3","h4","h5","h6","span"]),(0,o.Z)(n,"allowedHtmlTags",["div","table","tbody","tr","td","th","br"]);const r=n},1519:(e,t,s)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function n(e,t,s){return n=function(e,t){if("object"!=o(e)||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==o(n)?n:String(n))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e;var n}s.d(t,{Z:()=>n})}};

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.