1angular.module("YepCom").directive("forumap",function($state,Layout,$compile,ThemeLayer,iframeEvent,elementPreparer){return{restrict:"EA",replace:!0,template:'<div class="forumap extrablockngnew" extraname="forublockmap" elementid="elforumapouter" ng-style="sitecontent.elforumapouter.style" ng-class="sitecontent.elforumapouter.classes"></div>',link:function(scope,element,attrs){var key,keys,qObj,templ,_i,_len;if(scope.currentstate=$state.current.name,scope.getJsonFromUrl=function(url){var result,question=url.indexOf("?"),hash=url.indexOf("#");return-1===hash&&-1===question?{}:(-1===hash&&(hash=url.length),url=-1===question||hash===question+1?url.substring(hash):url.substring(question+1,hash),result={},url.split("&").forEach(function(part){var eq,key,to;part&&(key=-1<(eq=(part=part.split("+").join(" ")).indexOf("="))?part.substr(0,eq):part,part=-1<eq?decodeURIComponent(part.substr(eq+1)):"",-1===(eq=key.indexOf("["))?result[decodeURIComponent(key)]=part:(to=key.indexOf("]",eq),to=decodeURIComponent(key.substring(eq+1,to)),key=decodeURIComponent(key.substring(0,eq)),result[key]||(result[key]=[]),to?result[key][to]=part:result[key].push(part)))}),result)},scope.updateExtraTemplate=function(name){var id=scope.elemdata.extrablock_id.$oid;return Layout.updateTemplate(id,name).then(function(templ){return element.html(""),scope.elemdata.templatename=name,scope.elemdata.templatehtml=templ,$compile(ThemeLayer.rewriteNgStyle(templ,scope.elemdata.templatename,scope.sitecontent,scope))(scope,function(newelem){element.html(newelem),scope.initBaseDropZone()})})},(qObj=scope.getJsonFromUrl(scope.sitecontent.elforumap.framesrc))&&qObj.hasOwnProperty("q")&&(scope.sitecontent.elforumap.framesrc="https://www.google.com/maps/embed/v1/place?key="+(key="AIzaSyCgYy_tnyDXtSPFbmgJONK3yFiYKS-V-OE")+"&q="+qObj.q),scope.setIframeCurrent=function(event,elementid){return event.preventDefault(),event.stopPropagation(),event=$($(event.target).parents("yelem")).find("[elementid='"+elementid+"']"),elementid=elementPreparer.prepare(event[0]),iframeEvent.broadcast({evt:"setIframeCurrentEv",elem:elementid})},"preview2"===$state.current.name||"localpreview"===$state.current.name||"templatepreview"===$state.current.name||"previewimage"===$state.current.name){for(templ=scope.elemdata.templatehtml.replace(/\&\#39\;/g,"'"),_i=0,_len=(keys=Object.keys(scope.sitecontent)).length;_i<_len;_i++)key=keys[_i],scope.sitecontent[key]&&scope.sitecontent[key].text&&(templ=(templ=templ.replace("ng-model=\"sitecontent['"+key+"']['text']\"",'fomce="true" ng-bind-html="trustAsHtml(sitecontent[\''+key+"']['text'])\"")).replace('ng-model="sitecontent.'+key+'.text"','fomce="true" ng-bind-html="trustAsHtml(sitecontent.'+key+'.text)"'));return $compile(ThemeLayer.rewriteNgStyle(templ,scope.elemdata.templatename,scope.sitecontent,scope))(scope,function(newelem){element.html(newelem),scope.initBaseDropZone()})}if(scope.elemdata&&scope.elemdata.templatename&&(scope.updateExtraTemplate(scope.elemdata.templatename),scope.sitecontent.elforucover))return scope.sitecontent.elforucover.template=scope.elemdata.templatename}}});
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.