UNPKG

corporate-frontend-mithril

Version:

Corporate frontend MithrilJS modules

1 lines 41.5 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{10:function(module,exports,__webpack_require__){function _typeof(e){return(_typeof="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})(e)}var helpers=__webpack_require__(158),_=__webpack_require__(2),_presets={currency:{pattern:/^-?\$?(([1-9][0-9]{0,2}(, ?[0-9]{3})*)|[0-9]+)?(\.[0-9]{1,2})?$/,message:"You must enter a valid dollar amount"},usydEmail:{presets:["email"],pattern:/^\S+@(.+\.)?(sydney|usyd)\.edu\.au$/,message:"Your email must end with sydney.edu.au or usyd.edu.au"},email:{pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-z\-0-9]+\.)+[a-z]{2,}))$/,message:"You must enter a valid email address"},number:{pattern:/^-?[0-9]\d*(\.\d+)?$/,message:"You must enter a number"}},_conditions={function:{},maxValue:{validate:function(e,t){return null===t?null:helpers.numbers.isNumber(e)&&helpers.numbers.stripNonNumericCharacters(e)<=t?null:"You must enter a number of no more than ".concat(t)}},minValue:{validate:function(e,t){return null===t?null:helpers.numbers.isNumber(e)&&helpers.numbers.stripNonNumericCharacters(e)>=t?null:"You must enter a number of at least ".concat(t)}},maxLength:{validate:function(e,t){return null===t?null:e.toString().length<=t?null:"You can only enter up to ".concat(t," characters")}},minLength:{validate:function(e,t){return null===t?null:e.toString().length>=t?null:"You must enter at least ".concat(t," characters")}},pattern:{validate:function(e,t){return null===t?null:RegExp(t).test(e)?null:"Your input must match the pattern ".concat(t)}},required:{validate:function(e,t){return t?/^(?!\s*$).+/.test(helpers.booleans.isTruthyValue(e)?e:"")?null:"You must complete this field":null}},requires:{validate:function(e,t){return helpers.booleans.isTruthyValue(e)?(null!=t&&(!t||"object"==_typeof(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("elementName"))||console.warn("You must provide correct settings for required element first"),helpers.booleans.isTruthyValue(e)&&helpers.booleans.isTruthyValue(t)&&"object"==_typeof(t)&&helpers.booleans.isTruthyValue(t.value)?null:helpers.booleans.isTruthyValue(t)&&"object"==_typeof(t)?"You must complete ".concat(t.elementName," first"):"You must provide correct settings for required element first"):null}},match:{validate:function(e,t){return e==t?null:"Doesn't match"}},presets:{validate:function validate(val,presets){if(null===presets)return null;"string"==typeof presets&&(presets=eval("(".concat(presets,")")));for(var i=0;i<presets.length;i++){var result=exec({value:val,options:getPreset(presets[i])});if(result)return result}return null}}},exec=function(e){if(!e.options)return null;if(!helpers.booleans.isTruthyValue(e.value)&&!e.options.required)return null;for(var t in e.options){var n=getCondition(t),r=null;if(n&&(r=n.validate(e.value,e.options[t]),!_.isEmpty(r)))return e.options.message||e.options["".concat(t,"Message")]||r||"You must enter a valid value"}return null},getCondition=function(e){return _conditions[e]},getPreset=function(e){return _presets[e]},addPreset=function(e,t){return _presets[e]?console.warn("Preset ".concat(e," has already been defined, ignoring")):_presets[e]=t,null};module.exports={exec:exec,getCondition:getCondition,getPreset:getPreset,addPreset:addPreset}},11:function(e,t){t.isTruthyValue=function(e){return!(!e&&0!==parseInt(e,10))}},139:function(e,t,n){(function(t){var r=n(165),o=n(4);e.exports=function(){var e=r(),n=o.pickAttrsStdFn({vm:e,props:["label","name","style","vFn","isValidFn","required","checked"]});return{oninit:n,onbeforeupdate:n,view:function(){return t(".b-input-group",[t("label.b-input-group__control.b-checkbox.b-text--normal-weight",[t("input.b-checkbox__control".concat(e.style),e.attrs),t("span.b-checkbox__text",e.label)])])}}}}).call(this,n(1))},140:function(e,t,n){(function(t){var r=n(6),o=n(4),a=n(166);e.exports=function(){var e=a(),n=o.pickAttrsStdFn({vm:e,props:["title","options","placeholder","limitHeight","nextFn"]});return{oninit:n,onbeforeupdate:n,view:function(){return t("div",{"data-js-el":e.id},[e.title&&t("p.b-form-control__label b-form-control__label--size-base.b-form-control__label--tight",e.title),e.options&&t(".b-dropdown-simple.b-abstract-dropdown-component.b-abstract-dropdown-component--show-panel.b-input-group__wrapper",[t("a.b-dropdown-simple__button-toggle.b-dropdown-simple__option.b-link--block.b-link--no-underline[href=javascript:void(0);]",{onclick:e.toggleOptionsVisibility},[t("span.button-toggle-text","".concat(e.selectedOpt.name)),t("span.b-dropdown-simple__button-toggle-icon.b-icon.b-icon--down-chevron")]),t(".b-dropdown-simple__panel".concat(e.limitHeight),e.options.map(function(n){return t(".b-dropdown-simple__option-wrapper",[t("a.b-dropdown-simple__option.b-link--block.b-link--no-underline[href=javascript:void(0);]",{onclick:r.unapply({fn:r.partial({fn:e.next,args:{obj:n}}),props:["e"]})},n.name)])}))])])}}}}).call(this,n(1))},141:function(e,t,n){(function(t){var r=n(168),o=n(4);e.exports=function(){var e=r(),n=o.pickAttrsStdFn({vm:e,props:["text","type","style","htmlTag","nextFn"]});return{oninit:n,onbeforeupdate:n,view:function(){return e.text&&t("".concat(e.htmlTag,".b-button").concat(e.style,".b-text.b-link--no-underline"),e.attrs,[t("span","".concat(e.text)),e.iconStyle&&t("i".concat(e.iconStyle))])}}}}).call(this,n(1))},142:function(e,t,n){(function(t){e.exports={view:function(){return t(".b-spinner",[t(".b-spinner__child.b-spinner__child--1"),t(".b-spinner__child.b-spinner__child--2"),t(".b-spinner__child.b-spinner__child--3"),t(".b-spinner__child.b-spinner__child--4"),t(".b-spinner__child.b-spinner__child--5"),t(".b-spinner__child.b-spinner__child--6")])}}}).call(this,n(1))},143:function(e,t){e.exports={unescape:function(e){if(e)return e.replace("&#43;","+")},pagination:function(e,t){for(var n,r=t,o=e-5,a=e+5+1,i=[],l=[],s=1;s<=r;s++)(1==s||s==r||s>=o&&s<a)&&i.push(s);for(var c=0,u=i;c<u.length;c++){var p=u[c];n&&(p-n==2?l.push(n+1):p-n!=1&&l.push("...")),l.push(p),n=p}return l}}},144:function(e,t,n){(function(t){var r=n(6),o=n(155),a=n(9),i=n(139),l=n(140),s=n(141),c=n(142);e.exports=function(){var e=new o;return{view:function(){return t(".b-component",[e.formState!=e.formStateCompleted&&t("form.b-form.b-component",[t(".b-component",[t("p",["With your subscription you will receive the latest News & Opinion pieces straight to your inbox. You can select the ",t("a.b-link",{href:"https://news-opinion.sydney.edu.au/link/id/zzzz5a6561263f3b6488/page.html"},"categories and email frequency")," that suits you."]),t("p",["Please fill in the mandatory fields (your email and preferred subscription frequency). We will handle your information in accordance with our ",t("a.b-link",{href:"https://news-opinion.sydney.edu.au/link/id/zzzz5a38953615fd7320/page.html"},"privacy policy"),"."]),t("p","Please enter your details to subscribe.")]),t("h3.b-title.b-title--h3","Details to subscribe"),t(".grid.grid--center",[t(".1/3--mobile-up.grid__cell",[t("p.b-form-control__label","Email*")]),t(".2/3--mobile-up.grid__cell",[t(a,{label:"Email",name:"EMAIL",type:"email",required:"true",presets:'["email"]',vFn:r.partial({fn:e.setItem,args:{key:"EMAIL"}}),isValidFn:function(t){!t&&e.setItem({key:"EMAIL",v:null})}})])]),t(".grid.grid--center",[t(".1/3--mobile-up.grid__cell",[t("p.b-form-control__label","First name")]),t(".2/3--mobile-up.grid__cell",[t(a,{label:"First name",name:"FIRST_NAME",vFn:r.partial({fn:e.setItem,args:{key:"FIRST_NAME"}})})])]),t(".grid.grid--center",[t(".1/3--mobile-up.grid__cell",[t("p.b-form-control__label","Last name / Surname")]),t(".2/3--mobile-up.grid__cell",[t(a,{label:"Last name",name:"LAST_NAME",vFn:r.partial({fn:e.setItem,args:{key:"LAST_NAME"}})})])]),t(".grid.grid--center",[t(".1/3--mobile-up.grid__cell",[t("p.b-form-control__label","Primary role / Affiliation")]),t(".2/3--mobile-up.grid__cell",[t(l,{options:e.roles,placeholder:e.rolePlaceholder,nextFn:r.partial({fn:e.selectedRole,args:{key:"ROLE"}})})])]),t("h3.b-title.b-title--h3","Subscription categories"),t("p","Please select the categories you would like to subscribe to"),t(".grid",e.categories.map(function(n){return t(".1/2--mobile-up.1/3--sm-desk-up.grid__cell",[t(i,Object.assign({label:n.name,name:n.value,vFn:r.partial({fn:e.selectedCategory,args:{category:n}})},e.getCategoryInitialCheckedState(n)))])})),t("p","Please select a how often you would like to receive news articles."),t("h3.b-title.b-title--h3","Subscription frequency"),t("p","How often would you like to receive news articles?"),t(".grid",e.frequencies.map(function(n){return t(".1/2--mobile-up.".concat(e.getFrequencySpace(n),"--sm-desk-up.grid__cell"),[t(i,{label:n.name,name:n.value,vFn:r.partial({fn:e.selectedFrequency,args:{frequency:n}})})])})),t(".b-component"),e.formState!=e.formStateLoading&&t(".b-form__button-group",[t(s,{text:"Submit",htmlTag:"a",nextFn:e.submit})]),e.formState==e.formStateLoading&&t(".grid",[t(".1/2.1/3--mobile-up.1/4--tablet-up.grid__cell",[t(c)])])]),e.formState==e.formStateCompleted&&t(".b-component",[t("h3.b-title.b-title--first.b-title--h3","Thank you"),t("p",e.resultMsg)])])}}}}).call(this,n(1))},145:function(e,t,n){(function(t){var r=n(169),o=n(9),a=n(139),i=n(172),l=n(140),s=n(141),c=n(142),u=n(6),p=n(143),d=n(7);e.exports=function(){var e=new r,n=document.querySelector(d.ADVANCED_SEARCH_ID).dataset,f=n.pageType||d.PAGE_TYPE_ADVANCED_SEARCH,m={domainId:parseInt(n.domainId),orgUnitCode:n.orgUnitCode}||d.FACULTIES[0];console.log("pageType",f),console.log("faculty",m),e.pageType=f,e.faculty=m;return{view:function(){return t(".b-component",[t("form.b-form.b-component",[t(".grid.grid--center",[t(".grid__cell",[t(o,{label:"Search term(s)",name:"Search terms",required:"true",vFn:e.searchTerms})])]),t(".b-component--tight"),t(".grid",[t(".4/4--mobile-up.grid__cell",[t(i,{options:e.searchType,groupName:"searchType",vFn:u.partial({fn:e.selectOptions,args:{queryKey:"searchType"}})})])]),e.visible(e.theme.visible)&&t(".grid",[t(".1/4--mobile-up.grid__cell",[t("p.b-form-control__label",e.theme.label)]),t(".2/4--mobile-up.grid__cell",[t(l,{options:e.theme.options,nextFn:u.partial({fn:e.selectOptions,args:{queryKey:e.theme.queryKey}})})])]),t(".b-component--tighter"),e.visible(e.keyword.visible)&&t(".grid",[t(".1/4--mobile-up.grid__cell",[t("p.b-form-control__label",e.keyword.label)]),t(".2/4--mobile-up.grid__cell",[t(l,{options:e.keyword.options,limitHeight:e.approach.options&&e.approach.options.length>7,nextFn:u.partial({fn:e.selectOptions,args:{queryKey:e.keyword.queryKey}})})])]),t(".b-component--tighter"),e.visible(e.clinicalspecialty.visible)&&t(".grid",[t(".1/4--mobile-up.grid__cell",[t("p.b-form-control__label",e.clinicalspecialty.label)]),t(".2/4--mobile-up.grid__cell",[t(l,{options:e.clinicalspecialty.options,limitHeight:e.clinicalspecialty.options&&e.clinicalspecialty.options.length>7,nextFn:u.partial({fn:e.selectOptions,args:{queryKey:e.clinicalspecialty.queryKey}})})])]),t(".b-component--tighter"),e.visible(e.approach.visible)&&t(".grid",[t(".1/4--mobile-up.grid__cell",[t("p.b-form-control__label",e.approach.label)]),t(".2/4--mobile-up.grid__cell",[t(l,{options:e.approach.options,limitHeight:e.approach.options&&e.approach.options.length>7,nextFn:u.partial({fn:e.selectOptions,args:{queryKey:e.approach.queryKey}})})])]),t(".b-component--tighter"),e.visible(e.internationallinkage.visible)&&t(".grid",[t(".1/4--mobile-up.grid__cell",[t("p.b-form-control__label",e.internationallinkage.label)]),t(".2/4--mobile-up.grid__cell",[t(l,{options:e.internationallinkage.options,limitHeight:e.internationallinkage.options&&e.internationallinkage.options.length>7,nextFn:u.partial({fn:e.selectOptions,args:{queryKey:e.internationallinkage.queryKey}})})])]),t(".b-component--tighter"),t(".grid",[t(".1/4--mobile-up.grid__cell",[t("p.b-form-control__label","Profile Type")]),t(".2/4--mobile-up.grid__cell",[t(".grid",e.profiletype.map(function(n){return t(".2/4--mobile-up.grid__cell",[t(a,{label:n.name,name:n.value,checked:n.checked,vFn:u.partial({fn:e.selectProfile,args:{queryKey:n.name,profile:n}})})])}))])])]),t(".b-component",[t(s,{text:"Search",type:"search",nextFn:e.submit})]),e.formState==e.formStateLoading&&t(".grid",[t(".1/2.1/3--mobile-up.1/4--tablet-up.grid__cell",[t(c)])]),e.formState==e.formStateResult&&t(".grid__cell",[t(".grid",[t(".3/4--mobile-up.grid__cell",[t("h3.b-title.b-title--h3","Search Result"),t("h4.b-title.b-title--h4","".concat(e.totalMatch," results match your search sorted by ").concat(e.sortedBy))]),t(".1/4--mobile-up.grid__cell",[t("h4.b-title.b-title--h4","Sort By"),t(l,{options:e.sortByList,nextFn:u.partial({fn:e.selectSort,args:{queryKey:"sortBy"}})})]),t("hr.b-horizontal-line b-horizontal-line--heavy")]),t("grid__cell",e.responseSearchResult.map(function(e){return t(".grid",t(".4/5--mobile-up.grid__cell",[t("a.b-fact-tile",{href:e.profileUrl,target:"_blank"},[t(".b-icon-link__wrapper",[t("h3.b-text--bold b-icon-link--standard b-title--first b-title--h4","".concat(e.salutation," ").concat(e.staffName))])]),t("",[t(".b-text--size-base b-text b-text--colour-dark",e.title)]),t(".b-box--padding-top",[t(".b-text--size-base b-text b-text--colour-dark","Telephone: ",[t("a",{href:"tel:".concat(p.unescape(e.phoneNumber)),innerHTML:p.unescape(e.phoneNumber)})]),t(".b-text--size-base b-text b-text--colour-dark","Email: ",[t("a",{href:"mailto:".concat(e.email),innerHTML:e.email})])]),t(".b-box--padding-xs-top",[t(".b-box--padding-sm-top",e.bio)])]),t(".1/5--mobile-up.grid__cell",[t("img.b-image__image",{src:"true"==e.doesHavePhoto?"http://api.profiles.sydney.edu.au/AcademicProfiles/profile/resource?urlid=".concat(e.urlId):""})]),t("hr.b-horizontal-line b-horizontal-line--heavy"))})),t(".grid",e.lastPage>1&&[t(".4/4--mobile-up.grid__cell",[t("a.pagination__item.pagination__item--highlight.pagination__item--previous",{onclick:function(){return e.moveToPage(e.currentPage-1)},style:"cursor: pointer;"}),e.generatePageLinks(),t("a.pagination__item.pagination__item--highlight.pagination__item--next",{onclick:function(){return e.moveToPage(e.currentPage+1)},style:"cursor: pointer;"})])])])])}}}}).call(this,n(1))},146:function(e,t,n){n(147),e.exports=n(151)},147:function(e,t,n){n(148),n(149),n(150)},150:function(e,t){},151:function(e,t,n){"use strict";n.r(t),function(e){var t=n(144),r=n.n(t),o=n(145),a=n.n(o);[{selector:"#b-js-news-subscription",element:r.a},{selector:"#b-js-apo-advanced-search",element:a.a}].forEach(function(t){document.body.querySelector(t.selector)&&e.mount(document.body.querySelector(t.selector),t.element)})}.call(this,n(1))},155:function(e,t,n){(function(t){function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=n(2),a=n(156);e.exports=function(){var e="formStateDefault",n="",i={get rolePlaceholder(){return a.rolePlaceholder},get roles(){return a.roles},get categories(){return a.categories},get frequencies(){return a.frequencies},get subscription(){return a.subscription},get formState(){return e},get resultMsg(){return n},formStateCompleted:"formStateCompleted",formStateLoading:"formStateLoading",formStateDefault:"formStateDefault",setItem:function(e){var t=e.key,n=e.v;i.subscription.st[t]=n},selectedRole:function(e){var t=e.key,n=e.obj;i.subscription.cu[t]=n.value},selectedCategory:function(e){var t=e.category,n=e.v;t.selected=n},selectedFrequency:function(e){var t=e.frequency,n=e.v;t.selected=n},getFrequencySpace:function(e){return e.name.length>8?"2/5":"1/5"},getCategoryInitialCheckedState:function(e){return e.isInit?{}:(e.isInit=!0,{checked:e.selected})},submit:function(){if(i.subscription.st.EMAIL){var a=[],l=o.filter(i.frequencies,function(e){return!0===e.selected});if(l&&0!=l.length){a=l.map(function(e){return e.value});var s=o.filter(i.categories,function(e){return!0===e.selected});s&&s.length>0&&(a=[].concat(r(a),r(s.map(function(e){return e.value}))),l.forEach(function(e){s.forEach(function(t){var n=t.frequencies.find(function(t){return t.id===e.id});n&&a.push(n.value)})})),i.subscription.gr=a,e="formStateLoading",t.request({method:"POST",url:"https://news-opinion.sydney.edu.au/scripts/subscribe/subscribe.php",data:i.subscription}).then(function(t){n=t.message,e="formStateCompleted"}).catch(function(t){n="Submission failed, please contact the administrator.",e="formStateCompleted"})}else alert("Please select a how often you would like to receive news articles.")}else alert("You must enter a valid email address")}};return i}}).call(this,n(1))},156:function(e,t,n){n(2);e.exports={get rolePlaceholder(){return"Select role / affiliation"},roles:[{name:"Media",value:"Media"},{name:"Industry partner",value:"Industry partner"},{name:"Student",value:"Student"},{name:"Alumni",value:"Alumni"},{name:"Staff",value:"Staff"},{name:"Government",value:"Government"},{name:"Donor",value:"Donor"},{name:"Parent",value:"Parent"},{name:"Other",value:"Other"}],categories:[{name:"Arts & culture",value:"zzzz595616f7e6a78495",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc1e0e8735069"},{id:"daily",value:"zzzz5a3702bb90517529"}]},{name:"Business & economics",value:"zzzz5a0a6f81a8ff3776",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc2163d971834"},{id:"daily",value:"zzzz5a3702c505fe0840"}]},{name:"Campus & community",value:"zzzz595617071c946075",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc317d999e416"},{id:"daily",value:"zzzz5a3702cff2c6b727"}]},{name:"Law & society",value:"zzzz5956171da24b8321",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc313c8d94718"},{id:"daily",value:"zzzz5a3702cddba7c308"}]},{name:"Government & politics",value:"zzzz5956172c66168917",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc33051329268"},{id:"daily",value:"zzzz5a3702d9298e3945"}]},{name:"Health & medicine",value:"zzzz595617421c642249",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc366791ff297"},{id:"daily",value:"zzzz5a3702f64f98a816"}]},{name:"Science & technology",value:"zzzz595617487b9e1332",selected:!0,frequencies:[{id:"asap",value:"zzzz5a2dc363e7aed248"},{id:"daily",value:"zzzz5a3702ecb33f8553"}]},{name:"Podcasts",value:"zzzz5a30559f91b82171",selected:!0,frequencies:[{id:"asap",value:"zzzz5a305c55385b7319"},{id:"daily",value:"zzzz5a3703001abca019"}]},{name:"Videos",value:"zzzz5a3055915ca4a188",selected:!0,frequencies:[{id:"asap",value:"zzzz5a305c43dbbe9555"},{id:"daily",value:"zzzz5a3702feb85a3149"}]}],frequencies:[{id:"asap",name:"Immediately (as published)",value:"zzzz5a14bcf11529f082",selected:!1},{id:"daily",name:"Daily",value:"zzzz5a14bce698ce5299",selected:!1},{id:"weekly",name:"Weekly",value:"zzzz5a14bcde85376919",selected:!1},{id:"monthly",name:"Monthly",value:"zzzz5a14bcd0ad813521",selected:!1}],subscription:{st:{},cu:{},gr:[]}}},157:function(e,t,n){var r=n(3),o=n(10);e.exports=function(){var e="text-input-".concat(r.random()),t="",n="",a="",i="",l="text",s="",c=!1,u=null,p=null,d={};return{get id(){return e},set id(t){e=t||e},get name(){return t},set name(e){t=e},get label(){return n},set label(e){n=e},get style(){return a||""},set style(e){a=e},set type(e){void 0===e&&(e="text"),l=e},set required(e){c=!!e,d.required=c},set presets(e){s=e,d.presets=e},set vFn(e){u=e},set isValidFn(e){p=e},get attrs(){return Object.assign({id:e},{placeholder:n},t&&{name:t},{"data-type":l},{"data-required":c},s&&{"data-presets":s},{onkeyup:function(e){u&&u({v:e.target.value}),p&&(i=o.exec({value:e.target.value,options:d}),p(!i))}})},get tooltipAttrs(){return{"data-balloon":i||"","data-balloon-pos":"up"}},get tooltipState(){return i?".b-tooltip--force-show":""}}}},158:function(e,t,n){var r=n(11),o=n(159),a=n(160),i=n(162),l=n(163),s=n(164),c=n(3);e.exports={booleans:r,colors:o,dates:a,images:i,numbers:l,objects:s,strings:c}},159:function(e,t,n){var r=n(11);t.rgb2rgba=function(e,t){return e?(t=r.isTruthyValue(t)?t:1,e.replace(/rgb/i,"rgba").replace(/\)/i,", ".concat(t,")"))):null};t.hex2rgb=function(e){return e?(n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,e=e.toString().replace(n,function(e,t,n,r){return t+t+n+n+r+r}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?"rgb(".concat(parseInt(t[1],16),",").concat(parseInt(t[2],16),", ").concat(parseInt(t[3],16),")").replace(" ",""):null):null;var t,n};t.hex2rgbObj=function(e){return e?(n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,e=e.toString().replace(n,function(e,t,n,r){return t+t+n+n+r+r}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null):null;var t,n};t.rgb2hex=function(e,t,n){return e&&t&&n?e>255||t>255||n>255?null:e<0||t<0||n<0?null:"#"+(r=function(e){var t;return 1===(t=e.toString(16)).length?"0"+t:t})(e)+r(t)+r(n):null;var r};t.colorLuminance=function(e,t){if(!this.hex2rgb(e)||t>1||t<-1)return null;var n,r,o,a="#";for((e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0,r=o=0;o<=2;r=o+=1)n=parseInt(e.substr(2*r,2),16),a+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16))).substr(n.length);return a}},160:function(e,t,n){var r=n(0),o=n(2);t.getDateUTCFormat=function(e){return r.utc(e)._f};t.getCurrentYear=function(){return(new Date).getFullYear()};t.getHour=function(e){return o.includes(this.getDateUTCFormat(e),"HH")?r(e).format("ha"):""};var a=function(e){return o.includes(this.getDateUTCFormat(e),"HH:mm")?r(e).format("h.mma").replace(".00",""):""};t.getHourMinute=a;var i=function(e){return"".concat(r(e).format("D")," ").concat(r(e).format("MMMM")," ").concat(r(e).format("YYYY"))};t.getDate=i;t.getDateTime=function(e){var t=i(e),n=a(e);return"".concat(n,", ").concat(t)};t.getHourAndDate=function(e){return o.isEmpty(this.getHour(e))?this.getDate(e):"".concat(this.getHour(e),", ").concat(this.getDate(e))};t.getHourMinuteAndDate=function(e){return o.isEmpty(this.getHour(e))?this.getDate(e):"".concat(this.getHourMinute(e),", ").concat(this.getDate(e))};t.convertSeconds=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mm:ss",n=Math.floor(e/60),r=e-60*n,o=Math.floor(e/3600);return Object.is(t,"mm:ss")?"".concat(l(n,"0",2)," : ").concat(l(r,"0",2)):"".concat(l(o,"0",2)," : ").concat(l(n,"0",2)," : ").concat(l(r,"0",2))};var l=function(e,t,n){return(new Array(n+1).join(t)+e).slice(-n)};t.pad=l},161:function(e,t,n){var r={"./af":12,"./af.js":12,"./ar":13,"./ar-dz":14,"./ar-dz.js":14,"./ar-kw":15,"./ar-kw.js":15,"./ar-ly":16,"./ar-ly.js":16,"./ar-ma":17,"./ar-ma.js":17,"./ar-sa":18,"./ar-sa.js":18,"./ar-tn":19,"./ar-tn.js":19,"./ar.js":13,"./az":20,"./az.js":20,"./be":21,"./be.js":21,"./bg":22,"./bg.js":22,"./bm":23,"./bm.js":23,"./bn":24,"./bn.js":24,"./bo":25,"./bo.js":25,"./br":26,"./br.js":26,"./bs":27,"./bs.js":27,"./ca":28,"./ca.js":28,"./cs":29,"./cs.js":29,"./cv":30,"./cv.js":30,"./cy":31,"./cy.js":31,"./da":32,"./da.js":32,"./de":33,"./de-at":34,"./de-at.js":34,"./de-ch":35,"./de-ch.js":35,"./de.js":33,"./dv":36,"./dv.js":36,"./el":37,"./el.js":37,"./en-SG":38,"./en-SG.js":38,"./en-au":39,"./en-au.js":39,"./en-ca":40,"./en-ca.js":40,"./en-gb":41,"./en-gb.js":41,"./en-ie":42,"./en-ie.js":42,"./en-il":43,"./en-il.js":43,"./en-nz":44,"./en-nz.js":44,"./eo":45,"./eo.js":45,"./es":46,"./es-do":47,"./es-do.js":47,"./es-us":48,"./es-us.js":48,"./es.js":46,"./et":49,"./et.js":49,"./eu":50,"./eu.js":50,"./fa":51,"./fa.js":51,"./fi":52,"./fi.js":52,"./fo":53,"./fo.js":53,"./fr":54,"./fr-ca":55,"./fr-ca.js":55,"./fr-ch":56,"./fr-ch.js":56,"./fr.js":54,"./fy":57,"./fy.js":57,"./ga":58,"./ga.js":58,"./gd":59,"./gd.js":59,"./gl":60,"./gl.js":60,"./gom-latn":61,"./gom-latn.js":61,"./gu":62,"./gu.js":62,"./he":63,"./he.js":63,"./hi":64,"./hi.js":64,"./hr":65,"./hr.js":65,"./hu":66,"./hu.js":66,"./hy-am":67,"./hy-am.js":67,"./id":68,"./id.js":68,"./is":69,"./is.js":69,"./it":70,"./it-ch":71,"./it-ch.js":71,"./it.js":70,"./ja":72,"./ja.js":72,"./jv":73,"./jv.js":73,"./ka":74,"./ka.js":74,"./kk":75,"./kk.js":75,"./km":76,"./km.js":76,"./kn":77,"./kn.js":77,"./ko":78,"./ko.js":78,"./ku":79,"./ku.js":79,"./ky":80,"./ky.js":80,"./lb":81,"./lb.js":81,"./lo":82,"./lo.js":82,"./lt":83,"./lt.js":83,"./lv":84,"./lv.js":84,"./me":85,"./me.js":85,"./mi":86,"./mi.js":86,"./mk":87,"./mk.js":87,"./ml":88,"./ml.js":88,"./mn":89,"./mn.js":89,"./mr":90,"./mr.js":90,"./ms":91,"./ms-my":92,"./ms-my.js":92,"./ms.js":91,"./mt":93,"./mt.js":93,"./my":94,"./my.js":94,"./nb":95,"./nb.js":95,"./ne":96,"./ne.js":96,"./nl":97,"./nl-be":98,"./nl-be.js":98,"./nl.js":97,"./nn":99,"./nn.js":99,"./pa-in":100,"./pa-in.js":100,"./pl":101,"./pl.js":101,"./pt":102,"./pt-br":103,"./pt-br.js":103,"./pt.js":102,"./ro":104,"./ro.js":104,"./ru":105,"./ru.js":105,"./sd":106,"./sd.js":106,"./se":107,"./se.js":107,"./si":108,"./si.js":108,"./sk":109,"./sk.js":109,"./sl":110,"./sl.js":110,"./sq":111,"./sq.js":111,"./sr":112,"./sr-cyrl":113,"./sr-cyrl.js":113,"./sr.js":112,"./ss":114,"./ss.js":114,"./sv":115,"./sv.js":115,"./sw":116,"./sw.js":116,"./ta":117,"./ta.js":117,"./te":118,"./te.js":118,"./tet":119,"./tet.js":119,"./tg":120,"./tg.js":120,"./th":121,"./th.js":121,"./tl-ph":122,"./tl-ph.js":122,"./tlh":123,"./tlh.js":123,"./tr":124,"./tr.js":124,"./tzl":125,"./tzl.js":125,"./tzm":126,"./tzm-latn":127,"./tzm-latn.js":127,"./tzm.js":126,"./ug-cn":128,"./ug-cn.js":128,"./uk":129,"./uk.js":129,"./ur":130,"./ur.js":130,"./uz":131,"./uz-latn":132,"./uz-latn.js":132,"./uz.js":131,"./vi":133,"./vi.js":133,"./x-pseudo":134,"./x-pseudo.js":134,"./yo":135,"./yo.js":135,"./zh-cn":136,"./zh-cn.js":136,"./zh-hk":137,"./zh-hk.js":137,"./zh-tw":138,"./zh-tw.js":138};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=161},162:function(e,t){var n=function(e){return e.width/e.height};t.getRatio=n;t.getImageCenterParams=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.originParams;r&&(o={width:e.width,height:e.height,ratio:n(e)});var a={originParams:o,ratio:o.ratio||n(e),width:o.width||e.width,height:o.height||e.height,positionX:0,positionY:0},i=t.offsetWidth;return a.width>i?(a.width=i,a.height=a.width/a.ratio):a.positionX=(i-e.width)/2,a}},163:function(e,t){e.exports={isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},stripNonNumericCharacters:function(e){return parseFloat(e.toString().replace(/[^\d.-]/g,""),10)}}},164:function(e,t,n){var r=n(2);e.exports={filterObjectProperties:function(e,t){var n={};if(!r.isUndefined(e)&&!r.isUndefined(t)){if(r.isObject(e))return r.forOwn(e,function(e,r){t.hasOwnProperty(r)&&(n[r]=e)}),n;console.warn("invalid object to convert: ",e)}},empty:function(e){for(var t in e)e.hasOwnProperty(t)&&delete e[t];return e},makeEnum:function(e,t){return new Proxy(t,{set:function(){throw new TypeError("Enum is read only")},get:function(n,r){if("nameOf"===r)return function(n){for(var r=Object.keys(t),o=0;o<r.length;o+=1){var a=r[o];if(t[a]===n)return"".concat(e,".").concat(a)}}.bind(n);if(!(r in n))throw new ReferenceError('Unknown enum key "'.concat(r,'"'));return Reflect.get(n,r)},deleteProperty:function(){throw new TypeError("Enum is read only")}})}}},165:function(e,t,n){var r=n(3),o=n(10);e.exports=function(){var e="form-checkbox-".concat(r.random()),t="",n="",a="",i=!1,l=!1,s=null,c=null,u={};return{get id(){return e},get name(){return t},set name(e){t=e},get label(){return n},set label(e){n=e},get style(){return a||""},set style(e){a=e},get checked(){return i},set checked(e){i=!!e},set required(e){l=!!e,u.required=l},set vFn(e){s=e},set isValidFn(e){c=e},get attrs(){return Object.assign({id:e},t&&{name:t},{type:"checkbox"},{"data-required":l},{checked:i},{onclick:function(e){i=!i,s&&s({v:e.target.checked}),c&&c(!o.exec({value:e.target.checked,options:u}))}})}}}},166:function(e,t,n){(function(t){var r=n(167),o=n(3),a=n(2);e.exports=function(){var e="dropdown-".concat(o.random()),n="",i=[],l="Select",s=!1,c=!1,u=void 0,p=void 0,d=void 0;return r.documentClick$.subscribe(function(e){Object.is(e.target,p)||(c=!1,t.redraw()),p=void 0}),{get id(){return e},get title(){return n},set title(e){n=e},get selectedOpt(){return u||{name:l,value:""}},get options(){return c?i:[]},set options(e){a.isEqual(i,e)||(i=e,c=!1,u=void 0)},get placeholder(){return l},set placeholder(e){Object.is(l,e)||Object.is(e,void 0)||(l=e)},get limitHeight(){return s?".b-dropdown-simple__panel--limit-height":""},set limitHeight(e){s=!!e},set nextFn(e){d=e},toggleOptionsVisibility:function(e){p=e.target,c=!c},next:function(e){var t=e.e,n=e.obj;p=t.target,c=!1,Object.is(u,n)||(u=n,d&&d({e:t,obj:n}))}}}}).call(this,n(1))},167:function(e,t,n){var r=(0,n(174).fromEvent)(document,"click");e.exports={documentClick$:r}},168:function(e,t,n){var r=n(3);e.exports=function(){var e="button-".concat(r.random()),t="",n="",o="button",a="",i={primary:".b-button--primary",secondary:".b-button--secondary",tertiary:".b-button--tertiary"},l={search:".b-icon.b-icon--search.b-icon--side-right"},s=null;return{get id(){return e},get style(){return t?i[t]:i.primary},set text(e){a=e},get text(){return a},set style(e){t=e},set nextFn(e){s=e},set type(e){n=e},set htmlTag(e){o=e},get htmlTag(){return o},get attrs(){return Object.assign({"data-js-el":e},s&&{onclick:s},"submit"==n&&{type:n},"a"==o&&{href:"javascript:void(0);"},null)},get iconStyle(){return l[n]}}}},169:function(e,t,n){(function(t){var r=n(170),o=n(7),a=n(171),i=n(143);e.exports=function(){var e="formStateDefault",n={},l=0,s={},c=r.sortBy[0],u=0,p=o.START_INDEX,d=o.FIRST_PAGE,f=o.PAGE_TYPE_ADVANCED_SEARCH,m=o.FACULTIES[0],g={get pageType(){return f},set pageType(e){f=e},get faculty(){return m},set faculty(e){m=e,a.setFaculty(m)},get pageLinks(){for(var e=[],t=o.FIRST_PAGE;t<=u;t++)e.push({title:t});return e},get currentPage(){return d>=o.FIRST_PAGE&&d<=u?d:d>u?u:o.FIRST_PAGE},get lastPage(){return u},get profiletype(){return r.profileTypes},get searchType(){return r.searchTypes},get sortedBy(){return console.log("_sortedBy",c),r.sortBy.find(function(e){return e.value==c.value}).name},get sortByList(){return r.sortBy},get totalMatch(){return l},get responseSearchResult(){return s},get resultMsg(){return""},get formState(){return e},get theme(){return a.formDropDowns.theme},get keyword(){return a.formDropDowns.keyword},get clinicalspecialty(){return a.formDropDowns.clinicalspecialty},get approach(){return a.formDropDowns.approach},get internationallinkage(){return a.formDropDowns.internationallinkage},formStateLoading:"formStateLoading",formStateDefault:"formStateDefault",formStateResult:"formStateResult",generatePageLinks:function(){return i.pagination(g.currentPage,g.lastPage).map(function(e){return t("a.pagination__item.".concat(g.active(e)),{innerHTML:e,style:"cursor: pointer;",onclick:function(){return g.moveToPage(e)}})})},active:function(e){return g.currentPage==e?"pagination__item--active":""},searchTerms:function(e){var t=e.v;n.searchTerms=t},selectOptions:function(e){var t=e.queryKey,r=e.obj;console.log("selectOptions and key - ".concat(t," -"),r),n[t]=r.value},selectSort:function(e){var t=e.queryKey,r=e.e,o=e.obj;console.log("selectSort and key - ".concat(t," -"),o),console.log("e",r),c=o,n[t]=o.value,g.submit(),d=1},selectProfile:function(e){var t=e.queryKey,r=e.profile,o=e.v;console.log("selectProfile and key - ".concat(t," -"),o),r.checked=o,n[t]=o},moveToPage:function(e){console.log("moveToPage()",e),d=e,e>0&&e<=u&&(p=(e-o.FIRST_PAGE)*o.ITEMS_PER_PAGE),g.submit(null,p)},visible:function(e){return e.includes(f)},submit:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e="formStateLoading",a.totalMatchPerformSearch(n,r).then(function(t){console.log("submit() response",t),e="formStateResult",l=t[0],s=t[1],u=Math.ceil(l/o.ITEMS_PER_PAGE)})}};return g}}).call(this,n(1))},170:function(e,t){e.exports={profileTypes:[{name:"Academic",value:"1",checked:!0},{name:"HDR",value:"2"}],searchTypes:[{name:"With at least one of the words",value:"1"},{name:"With all of the words",value:"2"},{name:"With the exact phrase",value:"3"}],sortBy:[{name:"Relevance",value:"byRelevance"},{name:"Surname",value:"bySurname"},{name:"Faculty",value:"byFaculty"},{name:"Theme",value:"byTheme"}]}},171:function(e,t,n){(function(t){var r=n(2),o=n(7),a=function(e){var t=e.id;return{name:e.name,value:t}},i=o.FACULTIES[0],l={theme:{label:"Theme",api:"".concat(o.WS_BASE_URL,"/getThemeOptions/").concat(i.domainId),options:null,optionTransformFn:a,queryKey:"+themeId",visible:[o.PAGE_TYPE_ADVANCED_SEARCH]},keyword:{label:"Keyword",api:"".concat(o.WS_BASE_URL,"/getKeywordOptions/").concat(i.orgUnitCode),options:null,optionTransformFn:a,queryKey:"+keywordId",visible:[o.PAGE_TYPE_ADVANCED_SEARCH]},clinicalspecialty:{label:"Clinical Specialty",api:"".concat(o.WS_BASE_URL,"/getNewKeywordsByGroup/").concat(i.domainId),options:null,optionTransformFn:a,queryKey:"+clinicalSpecialtyId",visible:[o.PAGE_TYPE_ADVANCED_SEARCH]},approach:{label:"Approach",api:"".concat(o.WS_BASE_URL,"/getApproachOptions/").concat(i.orgUnitCode),options:null,optionTransformFn:a,queryKey:"+approachId",visible:[o.PAGE_TYPE_ADVANCED_SEARCH]},internationallinkage:{label:"International linkage",api:"".concat(o.WS_BASE_URL,"/getCountryOptions/").concat(i.orgUnitCode),options:null,optionTransformFn:a,queryKey:"+countryId",visible:[o.PAGE_TYPE_ADVANCED_SEARCH]}};Promise.all(r.map(l,function(e){return new Promise(function(n){t.request({method:"GET",url:e.api,headers:{"Content-Type":"application/json"}}).then(function(t){e.options=r.map(t,e.optionTransformFn),e.options.splice(0,0,{name:"Select",value:o.SELECTOR_IGNORE_INDEX}),n()})})})).then(t.redraw).catch(function(e){console.error("APO fail to fetch dropdown options from web service: ",e)});var s=function(e){return new Promise(function(n){t.request({method:"GET",url:"".concat(o.WS_BASE_URL,"/").concat(o.WS_SEARCH_RESULT_SIZE_METHOD,"/").concat(e),headers:{"Content-Type":"application/json"}}).then(function(e){n(e)}).catch(function(e){console.error("APO fail to fetch from web service: ",e)})})},c=function(e,n,r,a,i){return new Promise(function(l){console.log("doSearch() queryString",e),console.log("sort",a),console.log("startIndex",n),console.log("range",r),console.log("isReverse",i),console.log("queryString",e),t.request({method:"GET",url:"".concat(o.WS_BASE_URL,"/").concat(o.WS_SEARCH_METHOD,"/").concat(e,"/").concat(n,"/").concat(r,"/").concat(a,"/").concat(i),headers:{"Content-Type":"application/json"}}).then(function(e){l(e)}).catch(function(e){console.error("APO fail to fetch from web service: ",e)})})},u=function(e){return r.pick(e,"sortBy").sortBy||"byRelevance"},p=function(e,t){var n=[],r=d(t),o=f(t),a=m(t);return console.log("jobType",r),console.log("searchTerms",o),console.log("dropdownOption",a),r&&r.length>0&&n.push(r),a&&a.length>0&&n.push(a),o&&o.length>0&&n.push(o),console.log("options",n.flat()),"+orgUnitCode:".concat(e," ").concat(n.flat().join(" "))},d=function(e){var t=[];return r.pick(e,"Academic").Academic&&t.push("+jobType:1"),r.pick(e,"HDR").HDR&&t.push("+jobType:2"),console.log("getJobType options",t),t},f=function(e){var t=r.pick(e,"searchTerms").searchTerms,n=[];if(t){var a=function(e){return r.pick(e,"searchType").searchType||"1"}(e);console.log("searchOption",a);var i=o.SEARCH_FIELDS,l=t.split(" ");if("1"==a)l.forEach(function(e){i.forEach(function(t){n.push("".concat(t,":").concat(e))})});else if("2"==a){var s=l.map(function(e){return"+".concat(e)}).join(" ");i.forEach(function(e){n.push("".concat(e,":(").concat(s,")"))})}else i.forEach(function(e){n.push("".concat(e,":'").concat(t,"'"))});return"+(".concat(n.join(" "),")")}return null},m=function(e){var t=[];return Object.keys(e).forEach(function(n){n.indexOf("+")>=0&&e[n]!=o.SELECTOR_IGNORE_INDEX&&t.push("".concat(n,":").concat(e[n]))}),t};e.exports={formDropDowns:l,totalMatchPerformSearch:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.START_INDEX,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.ITEMS_PER_PAGE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"false";console.log("totalMatchPerformSearch()",e),console.log("_faculty",i),console.log("_faculty.domainId",i.domainId),console.log("_faculty.orgUnitCode",i.orgUnitCode);var a=p(i.orgUnitCode,e),l=u(e);return Promise.all([s(a),c(a,t,n,l,r)])},setFaculty:function(e){return i=e}}}).call(this,n(1))},172:function(e,t,n){(function(t){var r=n(173),o=n(4);e.exports=function(){var e=r(),n=o.pickAttrsStdFn({vm:e,props:["vFn","title","groupName","options","isStyleInline"]});return{oninit:n,onbeforeupdate:n,view:function(){return t(".b-form-control",[e.title&&t("p.b-form-control__label",e.title),e.options&&t(".b-form-control__wrapper",e.options.map(function(n){return t(".b-input-group".concat(e.isStyleInline?".b-input-group--inline":""),[t("label.b-input-group__control b-radio b-text--normal-weight",[t("input.b-radio__control",e.getAttrs(n)),t("span.b-radio__text",n.name)])])}))])}}}}).call(this,n(1))},173:function(e,t,n){var r=n(3),o=n(2);e.exports=function(){var e="form-radio-".concat(r.random()),t="",n="",a=null,i=!0,l=null,s=null,c=!1;return{get id(){return e},get title(){return t},set title(e){t=e},set groupName(e){n=e},get options(){return l},set options(e){o.isEqual(l,e)||(c=!1,l=e,function(){if(!c){a=l[0];try{s&&s({obj:a})}catch(e){console.warn("radio button can not set default option value",e)}}}())},get isStyleInline(){return i},set isStyleInline(e){i=!!e},set vFn(e){s=e},getAttrs:function(e){return Object.assign({type:"radio"},{name:n},!c&&{checked:Object.is(l[0],e)},{onclick:function(t){c=!0,1==t.target.checked&&(a=e),s&&s({obj:e})}})}}}},3:function(e,t){e.exports={random:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=e&&e<=12?e:12,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r.length,a=0;a<t;a++)n+=r.charAt(Math.floor(Math.random()*o));return n},truncate:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.length>t,o=r?e.substr(0,t-1):e;return o=n&&r?o.substr(0,o.lastIndexOf(" ")):o,r?o+"...":o},removeEmptyHtmlTags:function(e,t){return e.replace(t,"").replace(/(<(?!\/)[^>]+>)+(<\/[^>]+>)/gm,"")},removeLineBreaks:function(e){return e.replace(/\r?\n|\r|&lt;br&gt;|<br>|<br\/>/g,"")},getMediaTimeStringFromSeconds:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=parseInt(e),n=Math.floor(e/3600);t-=3600*n;var r=Math.floor(t/60),o="";return n>0&&(o=o+n+" hour "),r>0&&(o=o+r+" min "),o=o+(t-=60*r)+" sec"},upperCaseFirstChar:function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}}},4:function(e,t,n){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=n(6);e.exports={pickAttrsStdFn:function(e){var t=e.vm,n=e.props;return function(e){for(var a=0,i=Object.entries(o.pick({v:e.attrs,props:n}));a<i.length;a++){var l=r(i[a],2),s=l[0],c=l[1];t[s]=c}}}}},7:function(e,t){e.exports={START_INDEX:0,FIRST_PAGE:1,ITEMS_PER_PAGE:10,SELECTOR_IGNORE_INDEX:-1,ADVANCED_SEARCH_ID:"#b-js-apo-advanced-search",MEDICINE_AND_HEALTH:"MEDICINE_AND_HEALTH",PAGE_TYPE_FIND_EXPERT:"find-expert",PAGE_TYPE_FIND_RESEARCHER:"find-researcher",PAGE_TYPE_ADVANCED_SEARCH:"advanced-search",FACULTIES:[{domainId:1,orgUnitCode:"5000053010M3000",domain:"MEDICINE_AND_HEALTH",domainName:"Medicine and Health Faculty"},{domainId:2,orgUnitCode:"5000053010M3000Q0000",domain:"PHARMACY",domainName:"Pharmacy"}],WS_BASE_URL:"http://api.profiles.sydney.edu.au/AcademicProfiles/interfaces/rest",WS_SEARCH_METHOD:"performSimpleAttributeSearch",WS_SEARCH_RESULT_SIZE_METHOD:"getSearchResultSize",SEARCH_FIELDS:["staffId","staffName","urlId","salutation","jobTitle","postNominal","phone","fax","email","building","domainId","domainName","orgUnitName","orgUnitCode","themeId","themeName","keywordId","keywordName","approachId","approachName","biography","researchInterest","teachingArea","countryId","countryName","isMediaExpert","studentId","supervisorId","doesHavePhoto","profileUrl","publication","grant","isPublishingActive","mediaKeywordName","mediaMobile","clinicalSpecialtyId","clinicalSpecialty","jobType","centreId","thesisTitle","thesisAbstract"]}},9:function(e,t,n){(function(t){var r=n(157),o=n(4);e.exports=function(){var e=r(),n=o.pickAttrsStdFn({vm:e,props:["label","name","type","style","vFn","isValidFn","required","presets"]});return{oninit:n,onbeforeupdate:n,view:function(){return t(".b-input-group",[t(".b-tooltip.b-input-group__tooltip".concat(e.tooltipState),e.tooltipAttrs),t(".b-input-group__wrapper.b-text--normal-weight",[t("label.sr-only",{for:e.id},e.label),t("input.b-text-input.b-input-group__control".concat(e.style),e.attrs)])])}}}}).call(this,n(1))}},[[146,1,2]]]);