PageSourceSearch

https://www.pacourts.us/Themes/AOPC/assets/js/aopc.app.min.js?cache=639256579353445156

js pacourts.us collected 2026-09-24 08:44:44 UTC 429,160 bytes, 1 lines download raw bytes

1!function(){window.us=window.us||{},us.pacourts=us.pacourts||{},us.pacourts.navigation=us.pacourts.navigation||{},us.pacourts.utilities=us.pacourts.utilities||{},us.pacourts.views=us.pacourts.views||{}}.call(this),this.us=this.us||{},this.us.pacourts=this.us.pacourts||{},this.us.pacourts.templates=this.us.pacourts.templates||{},this.us.pacourts.templates.commonwealthOpinion=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results">\r\n            <caption>'+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:7,column:21},end:{line:7,column:32}}}):s)+'</caption>\r\n            <thead>\r\n                <tr class="title-row">\r\n                    <th scope="col" colspan="2">\r\n                        <strong>\r\n                            '+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:12,column:28},end:{line:12,column:39}}}):s)+'\r\n                            <br />\r\n                        </strong>\r\n                    </th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posted by:\r\n                    </th>\r\n                    <td headers="search_th_var posted_by_var">\r\n                        <span>'+u(typeof(s=null!=(s=d(n,"UserIdentifier")||(null!=e?d(e,"UserIdentifier"):e))?s:l)==p?s.call(r,{name:"UserIdentifier",hash:{},data:o,loc:{start:{line:24,column:30},end:{line:24,column:48}}}):s)+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion by:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_by_var">\r\n                        <span>'+u(typeof(s=null!=(s=d(n,"Author")||(null!=e?d(e,"Author"):e))?s:l)==p?s.call(r,{name:"Author",hash:{},data:o,loc:{start:{line:32,column:30},end:{line:32,column:40}}}):s)+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="date-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Date:\r\n                    </th>\r\n                    <td headers="search_th_var date_var">\r\n                        <span>'+u((d(n,"formatDate")||e&&d(e,"formatDate")||l).call(r,null!=e?d(e,"UploadDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:40,column:30},end:{line:40,column:60}}}))+"</span>\r\n                    </td>\r\n                </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:43,column:16},end:{line:70,column:25}}}))?a:"")+'            </tbody>\r\n        </table>\r\n        <input type="button" value="Edit" aopc-opinions-edit-button="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:73,column:69},end:{line:73,column:75}}}):s)+'" />\r\n    </div>\r\n'},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=t.lambda,r=t.escapeExpression,l=null!=e?e:t.nullContext||{},p=t.hooks.helperMissing,u="function",t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion Status:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">
1\r\n                        <span>'+r(s(null!=(a=null!=e?t(e,"PublicationType"):e)?t(a,"Description"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>'+r(s(null!=(a=null!=e?t(e,"PostType"):e)?t(a,"PostingTypeId"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="download-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Download:\r\n                    </th>\r\n                    <td headers="search_th_var download_var">\r\n                        <a class="link" href="/assets/opinions/Commonwealth/out/'+r(typeof(s=null!=(s=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?s:p)==u?s.call(l,{name:"FileName",hash:{},data:o,loc:{start:{line:65,column:80},end:{line:65,column:92}}}):s)+"?cb="+r(typeof(s=null!=(s=t(n,"FileVersion")||(null!=e?t(e,"FileVersion"):e))?s:p)==u?s.call(l,{name:"FileVersion",hash:{},data:o,loc:{start:{line:65,column:96},end:{line:65,column:111}}}):s)+'" target="_blank" aria-label="View File">\r\n                            <span title="'+r(typeof(s=null!=(s=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?s:p)==u?s.call(l,{name:"FileName",hash:{},data:o,loc:{start:{line:66,column:41},end:{line:66,column:53}}}):s)+'">&nbsp;</span>\r\n                        </a>\r\n                    </td>\r\n                </tr>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:75,column:9}}}))?n:""},useData:!0}),this.us.pacourts.templates.commonwealthOpinionEditForm=Handlebars.template({0:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"metadata"):e)?a(n,"publicationTypes"):n,{name:"each",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:38,column:36},end:{line:40,column:45}}}))?n:""},1:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <option value="'+s(a(null!=e?t(e,"Description"):e,e))+'">'+s(a(null!=e?t(e,"Description"):e,e))+"</option>\r\n"},2:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"metadata"):e)?a(n,"postTypes"):n,{name:"each",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o,loc:{start:{line:51,column:36},end:{line:53,column:45}}}))?n:""},3:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <option value="'+s(a(null!=e?t(e,"PostingTypeCode"):e,e))+'">'+s(a(null!=e?t(e,"PostingTypeId"):e,e))+"</option>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a,s=t.lambda,r=t.escapeExpression,l=null!=e?e:t.nullContext||{},p=t.hooks.helperMissing,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="one-col divided no-stripe" edit-opinion-form="'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"id"):a,e))+'">\r\n    <form method="post">\r\n        <fieldset>\r\n            <table class="search-results">\r\n                <thead>\r\n                    <tr class="title-row">\r\n                        <th id="search_th_var" scope="col" colspan="2">\r\n                            <textarea rows="3" cols="20" name="Caption" aopc-opinions-edit-caption>'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"caption"):a,e))+'</textarea>\r\n                        </th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr>\r\n                        <th id="posted_by_var" headers="search_th_var" scope="row">Posted by:</th>\r\n                        <td headers="search_th_var posted_by_var">\r\n                            <input type="text" name="UserID" id="UserIDEdit0" maxlength="50" value="'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"userIdentifier"):a,e))+'" aopc-opinions-edit-userid>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th id="opinion_by_var" headers="search_th_var" scope="row">Opinion by:</th>\r\n                        <td headers="search_th_var opinion_by_var">\r\n                            <input type="text" name="Author" id="AuthorEdit0" maxlength="200" value="'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"author"):a,e))+'" aopc-opinions-edit-author>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="date-row">\r\n                        <th id="date_var" headers="search_th_var" scope="row">Date:</th>\r\n                        <td headers="search_th_var date_var">
1\r\n                            <span id="DateEditContainer0">\r\n                                <input type="text" name="Date" id="DateEdit0" value="'+r((u(n,"formatDate")||e&&u(e,"formatDate")||p).call(l,null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"uploadDate"):a,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:29,column:85},end:{line:29,column:131}}}))+'" maxlength="10" aopc-opinions-edit-datepicker>\r\n                            </span>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th id="opinion_status_var" headers="search_th_var" scope="row">Opinion status:</th>\r\n                        <td headers="search_th_var opinion_status_var">\r\n                            <select name="Status" aopc-opinions-edit-status>\r\n'+(null!=(a=(u(n,"select")||e&&u(e,"select")||p).call(l,null!=(a=null!=(a=null!=(a=null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"postings"):a)?u(a,"0"):a)?u(a,"publicationType"):a)?u(a,"description"):a,{name:"select",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:37,column:32},end:{line:41,column:43}}}))?a:"")+'                            </select>\r\n\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th id="opinion_type_var" headers="search_th_var" scope="row">Opinion type:</th>\r\n                        <td headers="search_th_var opinion_type_var">\r\n                            <select name="Type" id="TypeEdit0" aopc-opinions-edit-typeselect>\r\n'+(null!=(a=(u(n,"select")||e&&u(e,"select")||p).call(l,null!=(a=null!=(a=null!=(a=null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"postings"):a)?u(a,"0"):a)?u(a,"postType"):a)?u(a,"postingTypeCode"):a,{name:"select",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:50,column:32},end:{line:54,column:43}}}))?a:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="download-row">\r\n                        <th id="download_var" headers="search_th_var" scope="row">\r\n                            Download:\r\n                        </th>\r\n                        <td headers="search_th_var download_var">\r\n                            <input type="file" id="FileEdit0" name="FileUpload" size="80" previous='+r(s(null!=(a=null!=(a=null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"postings"):a)?u(a,"0"):a)?u(a,"fileName"):a,e))+' aopc-opinions-edit-file>\r\n                        </td>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n            <div>\r\n                <br />\r\n                <input type="submit" name="FormButton" value="Submit" aopc-opinions-edit-submit="'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"id"):a,e))+'">\r\n                <input name="FormButton" value="Delete" aopc-opinions-delete-button="'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"id"):a,e))+'">\r\n                <input type="button" value="Cancel" aopc-opinions-cancel-button="'+r(s(null!=(a=null!=e?u(e,"selectedOpinion"):e)?u(a,"id"):a,e))+'">\r\n            </div>\r\n        </fieldset>\r\n    </form>\r\n</div>\r\n'},useData:!0}),this.us.pacourts.templates.commonwealthOpinionUnauthorized=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results">\r\n            <caption>'+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:7,column:21},end:{line:7,column:32}}}):s)+'</caption>\r\n            <thead>\r\n                <tr class="title-row">\r\n                    <th scope="col" colspan="2">\r\n                        <strong>\r\n                            '+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:12,column:28},end:{line:12,column:39}}}):s)+'\r\n                            <br />\r\n                        </strong>\r\n                    </th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posted by:\r\n                    </th>\r\n                    <td headers="search_th_var posted_by_var">
1\r\n                        <span>'+u(typeof(s=null!=(s=d(n,"UserIdentifier")||(null!=e?d(e,"UserIdentifier"):e))?s:l)==p?s.call(r,{name:"UserIdentifier",hash:{},data:o,loc:{start:{line:24,column:30},end:{line:24,column:48}}}):s)+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion by:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_by_var">\r\n                        <span>'+u(typeof(s=null!=(s=d(n,"Author")||(null!=e?d(e,"Author"):e))?s:l)==p?s.call(r,{name:"Author",hash:{},data:o,loc:{start:{line:32,column:30},end:{line:32,column:40}}}):s)+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="date-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Date:\r\n                    </th>\r\n                    <td headers="search_th_var date_var">\r\n                        <span>'+u((d(n,"formatDate")||e&&d(e,"formatDate")||l).call(r,null!=e?d(e,"UploadDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:40,column:30},end:{line:40,column:60}}}))+"</span>\r\n                    </td>\r\n                </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:43,column:16},end:{line:70,column:25}}}))?a:"")+"            </tbody>\r\n        </table>\r\n    </div>\r\n"},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=t.lambda,r=t.escapeExpression,l=null!=e?e:t.nullContext||{},p=t.hooks.helperMissing,u="function",t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion Status:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>'+r(s(null!=(a=null!=e?t(e,"PublicationType"):e)?t(a,"Description"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>'+r(s(null!=(a=null!=e?t(e,"PostType"):e)?t(a,"PostingTypeId"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="download-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Download:\r\n                    </th>\r\n                    <td headers="search_th_var download_var">\r\n                        <a class="link" href="/assets/opinions/Commonwealth/out/'+r(typeof(s=null!=(s=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?s:p)==u?s.call(l,{name:"FileName",hash:{},data:o,loc:{start:{line:65,column:80},end:{line:65,column:92}}}):s)+"?cb="+r(typeof(s=null!=(s=t(n,"FileVersion")||(null!=e?t(e,"FileVersion"):e))?s:p)==u?s.call(l,{name:"FileVersion",hash:{},data:o,loc:{start:{line:65,column:96},end:{line:65,column:111}}}):s)+'" target="_blank" aria-label="View File">\r\n                            <span title="'+r(typeof(s=null!=(s=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?s:p)==u?s.call(l,{name:"FileName",hash:{},data:o,loc:{start:{line:66,column:41},end:{line:66,column:53}}}):s)+'">&nbsp;</span>\r\n                        </a>\r\n                    </td>\r\n                </tr>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:74,column:9}}}))?n:""},useData:!0}),this.us.pacourts.templates.dboardOpinion=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results">\r\n            <thead>\r\n            </thead>\r\n            <tbody>\r\n            <tr>\r\n                <th headers="board_docket_number_th_var" scope="row">\r\n                    BOARD DOCKET NUMBER:\r\n                </th>\r\n                <td headers="board_docket_number_th_var board_docket_number_var">\r\n                    <strong>'+u(typeof(s=null!=(s=d(n,"BoardDocketNumber")||(null!=e?d(e,"BoardDocketNumber"):e))?s:l)==p?s.call(r,{name:"BoardDocketNumber",hash:{},data:o,loc:{start:{line:15,column:28},end:{line:15,column:49}}}):s)+'</strong>\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th headers="court_docket_number_th_var" scope="row">\r\n                    Court Docket Number:\r\n                </th>\r\n                <td headers="court_docket_number_th_var court_docket_number_var">
1\r\n                    <span>'+u(typeof(s=null!=(s=d(n,"CourtDocketNumber")||(null!=e?d(e,"CourtDocketNumber"):e))?s:l)==p?s.call(r,{name:"CourtDocketNumber",hash:{},data:o,loc:{start:{line:23,column:26},end:{line:23,column:47}}}):s)+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr class="date-row">\r\n                <th headers="search_th_var" scope="row">\r\n                    Date:\r\n                </th>\r\n                <td headers="search_th_var date_var">\r\n                    <span>'+u((d(n,"formatDate")||e&&d(e,"formatDate")||l).call(r,null!=e?d(e,"DispositionDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:31,column:26},end:{line:31,column:61}}}))+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th headers="keywords_th_var" scope="row">\r\n                    Keywords:\r\n                </th>\r\n                <td headers="keywords_th_var keywords_var">\r\n                    <span>'+u(typeof(s=null!=(s=d(n,"Keywords")||(null!=e?d(e,"Keywords"):e))?s:l)==p?s.call(r,{name:"Keywords",hash:{},data:o,loc:{start:{line:39,column:26},end:{line:39,column:38}}}):s)+"</span>\r\n                </td>\r\n            </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:42,column:12},end:{line:53,column:21}}}))?a:"")+'            </tbody>\r\n        </table>\r\n        <input type="button" value="Edit" aopc-opinions-edit-button="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:56,column:69},end:{line:56,column:75}}}):s)+'" />\r\n    </div>\r\n'},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <tr class="download-row">\r\n                <th headers="search_th_var" scope="row">\r\n                    Download:\r\n                </th>\r\n                <td headers="search_th_var download_var">\r\n                    <a class="link" href="/assets/opinions/DisciplinaryBoard/out/'+p(typeof(a=null!=(a=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?a:r)==l?a.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:48,column:81},end:{line:48,column:93}}}):a)+"?cb="+p(typeof(a=null!=(a=t(n,"FileVersion")||(null!=e?t(e,"FileVersion"):e))?a:r)==l?a.call(s,{name:"FileVersion",hash:{},data:o,loc:{start:{line:48,column:97},end:{line:48,column:112}}}):a)+'" target="_blank" aria-label="View File">\r\n                        <span title="'+p(typeof(a=null!=(a=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?a:r)==l?a.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:49,column:37},end:{line:49,column:49}}}):a)+'">&nbsp;</span>\r\n                    </a>\r\n                </td>\r\n            </tr>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:58,column:9}}}))?n:""},useData:!0}),this.us.pacourts.templates.dboardOpinionEditForm=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a,s=t.lambda,r=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="one-col divided no-stripe" edit-opinion-form='+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"id"):a,e))+'>\r\n    <form>\r\n        <fieldset>\r\n            <table class="search-results">\r\n                <caption>Board docket number '+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"boardDocketNumber"):a,e))+'</caption>\r\n                <thead>\r\n                </thead>\r\n                <tbody>\r\n                    <tr>\r\n                        <th headers="search_th_var" scope="row">Board docket number:</th>\r\n                        <td headers="search_th_var posted_by_var">\r\n                            <input type="text" name="BoardDocketNumber" maxlength="50" value="'+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"boardDocketNumber"):a,e))+'" aopc-opinions-edit-boardDocketNumber>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th headers="search_th_var" scope="row">Court docket number:</th>\r\n                        <td headers="search_th_var opinion_by_var">\r\n                            <input type="text" name="CourtDocketNumber" maxlength="50" value="'+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"courtDocketNumber"):a,e))+'" aopc-opinions-edit-courtDocketNumber>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="date-row">\r\n                        <th id="date_var" headers="search_th_var" scope="row">Date:</th>\r\n                        <td headers="search_th_var date_var">
1\r\n                            <span>\r\n                                <input type="text" name="Date" value="'+r((l(n,"formatDate")||e&&l(e,"formatDate")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"dispositionDate"):a,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:25,column:70},end:{line:25,column:121}}}))+'" maxlength="10" aopc-opinions-edit-datepicker>\r\n                            </span>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th headers="search_th_var" scope="row">Keywords:</th>\r\n                        <td headers="search_th_var keywords_var">\r\n                            <textarea name="Keywords" aopc-opinions-edit-keywords>\r\n                                '+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"keywords"):a,e))+'\r\n                            </textarea>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="download-row">\r\n                        <th id="download_var" headers="search_th_var" scope="row">\r\n                            Download:\r\n                        </th>\r\n                        <td headers="search_th_var download_var">\r\n                            <input type="file" name="FileUpload" size="80" previous='+r(s(null!=(a=null!=(a=null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"postings"):a)?l(a,"0"):a)?l(a,"fileName"):a,e))+' aopc-opinions-edit-file>\r\n                        </td>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n            <div>\r\n                <br />\r\n                <input type="submit" name="FormButton" value="Submit" aopc-opinions-edit-submit="'+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"id"):a,e))+'">\r\n                <input name="FormButton" value="Delete" aopc-opinions-delete-button="'+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"id"):a,e))+'">\r\n                <input type="button" value="Cancel" aopc-opinions-cancel-button="'+r(s(null!=(a=null!=e?l(e,"selectedOpinion"):e)?l(a,"id"):a,e))+'">\r\n            </div>\r\n        </fieldset>\r\n    </form>\r\n</div>\r\n'},useData:!0}),this.us.pacourts.templates.dboardOpinionUnauthorized=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results">\r\n            <thead>\r\n            </thead>\r\n            <tbody>\r\n            <tr>\r\n                <th headers="board_docket_number_th_var" scope="row">\r\n                    BOARD DOCKET NUMBER:\r\n                </th>\r\n                <td headers="board_docket_number_th_var board_docket_number_var">\r\n                    <strong>'+u(typeof(s=null!=(s=d(n,"BoardDocketNumber")||(null!=e?d(e,"BoardDocketNumber"):e))?s:l)==p?s.call(r,{name:"BoardDocketNumber",hash:{},data:o,loc:{start:{line:15,column:28},end:{line:15,column:49}}}):s)+'</strong>\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th headers="court_docket_number_th_var" scope="row">\r\n                    Court Docket Number:\r\n                </th>\r\n                <td headers="court_docket_number_th_var court_docket_number_var">\r\n                    <span>'+u(typeof(s=null!=(s=d(n,"CourtDocketNumber")||(null!=e?d(e,"CourtDocketNumber"):e))?s:l)==p?s.call(r,{name:"CourtDocketNumber",hash:{},data:o,loc:{start:{line:23,column:26},end:{line:23,column:47}}}):s)+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr class="date-row">\r\n                <th headers="search_th_var" scope="row">\r\n                    Date:\r\n                </th>\r\n                <td headers="search_th_var date_var">
1\r\n                    <span>'+u((d(n,"formatDate")||e&&d(e,"formatDate")||l).call(r,null!=e?d(e,"DispositionDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:31,column:26},end:{line:31,column:61}}}))+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th headers="keywords_th_var" scope="row">\r\n                    Keywords:\r\n                </th>\r\n                <td headers="keywords_th_var keywords_var">\r\n                    <span>'+u(typeof(s=null!=(s=d(n,"Keywords")||(null!=e?d(e,"Keywords"):e))?s:l)==p?s.call(r,{name:"Keywords",hash:{},data:o,loc:{start:{line:39,column:26},end:{line:39,column:38}}}):s)+"</span>\r\n                </td>\r\n            </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:42,column:12},end:{line:53,column:21}}}))?a:"")+"            </tbody>\r\n        </table>\r\n    </div>\r\n"},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <tr class="download-row">\r\n                <th headers="search_th_var" scope="row">\r\n                    Download:\r\n                </th>\r\n                <td headers="search_th_var download_var">\r\n                    <a class="link" href="/assets/opinions/DisciplinaryBoard/out/'+p(typeof(a=null!=(a=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?a:r)==l?a.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:48,column:81},end:{line:48,column:93}}}):a)+"?cb="+p(typeof(a=null!=(a=t(n,"FileVersion")||(null!=e?t(e,"FileVersion"):e))?a:r)==l?a.call(s,{name:"FileVersion",hash:{},data:o,loc:{start:{line:48,column:97},end:{line:48,column:112}}}):a)+'" target="_blank" aria-label="View File">\r\n                        <span title="'+p(typeof(a=null!=(a=t(n,"FileName")||(null!=e?t(e,"FileName"):e))?a:r)==l?a.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:49,column:37},end:{line:49,column:49}}}):a)+'">&nbsp;</span>\r\n                    </a> \r\n                </td>\r\n            </tr>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:57,column:9}}}))?n:""},useData:!0}),this.us.pacourts.templates["jeabOpinion/jeabOpinionSearchResultItem"]=Handlebars.template({0:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                    <div>"+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"display")||(null!=e?a(e,"display"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"display",hash:{},data:o,loc:{start:{line:35,column:25},end:{line:35,column:36}}}):n)+"</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,u=t.lambda,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="col" search-result="'+p(typeof(a=null!=(a=d(n,"Id")||(null!=e?d(e,"Id"):e))?a:r)==l?a.call(s,{name:"Id",hash:{},data:o,loc:{start:{line:1,column:32},end:{line:1,column:38}}}):a)+'">\r\n    <table class="search-results superior" style="width: 90% !important; border-collapse: separate; border-spacing: 0 0.5em;">\r\n        <thead>\r\n            <tr class="title-row"> \r\n                <th id="search_th_var" scope="col" colspan="2" style="padding-left: 0 !important;">\r\n                    <strong>\r\n                        Opinion Number '+p(typeof(a=null!=(a=d(n,"opinionNumber")||(null!=e?d(e,"opinionNumber"):e))?a:r)==l?a.call(s,{name:"opinionNumber",hash:{},data:o,loc:{start:{line:7,column:39}
1,end:{line:7,column:56}}}):a)+'\r\n                    </strong>\r\n                </th>\r\n            </tr>\r\n        </thead>\r\n        <tbody>\r\n            <tr class="date-row">\r\n                <th id="posted_by_var" headers="search_th_var" scope="row">\r\n                    Date Rendered:\r\n                </th>\r\n                <td headers="search_th_var posted_by_var">\r\n                    <span>'+p((d(n,"formatDate")||e&&d(e,"formatDate")||r).call(s,null!=e?d(e,"dateRendered"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:18,column:26},end:{line:18,column:58}}}))+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th id="tag_var" headers="search_th_var" scope="row">\r\n                    Topic:\r\n                </th>\r\n                <td headers="search_th_var tag_var">\r\n                    <span>'+p(typeof(a=null!=(a=d(n,"tagDisplay")||(null!=e?d(e,"tagDisplay"):e))?a:r)==l?a.call(s,{name:"tagDisplay",hash:{},data:o,loc:{start:{line:26,column:26},end:{line:26,column:40}}}):a)+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr>\r\n                <th id="tag_var" headers="search_th_var" scope="row">\r\n                    Citations:\r\n                </th>\r\n                <td headers="search_th_var tag_var">\r\n'+(null!=(t=d(n,"each").call(s,null!=e?d(e,"citations"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:34,column:20},end:{line:36,column:29}}}))?t:"")+'                </td>\r\n            </tr>\r\n            <tr>\r\n                <th id="posted_by_var" headers="search_th_var" scope="row">\r\n                    Summary:\r\n                </th>\r\n                <td headers="search_th_var summary_var">\r\n                    <span>'+p(typeof(a=null!=(a=d(n,"summary")||(null!=e?d(e,"summary"):e))?a:r)==l?a.call(s,{name:"summary",hash:{},data:o,loc:{start:{line:44,column:26},end:{line:44,column:37}}}):a)+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr class="download-row">\r\n                <th id="download_var" headers="search_th_var" scope="row">\r\n                    Download:\r\n                </th>\r\n                <td headers="search_th_var download_var">\r\n                    <a class="link" href="/api/jeabopinionsearch/getpublicdocument/'+p(u(null!=(t=null!=(t=null!=e?d(e,"documents"):e)?d(t,"0"):t)?d(t,"display"):t,e))+"?opinionid="+p(typeof(a=null!=(a=d(n,"id")||(null!=e?d(e,"id"):e))?a:r)==l?a.call(s,{name:"id",hash:{},data:o,loc:{start:{line:52,column:117},end:{line:52,column:123}}}):a)+"&documentid="+p(u(null!=(t=null!=(t=null!=e?d(e,"documents"):e)?d(t,"0"):t)?d(t,"id"):t,e))+'" target="_blank"  aria-label="View File">\r\n                        <span role="none">&nbsp;</span>\r\n                    </a>\r\n                </td>\r\n            </tr>\r\n        </tbody>\r\n    </table>\r\n\r\n</div>\r\n'},useData:!0}),this.us.pacourts.templates.jobCertification=Handlebars.template({0:function(t,e,n,i,o,a,s){var r,l=null!=e?e:t.nullContext||{},p=t.hooks.helperMissing,u="function",d=t.escapeExpression,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t<tr id="License'+d(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==u?r.call(l,{name:"index",hash:{},data:o,loc:{start:{line:2,column:16},end:{line:2,column:26}}}):r)+'Container" class="block-fields table-view">\r\n\t\t<td class="field">\r\n\t\t\t<div class="field-input">\r\n\t\t\t\t<input type="text" id="LicenseTitle'+d(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==u?r.call(l,{name:"index",hash:{},data:o,loc:{start:{line:5,column:39},end:{line:5,column:49}}}):r)+'" name="title" class="licenseTitle" value="'+d(typeof(r=null!=(r=h(n,"title")||(null!=e?h(e,"title"):e))?r:p)==u?r.call(l,{name:"title",hash:{},data:o,loc:{start:{line:5,column:92},end:{line:5,column:101}}}):r)+'" data-index="'+d(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==u?r.call(l,{name:"index",hash:{},data:o,loc:{start:{line:5,column:115},end:{line:5,column:125}}}):r)+'" certification-input-field />\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t\t<td class="field">\r\n\t\t\t<div class="field-input stateList">\r\n\t\t\t\t<select name="state" class="stateList" data-index="'+d(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==u?r.call(l,{name:"index",hash:{}
1,data:o,loc:{start:{line:10,column:55},end:{line:10,column:65}}}):r)+'" certification-input-field>\r\n'+(null!=(a=(h(n,"select")||e&&h(e,"select")||p).call(l,null!=e?h(e,"state"):e,{name:"select",hash:{},fn:t.program(1,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:11,column:5},end:{line:16,column:16}}}))?a:"")+'\t\t\t\t</select>\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t\t<td class="field">\r\n\t\t\t<div class="field-input">\r\n\t\t\t\t<input type="text" name="expireOn" value="'+d((h(n,"formatDate")||e&&h(e,"formatDate")||p).call(l,null!=e?h(e,"expireOn"):e,"M[/]D[/]YYYY",{name:"formatDate",hash:{},data:o,loc:{start:{line:22,column:46},end:{line:22,column:84}}}))+'" class="datepicker listMonths listYears noMaxDate" data-index="'+d(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==u?r.call(l,{name:"index",hash:{},data:o,loc:{start:{line:22,column:148},end:{line:22,column:158}}}):r)+'" certification-input-field />\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t\t<td class="field">\r\n\t\t\t<div class="field-input">\r\n\t\t\t\t<input type="text" name="code" class="licenseCode" value="'+d(typeof(r=null!=(r=h(n,"code")||(null!=e?h(e,"code"):e))?r:p)==u?r.call(l,{name:"code",hash:{},data:o,loc:{start:{line:27,column:62},end:{line:27,column:70}}}):r)+'" data-index="'+d(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==u?r.call(l,{name:"index",hash:{},data:o,loc:{start:{line:27,column:84},end:{line:27,column:94}}}):r)+'" certification-input-field />\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t</tr>\r\n'},1:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t<option value=""></option>\r\n'+(null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=s[1]?r(s[1],"stateAbbreviations"):s[1],{name:"each",hash:{},fn:t.program(2,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:13,column:6},end:{line:15,column:15}}}))?n:"")},2:function(t,e,n,i,o){var a=t.lambda,t=t.escapeExpression;return'\t\t\t\t\t\t\t<option value="'+t(a(e,e))+'">'+t(a(e,e))+"</option>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=e?r(e,"jobCertifications"):e,{name:"each",hash:{},fn:t.program(0,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:31,column:9}}}))?n:""},useData:!0,useDepths:!0}),this.us.pacourts.templates.jobEducation=Handlebars.template({0:function(t,e,n,i,o,a,s){var r,l,p=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,d="function",h=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t<div id="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:2,column:19},end:{line:2,column:29}}}):l)+'Container">\r\n'+(null!=(r=c(n,"if").call(p,o&&c(o,"index"),{name:"if",hash:{},fn:t.program(1,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:3,column:1},end:{line:5,column:8}}}))?r:"")+'\t\t<fieldset class="multi">\r\n\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t<label for="LevelOfEducation'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:9,column:33},end:{line:9,column:43}}}):l)+'">Level of Education Completed</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<select id="LevelOfEducation'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:12,column:33},end:{line:12,column:43}}}):l)+'" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:12,column:57},end:{line:12,column:67}}}):l)+'" education-input-field name="levelOfEducation">\r\n'+(null!=(r=(c(n,"select")||e&&c(e,"select")||u).call(p,null!=e?c(e,"levelOfEducation"):e,{name:"select",hash:{},fn:t.program(2,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:13,column:6},end:{line:18,column:17}}}))?r:"")+'\t\t\t\t\t</select>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t<label for="CourseOfStudy'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:24,column:30},end:{line:24,column:40}}}):l)+'">Course of Study</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<input type="text" name="courseOfStudy" id="CourseOfStudy'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:27,column:62},end:{line:27,column:72}}}):l)+'" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:27,column:86},end:{line:27,column:96}}}):l)+'" education-input-field value="'+h(typeof(l=null!=(l=c(n,"courseOfStudy")||(null!=e?c(e,"courseOfStudy"):e))?l:u)==d?l.call(p,{name:"courseOfStudy",hash:{},data:o,loc:{start:{line:27,column:127},end:{line:27,column:144}}}):l)+'" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t<label for="School'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:32,column:23},end:{line:32,column:33}}}):l)+'">Name of School</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<input type="text" name="school" id="School'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:35,column:48}
1,end:{line:35,column:58}}}):l)+'" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:35,column:72},end:{line:35,column:82}}}):l)+'" education-input-field value="'+h(typeof(l=null!=(l=c(n,"school")||(null!=e?c(e,"school"):e))?l:u)==d?l.call(p,{name:"school",hash:{},data:o,loc:{start:{line:35,column:113},end:{line:35,column:123}}}):l)+'" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t\t<fieldset class="multi">\r\n\t\t\t<div class="clearfix">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:43,column:27},end:{line:43,column:37}}}):l)+'City">City</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" maxlength="50" id="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:46,column:53},end:{line:46,column:63}}}):l)+'City" name="city" class="cityField" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:46,column:111},end:{line:46,column:121}}}):l)+'" education-input-field value="'+h(typeof(l=null!=(l=c(n,"city")||(null!=e?c(e,"city"):e))?l:u)==d?l.call(p,{name:"city",hash:{},data:o,loc:{start:{line:46,column:152},end:{line:46,column:160}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:51,column:27},end:{line:51,column:37}}}):l)+'State">State</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input stateList">\r\n\t\t\t\t\t\t<select id="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:54,column:27},end:{line:54,column:37}}}):l)+'State" name="state" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:54,column:69},end:{line:54,column:79}}}):l)+'" education-input-field class="stateList">\r\n'+(null!=(r=(c(n,"select")||e&&c(e,"select")||u).call(p,null!=e?c(e,"state"):e,{name:"select",hash:{},fn:t.program(4,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:55,column:7},end:{line:65,column:18}}}))?r:"")+'\t\t\t\t\t\t</select>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle" id="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:69,column:55},end:{line:69,column:67}}}):l)+'CountryContainer" '+(null!=(r=(c(n,"ifCond")||e&&c(e,"ifCond")||u).call(p,null!=e?c(e,"state"):e,"!==","OC",{name:"ifCond",hash:{},fn:t.program(6,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:69,column:85},end:{line:69,column:146}}}))?r:"")+'>\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:71,column:27},end:{line:71,column:37}}}):l)+'Country">Country</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" id="Education'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:74,column:38},end:{line:74,column:48}}}):l)+'Country" name="country" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:74,column:84},end:{line:74,column:94}}}):l)+'" education-input-field value="'+h(typeof(l=null!=(l=c(n,"country")||(null!=e?c(e,"country"):e))?l:u)==d?l.call(p,{name:"country",hash:{},data:o,loc:{start:{line:74,column:125},end:{line:74,column:136}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t</div>\r\n'},1:function(t,e,n,i,o){return"\t\t<br/><hr/><br/>\r\n"},2:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t\t<option value="">Please Select One...</option>\r\n'+(null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=s[1]?r(s[1],"educationLevels"):s[1],{name:"each",hash:{},fn:t.program(3,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:15,column:7},end:{line:17,column:16}}}))?n:"")},3:function(t,e,n,i,o){var a=t.lambda,t=t.escapeExpression;return'\t\t\t\t\t\t\t\t<option value="'+t(a(e,e))+'">'+t(a(e,e))+"</option>\r\n"},4:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t\t\t<option value=""></option>\r\n\t\t\t\t\t\t\t\t<optgroup label="U.S. States">\r\n'+(null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=s[1]?r(s[1],"stateAbbreviations"):s[1],{name:"each",hash:{},fn:t.program(5,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:58,column:9},end:{line:60,column:18}}}))?n:"")+'\t\t\t\t\t\t\t\t</optgroup>\r\n\t\t\t\t\t\t\t\t<optgroup label="Non-U.S.">\r\n\t\t\t\t\t\t\t\t\t<option value="OC">Other Country</option>\r\n\t\t\t\t\t\t\t\t</optgroup>\r\n'},5:function(t,e,n,i,o){var a=t.lambda,t=t.escapeExpression;return'\t\t\t\t\t\t\t\t\t\t<option value="'+t(a(e,e))+'">'+t(a(e,e))+"</option>\r\n"},6:function(t,e,n,i,o){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=e?r(e,"jobEducations"):e,{name:"each",hash:{},fn:t.program(0,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:80,column:9}}}))?n:""},useData:!0,useDepths:!0}),this.us.pacourts.templates.jobEmployer=Handlebars.template({0:function(t,e,n,i,o,a,s){var r,l,p=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,d="function",h=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"\t<div>
1\r\n"+(null!=(r=c(n,"if").call(p,o&&c(o,"index"),{name:"if",hash:{},fn:t.program(1,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:3,column:2},end:{line:5,column:9}}}))?r:"")+'\t\t<fieldset class="multi">\r\n\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t<div class="field-label">\r\n'+(null!=(r=c(n,"if").call(p,o&&c(o,"index"),{name:"if",hash:{},fn:t.program(2,o,0,a,s),inverse:t.program(3,o,0,a,s),data:o,loc:{start:{line:9,column:5},end:{line:13,column:12}}}))?r:"")+'\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<input type="text" id="EmployerCompany'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:16,column:43},end:{line:16,column:55}}}):l)+'" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:16,column:69},end:{line:16,column:81}}}):l)+'" name="company" employer-field value="'+h(typeof(l=null!=(l=c(n,"company")||(null!=e?c(e,"company"):e))?l:u)==d?l.call(p,{name:"company",hash:{},data:o,loc:{start:{line:16,column:120},end:{line:16,column:133}}}):l)+'" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t<label for="EmployerPosition'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:21,column:33},end:{line:21,column:45}}}):l)+'">Position/Title</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<input type="text" id="EmployerPosition'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:24,column:44},end:{line:24,column:56}}}):l)+'" name="position" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:24,column:86},end:{line:24,column:98}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"position")||(null!=e?c(e,"position"):e))?l:u)==d?l.call(p,{name:"position",hash:{},data:o,loc:{start:{line:24,column:122},end:{line:24,column:136}}}):l)+'" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t\t<div>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="EmployerStartOn'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:32,column:33},end:{line:32,column:45}}}):l)+'">Employment Length</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input clearfix">\r\n\t\t\t\t\t\t<div class="left">\r\n\t\t\t\t\t\t\t<input type="text" id="EmployerStartOn'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:36,column:45},end:{line:36,column:57}}}):l)+'" name="startOn" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:36,column:86},end:{line:36,column:98}}}):l)+'" employer-field value="'+h((c(n,"formatDate")||e&&c(e,"formatDate")||u).call(p,null!=e?c(e,"startOn"):e,"M[/]D[/]YYYY",{name:"formatDate",hash:{},data:o,loc:{start:{line:36,column:122},end:{line:36,column:160}}}))+'" class="datepicker listMonths listYears maxDateToday" />&nbsp;&nbsp;to\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class="left">\r\n\t\t\t\t\t\t\t<input type="text" id="EmployerEndOn'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:39,column:43},end:{line:39,column:55}}}):l)+'" name="endOn" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:39,column:82},end:{line:39,column:94}}}):l)+'" employer-field value="'+h((c(n,"formatDate")||e&&c(e,"formatDate")||u).call(p,null!=e?c(e,"endOn"):e,"M[/]D[/]YYYY",{name:"formatDate",hash:{},data:o,loc:{start:{line:39,column:118},end:{line:39,column:154}}}))+'" class="datepicker listMonths listYears maxDateToday" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<br />\r\n\t\t\t\t<div class="field">\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<div class="left">\r\n\t\t\t\t\t\t\t<input type="checkbox" id="EmployerIsPresentEmployer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{}
1,data:o,loc:{start:{line:47,column:59},end:{line:47,column:71}}}):l)+'" name="isPresentEmployer" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:47,column:110},end:{line:47,column:122}}}):l)+'" employer-field value="true" '+h((c(n,"trueIsChecked")||e&&c(e,"trueIsChecked")||u).call(p,null!=e?c(e,"isPresentEmployer"):e,{name:"trueIsChecked",hash:{},data:o,loc:{start:{line:47,column:152},end:{line:47,column:187}}}))+' />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="EmployerIsPresentEmployer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:51,column:43},end:{line:51,column:55}}}):l)+'" style="line-height: 14px;">I am presently employed at this position</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t</div>\r\n\t\t<fieldset class="multi">\r\n\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:59,column:25},end:{line:59,column:37}}}):l)+'Address1">Address Line 1</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<input type="text" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:62,column:36},end:{line:62,column:48}}}):l)+'Address1" name="address1" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:62,column:86},end:{line:62,column:98}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"address1")||(null!=e?c(e,"address1"):e))?l:u)==d?l.call(p,{name:"address1",hash:{},data:o,loc:{start:{line:62,column:122},end:{line:62,column:136}}}):l)+'" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="field">\r\n\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:67,column:25},end:{line:67,column:37}}}):l)+'Address2">Address Line 2</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t<input type="text" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:70,column:36},end:{line:70,column:48}}}):l)+'Address2" name="address2" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:70,column:86},end:{line:70,column:98}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"address2")||(null!=e?c(e,"address2"):e))?l:u)==d?l.call(p,{name:"address2",hash:{},data:o,loc:{start:{line:70,column:122},end:{line:70,column:136}}}):l)+'" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t\t<div>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:78,column:26},end:{line:78,column:38}}}):l)+'City">City</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:81,column:37},end:{line:81,column:49}}}):l)+'City" name="city" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:81,column:79},end:{line:81,column:91}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"city")||(null!=e?c(e,"city"):e))?l:u)==d?l.call(p,{name:"city",hash:{},data:o,loc:{start:{line:81,column:115},end:{line:81,column:125}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:86,column:26},end:{line:86,column:38}}}):l)+'State">State</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input stateList">\r\n\t\t\t\t\t\t<select id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:89,column:26},end:{line:89,column:38}}}):l)+'State" name="state" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:89,column:70},end:{line:89,column:82}}}):l)+'" employer-field class="stateList">\r\n'+(null!=(r=(c(n,"select")||e&&c(e,"select")||u).call(p,null!=e?c(e,"state"):e,{name:"select",hash:{},fn:t.program(4,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:90,column:7},end:{line:100,column:18}}}))?r:"")+'\t\t\t\t\t\t</select>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:106,column:26},end:{line:106,column:38}}}):l)+'Zip">Zip</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:109,column:37},end:{line:109,column:49}}}):l)+'Zip" name="zip" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:109,column:77},end:{line:109,column:89}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"zip")||(null!=e?c(e,"zip"):e))?l:u)==d?l.call(p,{name:"zip",hash:{},data:o,loc:{start:{line:109,column:113},end:{line:109,column:122}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:112,column:54},end:{line:112,column:66}}}):l)+'CountryContainer" '+(null!=(r=(c(n,"ifCond")||e&&c(e,"ifCond")||u).call(p,null!=e?c(e,"state"):e,"!==","OC",{name:"ifCond",hash:{},fn:t.program(6,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:112,column:84},end:{line:112,column:145}}}))?r:"")+'>\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:114,column:26},end:{line:114,column:38}}}):l)+'Country">Country</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:117,column:37},end:{line:117,column:49}}}):l)+'Country" name="country" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:117,column:85},end:{line:117,column:97}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"country")||(null!=e?c(e,"country"):e))?l:u)==d?l.call(p,{name:"country",hash:{},data:o,loc:{start:{line:117,column:121},end:{line:117,column:134}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t</div>\r\n\t\t<div>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:126,column:26},end:{line:126,column:38}}}):l)+'Phone">Phone</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" id="Employer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:129,column:37},end:{line:129,column:49}}}):l)+'Phone" name="phone" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:129,column:81},end:{line:129,column:93}}}):l)+'" employer-field value="'+h(typeof(l=null!=(l=c(n,"phone")||(null!=e?c(e,"phone"):e))?l:u)==d?l.call(p,{name:"phone",hash:{},data:o,loc:{start:{line:129,column:117},end:{line:129,column:128}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t</div>\r\n'+(null!=(r=c(n,"if").call(p,null!=s[1]?c(s[1],"requireSalary"):s[1],{name:"if",hash:{},fn:t.program(7,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:134,column:2},end:{line:157,column:9}}}))?r:"")+'\t\t<div class="field">\r\n\t\t\t<div class="field-label">\r\n\t\t\t\t<label for="EmployerReasonForLeaving'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:160,column:40}
1,end:{line:160,column:52}}}):l)+'">Please state your reason for leaving.</label>\r\n\t\t\t</div>\r\n\t\t\t<div class="field-input">\r\n\t\t\t\t<textarea id="EmployerReasonForLeaving'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:163,column:42},end:{line:163,column:54}}}):l)+'" name="reasonForLeaving" data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:163,column:92},end:{line:163,column:104}}}):l)+'" employer-field cols="45" rows="4">'+h(typeof(l=null!=(l=c(n,"reasonForLeaving")||(null!=e?c(e,"reasonForLeaving"):e))?l:u)==d?l.call(p,{name:"reasonForLeaving",hash:{},data:o,loc:{start:{line:163,column:140},end:{line:163,column:162}}}):l)+"</textarea>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n"},1:function(t,e,n,i,o){return"\t\t\t<br/><hr/><br/>\r\n"},2:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t<label for="EmployerCompany'+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"index")||o&&a(o,"index"))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"index",hash:{},data:o,loc:{start:{line:10,column:33},end:{line:10,column:45}}}):n)+'">Previous Employer></label>\r\n'},3:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t<label for="EmployerCompany'+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"index")||o&&a(o,"index"))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"index",hash:{},data:o,loc:{start:{line:12,column:33},end:{line:12,column:45}}}):n)+'">Present/Last Employer</label>\r\n'},4:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t\t\t<option value=""></option>\r\n\t\t\t\t\t\t\t\t<optgroup label="U.S. States">\r\n'+(null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=s[1]?r(s[1],"stateAbbreviations"):s[1],{name:"each",hash:{},fn:t.program(5,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:93,column:9},end:{line:95,column:18}}}))?n:"")+'\t\t\t\t\t\t\t\t</optgroup>\r\n\t\t\t\t\t\t\t\t<optgroup label="Non-U.S.">\r\n\t\t\t\t\t\t\t\t\t<option value="OC">Other Country</option>\r\n\t\t\t\t\t\t\t\t</optgroup>\r\n'},5:function(t,e,n,i,o){var a=t.lambda,t=t.escapeExpression;return'\t\t\t\t\t\t\t\t\t\t<option value="'+t(a(e,e))+'">'+t(a(e,e))+"</option>\r\n"},6:function(t,e,n,i,o){return'style="display: none;"'},7:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t<div>\r\n\t\t\t\t<h4>Annual Compensation (include overtime and bonuses)</h4>\r\n\t\t\t\t<fieldset class="multi">\r\n\t\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t\t<label for="EmployerSalary'+p(typeof(a=null!=(a=t(n,"index")||o&&t(o,"index"))?a:r)==l?a.call(s,{name:"index",hash:{},data:o,loc:{start:{line:140,column:33},end:{line:140,column:45}}}):a)+'">Salary ($##,###)</label>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t\t<input type="text" id="EmployerSalary'+p(typeof(a=null!=(a=t(n,"index")||o&&t(o,"index"))?a:r)==l?a.call(s,{name:"index",hash:{},data:o,loc:{start:{line:143,column:44},end:{line:143,column:56}}}):a)+'" name="salary" data-index="'+p(typeof(a=null!=(a=t(n,"index")||o&&t(o,"index"))?a:r)==l?a.call(s,{name:"index",hash:{},data:o,loc:{start:{line:143,column:84},end:{line:143,column:96}}}):a)+'" employer-field value="'+p(typeof(a=null!=(a=t(n,"salary")||(null!=e?t(e,"salary"):e))?a:r)==l?a.call(s,{name:"salary",hash:{},data:o,loc:{start:{line:143,column:120},end:{line:143,column:132}}}):a)+'" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<br /><br /><br />\r\n\t\t\t\t\t\t<div class="field-input clearfix">\r\n\t\t\t\t\t\t\t<div class="left">\r\n\t\t\t\t\t\t\t\t<label class="normal"><input type="radio" name="isHourly" data-index="'+p(typeof(a=null!=(a=t(n,"index")||o&&t(o,"index"))?a:r)==l?a.call(s,{name:"index",hash:{},data:o,loc:{start:{line:148,column:78},end:{line:148,column:90}}}):a)+'" employer-field class="toggle" value="true" '+p((t(n,"trueIsChecked")||e&&t(e,"trueIsChecked")||r).call(s,null!=e?t(e,"isHourly"):e,{name:"trueIsChecked",hash:{},data:o,loc:{start:{line:148,column:135},end:{line:148,column:161}}}))+' /> Hourly</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class="left">\r\n\t\t\t\t\t\t\t\t<label class="normal"><input type="radio" name="isHourly" data-index="'+p(typeof(a=null!=(a=t(n,"index")||o&&t(o,"index"))?a:r)==l?a.call(s,{name:"index",hash:{},data:o,loc:{start:{line:151,column:78},end:{line:151,column:90}}}):a)+'" employer-field class="toggle" value="false" '+p((t(n,"falseIsChecked")||e&&t(e,"falseIsChecked")||r).call(s,null!=e?t(e,"isHourly"):e,{name:"falseIsChecked",hash:{},data:o,loc:{start:{line:151,column:136},end:{line:151,column:163}}}))+" /> Annual</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</fieldset>\r\n\t\t\t</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=e?r(e,"jobEmployers"):e,{name:"each",hash:{},fn:t.program(0,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:167,column:9}}}))?n:""},useData:!0,useDepths:!0}),this.us.pacourts.templates.jobReference=Handlebars.template({0:function(t,e,n,i,o,a,s){var r,l,p=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,d="function",h=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t<div id=" Reference'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:2,column:20},end:{line:2,column:30}}}):l)+'">
1\r\n'+(null!=(r=c(n,"if").call(p,o&&c(o,"index"),{name:"if",hash:{},fn:t.program(1,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:3,column:2},end:{line:5,column:9}}}))?r:"")+'\t\t<div>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceFirstName'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:10,column:36},end:{line:10,column:46}}}):l)+'">First Name</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="firstName" id="ReferenceFirstName'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:13,column:64},end:{line:13,column:74}}}):l)+'" maxlength="50" value="'+h(typeof(l=null!=(l=c(n,"firstName")||(null!=e?c(e,"firstName"):e))?l:u)==d?l.call(p,{name:"firstName",hash:{},data:o,loc:{start:{line:13,column:98},end:{line:13,column:111}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:13,column:147},end:{line:13,column:157}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceLastName'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:18,column:35},end:{line:18,column:45}}}):l)+'">Last Name</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="lastName" id="ReferenceLastName'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:21,column:62},end:{line:21,column:72}}}):l)+'" maxlength="50" value="'+h(typeof(l=null!=(l=c(n,"lastName")||(null!=e?c(e,"lastName"):e))?l:u)==d?l.call(p,{name:"lastName",hash:{},data:o,loc:{start:{line:21,column:96},end:{line:21,column:108}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:21,column:144},end:{line:21,column:154}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceAddress1'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:28,column:35},end:{line:28,column:45}}}):l)+'">Address Line 1</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="address1" id="ReferenceAddress1'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:31,column:62},end:{line:31,column:72}}}):l)+'" maxlength="100" value="'+h(typeof(l=null!=(l=c(n,"address1")||(null!=e?c(e,"address1"):e))?l:u)==d?l.call(p,{name:"address1",hash:{},data:o,loc:{start:{line:31,column:97},end:{line:31,column:109}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:31,column:145},end:{line:31,column:155}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceAddress2'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:36,column:35},end:{line:36,column:45}}}):l)+'">Address Line 2</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="address2" id="ReferenceAddress2'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:39,column:62},end:{line:39,column:72}}}):l)+'" maxlength="100" value="'+h(typeof(l=null!=(l=c(n,"address2")||(null!=e?c(e,"address2"):e))?l:u)==d?l.call(p,{name:"address2",hash:{},data:o,loc:{start:{line:39,column:97},end:{line:39,column:109}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:39,column:145},end:{line:39,column:155}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceCity'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:46,column:31},end:{line:46,column:41}}}):l)+'">City</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="city" id="ReferenceCity'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:49,column:54},end:{line:49,column:64}}}):l)+'" maxlength="50" value="'+h(typeof(l=null!=(l=c(n,"city")||(null!=e?c(e,"city"):e))?l:u)==d?l.call(p,{name:"city",hash:{},data:o,loc:{start:{line:49,column:88},end:{line:49,column:96}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:49,column:132},end:{line:49,column:142}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceState'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:54,column:32},end:{line:54,column:42}}}):l)+'">State</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input stateList">\r\n\t\t\t\t\t\t<select name="state" id="ReferenceState'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:57,column:45}
vendor: 9,763 bytes, line 1
1,end:{line:57,column:55}}}):l)+'" class="stateList" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:57,column:109},end:{line:57,column:119}}}):l)+'">\r\n'+(null!=(r=(c(n,"select")||e&&c(e,"select")||u).call(p,null!=e?c(e,"state"):e,{name:"select",hash:{},fn:t.program(2,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:58,column:7},end:{line:68,column:18}}}))?r:"")+'\t\t\t\t\t\t</select>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceZip'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:74,column:30},end:{line:74,column:40}}}):l)+'">Zip</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="zip" id="ReferenceZip'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:77,column:52},end:{line:77,column:62}}}):l)+'" maxlength="50" value="'+h(typeof(l=null!=(l=c(n,"zip")||(null!=e?c(e,"zip"):e))?l:u)==d?l.call(p,{name:"zip",hash:{},data:o,loc:{start:{line:77,column:86},end:{line:77,column:93}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:77,column:129},end:{line:77,column:139}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle" id="ReferenceCountryContainer'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:80,column:71},end:{line:80,column:81}}}):l)+'" style="display: none;">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceCountry'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:82,column:34},end:{line:82,column:44}}}):l)+'">Country</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" id="ReferenceCountry'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:85,column:45},end:{line:85,column:55}}}):l)+'" name="country" value="'+h(typeof(l=null!=(l=c(n,"country")||(null!=e?c(e,"country"):e))?l:u)==d?l.call(p,{name:"country",hash:{},data:o,loc:{start:{line:85,column:79},end:{line:85,column:90}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:85,column:126},end:{line:85,column:136}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferencePhoneHome'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:92,column:36},end:{line:92,column:46}}}):l)+'">Daytime Phone</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="phoneHome" id="ReferencePhoneHome'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:95,column:64},end:{line:95,column:74}}}):l)+'" maxlength="25" value="'+h(typeof(l=null!=(l=c(n,"phoneHome")||(null!=e?c(e,"phoneHome"):e))?l:u)==d?l.call(p,{name:"phoneHome",hash:{},data:o,loc:{start:{line:95,column:98},end:{line:95,column:111}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:95,column:147},end:{line:95,column:157}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t\t<fieldset class="multi">\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceOccupation'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:102,column:37},end:{line:102,column:47}}}):l)+'">Occupation / Title</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="occupation" id="ReferenceOccupation'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:105,column:66},end:{line:105,column:76}}}):l)+'" maxlength="100" value="'+h(typeof(l=null!=(l=c(n,"occupation")||(null!=e?c(e,"occupation"):e))?l:u)==d?l.call(p,{name:"occupation",hash:{},data:o,loc:{start:{line:105,column:101},end:{line:105,column:115}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:105,column:151},end:{line:105,column:161}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceRelationship'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:110,column:39},end:{line:110,column:49}}}):l)+'">Relationship</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="relationship" id="ReferenceRelationship'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:113,column:70},end:{line:113,column:80}}}):l)+'" maxlength="255" value="'+h(typeof(l=null!=(l=c(n,"relationship")||(null!=e?c(e,"relationship"):e))?l:u)==d?l.call(p,{name:"relationship",hash:{},data:o,loc:{start:{line:113,column:105},end:{line:113,column:121}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:113,column:157},end:{line:113,column:167}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="field required cantoggle">\r\n\t\t\t\t\t<div class="field-label">\r\n\t\t\t\t\t\t<label for="ReferenceYearsKnown'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:118,column:37},end:{line:118,column:47}}}):l)+'">Years Known</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="field-input">\r\n\t\t\t\t\t\t<input type="text" name="yearsKnown" id="ReferenceYearsKnown'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:121,column:66},end:{line:121,column:76}}}):l)+'" maxlength="25" value="'+h(typeof(l=null!=(l=c(n,"yearsKnown")||(null!=e?c(e,"yearsKnown"):e))?l:u)==d?l.call(p,{name:"yearsKnown",hash:{},data:o,loc:{start:{line:121,column:100},end:{line:121,column:114}}}):l)+'" reference-input-field data-index="'+h(typeof(l=null!=(l=c(n,"index")||o&&c(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:121,column:150},end:{line:121,column:160}}}):l)+'" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</fieldset>\r\n\t\t</div>\r\n\t</div>\r\n'},1:function(t,e,n,i,o){return"\t\t\t<br/><hr/><br/>\r\n"},2:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t\t\t<option value=""></option>\r\n\t\t\t\t\t\t\t\t<optgroup label="U.S. States">\r\n'+(null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=s[1]?r(s[1],"stateAbbreviations"):s[1],{name:"each",hash:{},fn:t.program(3,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:61,column:9},end:{line:63,column:18}}}))?n:"")+'\t\t\t\t\t\t\t\t</optgroup>\r\n\t\t\t\t\t\t\t\t<optgroup label="Non-U.S.">\r\n\t\t\t\t\t\t\t\t\t<option value="OC">Other Country</option>\r\n\t\t\t\t\t\t\t\t</optgroup>\r\n'},3:function(t,e,n,i,o){var a=t.lambda,t=t.escapeExpression;return'\t\t\t\t\t\t\t\t\t\t<option value="'+t(a(e,e))+'">'+t(a(e,e))+"</option>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=e?r(e,"jobContacts"):e,{name:"each",hash:{},fn:t.program(0,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:127,column:9}}}))?n:""},useData:!0,useDepths:!0}),this.us.pacourts.templates.judgesSearchResults=Handlebars.template({0:function(t,e,n,i,o,a,s){var r,l,p=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,d="function",h=t.escapeExpression,c=t.lambda,_=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <tr id="result_row_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:2,column:23},end:{line:2,column:33}}}):l)+'">\r\n        <td class="result-col">\r\n'+(null!=(r=_(n,"if").call(p,null!=s[1]?_(s[1],"showMagisterialDistrict"):s[1],{name:"if",hash:{},fn:t.program(1,o,0,a,s),inverse:t.program(2,o,0,a,s),data:o,loc:{start:{line:4,column:12},end:{line:8,column:19}}}))?r:"")+"        </td>\r\n"+(null!=(r=_(n,"if").call(p,null!=s[1]?_(s[1],"showMagisterialDistrict"):s[1],{name:"if",hash:{},fn:t.program(3,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:10,column:8},end:{line:14,column:15}}}))?r:"")+'        <td class="result-col">\r\n            <div id="judge_name_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:16,column:32},end:{line:16,column:42}}}):l)+'" map-id="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{}
1,data:o,loc:{start:{line:16,column:52},end:{line:16,column:62}}}):l)+'">\r\n                <div class="plus">&zwnj;</div>\r\n                <div>\r\n                    '+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"firstName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"middleName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastNameSuffix"):r,e))+'\r\n                </div>\r\n            </div>\r\n            <div id="judge_details_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:22,column:35},end:{line:22,column:45}}}):l)+'" map-id="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:22,column:55},end:{line:22,column:65}}}):l)+'" style="display: none">\r\n                <div class="minus">&zwnj;</div>\r\n                <div>\r\n'+(null!=(r=_(n,"if").call(p,null!=s[1]?_(s[1],"showJudgeTitle"):s[1],{name:"if",hash:{},fn:t.program(4,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:25,column:20},end:{line:27,column:27}}}))?r:"")+"                    <strong>\r\n                        "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"firstName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"middleName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastNameSuffix"):r,e))+"\r\n                    </strong>\r\n                    <br/><br/>\r\n                    <p>"+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"address1"):r,e))+"</p>\r\n                    <p>"+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"address2"):r,e))+"</p>\r\n                    <p>"+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"address3"):r,e))+"</p>\r\n                    <p>"+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"address4"):r,e))+"</p>\r\n                    <p>"+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"city"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"state"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"zipCode"):r,e))+"</p>\r\n                    <br/>\r\n"+(null!=(r=_(n,"if").call(p,null!=s[1]?_(s[1],"showPhone"):s[1],{name:"if",hash:{},fn:t.program(5,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:38,column:20},end:{line:41,column:27}}}))?r:"")+(null!=(r=_(n,"if").call(p,null!=s[1]?_(s[1],"showFax"):s[1],{name:"if",hash:{},fn:t.program(6,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:42,column:20},end:{line:45,column:27}}}))?r:"")+'                    <a href="#" class="view-map-link" map-id="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:46,column:62},end:{line:46,column:72}}}):l)+'">View Map</a>\r\n                </div>\r\n            </div>\r\n        </td>\r\n        <td class="result-col map">\r\n            <div id="map_meta_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:51,column:30},end:{line:51,column:40}}}):l)+'">\r\n'+(null!=(r=_(n,"if").call(p,null!=s[1]?_(s[1],"showDistance"):s[1],{name:"if",hash:{},fn:t.program(7,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:52,column:16},end:{line:54,column:23}}}))?r:"")+'                <input type="button" id="show_details_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:55,column:54},end:{line:55,column:64}}}):l)+'" map-id="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:55,column:74},end:{line:55,column:84}}}):l)+'" value="ShowDetails" class="desktop-only" aria-label="Show details for '+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"firstName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"middleName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastNameSuffix"):r,e))+'" judges-search-show-details="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:55,column:270},end:{line:55,column:280}}}):l)+'"/>\r\n                <input type="button" id="hide_details_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{}
1,data:o,loc:{start:{line:56,column:54},end:{line:56,column:64}}}):l)+'" map-id="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:56,column:74},end:{line:56,column:84}}}):l)+'" value="HideDetails" style="display: none;" aria-label="Hide details for '+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"firstName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"middleName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastNameSuffix"):r,e))+'" judges-search-hide-details="'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:56,column:272},end:{line:56,column:282}}}):l)+'"/>\r\n            </div>\r\n            <div id="map_container_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:58,column:35},end:{line:58,column:45}}}):l)+'" class="map-container" aopc-judge-latitude="'+h(typeof(l=null!=(l=_(n,"latitude")||(null!=e?_(e,"latitude"):e))?l:u)==d?l.call(p,{name:"latitude",hash:{},data:o,loc:{start:{line:58,column:90},end:{line:58,column:102}}}):l)+'" aopc-judge-longitude="'+h(typeof(l=null!=(l=_(n,"longitude")||(null!=e?_(e,"longitude"):e))?l:u)==d?l.call(p,{name:"longitude",hash:{},data:o,loc:{start:{line:58,column:126},end:{line:58,column:139}}}):l)+'">\r\n                <div id="map_canvas_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,loc:{start:{line:59,column:36},end:{line:59,column:46}}}):l)+'" class="map-canvas" style="height: 250px;"></div>\r\n                <div id="get_directions_container_'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{}
1,data:o,loc:{start:{line:60,column:50},end:{line:60,column:60}}}):l)+'">\r\n                    <a href="http://maps.google.com/maps?saddr&daddr='+h(typeof(l=null!=(l=_(n,"googleMapsUrl")||(null!=e?_(e,"googleMapsUrl"):e))?l:u)==d?l.call(p,{name:"googleMapsUrl",hash:{},data:o,loc:{start:{line:61,column:69},end:{line:61,column:86}}}):l)+'" class="get-directions-btn" target="_blank" title="Get Directions" aria-label="Get directions for '+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"firstName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"middleName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastName"):r,e))+" "+h(c(null!=(r=null!=e?_(e,"judge"):e)?_(r,"lastNameSuffix"):r,e))+'"></a>\r\n                </div>\r\n            </div>\r\n        </td>\r\n    </tr>\r\n'},1:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                <span>"+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"judge"):e)?a(t,"countyName"):t,e))+"</span>\r\n"},2:function(t,e,n,i,o){var a,s=t.lambda,r=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                <span>"+r(s(null!=(a=null!=e?t(e,"judge"):e)?t(a,"countyName"):a,e))+" ("+r(s(null!=(a=null!=e?t(e,"judge"):e)?t(a,"judicialDistrict"):a,e))+")</span>\r\n"},3:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <td class="result-col">\r\n                '+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"judge"):e)?a(t,"magisterialDistrict"):t,e))+"\r\n            </td>\r\n"},4:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                        "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"judge"):e)?a(t,"title"):t,e))+"\r\n"},5:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                        <em>phone:</em>\r\n                        <span>"+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"judge"):e)?a(t,"phone"):t,e))+"</span>\r\n"},6:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                        <em>fax:</em>\r\n                        <span>&nbsp;"+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"judge"):e)?a(t,"fax"):t,e))+"</span>\r\n"},7:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                    <span><strong>"+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"distance")||(null!=e?a(e,"distance"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"distance",hash:{},data:o,loc:{start:{line:53,column:34},end:{line:53,column:46}}}):n)+" miles</strong></span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=e?r(e,"judges"):e,{name:"each",hash:{},fn:t.program(0,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:66,column:9}}}))?n:""},useData:!0,useDepths:!0}),this.us.pacourts.templates.mediaResources=Handlebars.template({0:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,e,"==",0,{name:"ifCond",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:5,column:12},end:{line:7,column:23}}}))?a:"")+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,e,"==",4,{name:"ifCond",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:8,column:12},end:{line:10,column:23}}}))?a:"")+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,e,"==",2,{name:"ifCond",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o,loc:{start:{line:11,column:12},end:{line:13,column:23}}}
vendor: 8,792 bytes, line 1
1))?a:"")+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,e,"==",1,{name:"ifCond",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o,loc:{start:{line:14,column:12},end:{line:16,column:23}}}))?a:"")+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,e,"==",3,{name:"ifCond",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o,loc:{start:{line:17,column:12},end:{line:19,column:23}}}))?a:"")},1:function(t,e,n,i,o){return'            <div class="video"><span>‌</span></div>\r\n'},2:function(t,e,n,i,o){return'            <div class="image"><span>‌</span></div>\r\n'},3:function(t,e,n,i,o){return'            <div class="audio"><span>‌</span></div>\r\n'},4:function(t,e,n,i,o){return'            <div class="chart"><span>‌</span></div>\r\n'},5:function(t,e,n,i,o){return'            <div class="news-release"><span>‌</span></div>\r\n'},6:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"\r\n"+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,null!=e?l(e,"type"):e,"==",0,{name:"ifCond",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o,loc:{start:{line:48,column:20},end:{line:53,column:31}}}))?a:"")+"\r\n"+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,null!=e?l(e,"type"):e,"==",1,{name:"ifCond",hash:{},fn:t.program(8,o,0),inverse:t.noop,data:o,loc:{start:{line:56,column:20},end:{line:61,column:31}}}))?a:"")+"\r\n"+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,null!=e?l(e,"type"):e,"==",2,{name:"ifCond",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o,loc:{start:{line:64,column:20},end:{line:69,column:31}}}))?a:"")+"\r\n"+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,null!=e?l(e,"type"):e,"==",3,{name:"ifCond",hash:{},fn:t.program(10,o,0),inverse:t.noop,data:o,loc:{start:{line:72,column:20},end:{line:77,column:31}}}))?a:"")+"\r\n"+(null!=(a=(l(n,"ifCond")||e&&l(e,"ifCond")||r).call(s,null!=e?l(e,"type"):e,"==",4,{name:"ifCond",hash:{},fn:t.program(11,o,0),inverse:t.noop,data:o,loc:{start:{line:80,column:20},end:{line:85,column:31}}}))?a:"")},7:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <a href="'+p(typeof(a=null!=(a=t(n,"videoUrl")||(null!=e?t(e,"videoUrl"):e))?a:r)==l?a.call(s,{name:"videoUrl",hash:{},data:o,loc:{start:{line:49,column:29},end:{line:49,column:41}}}):a)+'" target="_blank" rel="lytebox" class="lytebox" data-title="'+p(typeof(a=null!=(a=t(n,"videoTitle")||(null!=e?t(e,"videoTitle"):e))?a:r)==l?a.call(s,{name:"videoTitle",hash:{},data:o,loc:{start:{line:49,column:101},end:{line:49,column:115}}}):a)+'" data-lyte-options="doAnimations:false width:590 height:360 afterStart:videoAfterStartCallback">\r\n                        <span class="visually-hidden">Video</span>\r\n                        <input type="button" value="Video" class="clear-left" aria-hidden="true">\r\n                    </a>\r\n'},8:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <a href="'+p(typeof(a=null!=(a=t(n,"fullPath")||(null!=e?t(e,"fullPath"):e))?a:r)==l?a.call(s,{name:"fullPath",hash:{},data:o,loc:{start:{line:57,column:29},end:{line:57,column:41}}}):a)+'" download="'+p(typeof(a=null!=(a=t(n,"fileName")||(null!=e?t(e,"fileName"):e))?a:r)==l?a.call(s,{name:"fileName",hash:{},data:o,loc:{start:{line:57,column:53},end:{line:57,column:65}}}):a)+'">\r\n                        <span class="visually-hidden">Chart</span>\r\n                        <input type="button" value="Chart" aria-hidden="true">\r\n                    </a>\r\n'},9:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <a href="javascript:;" audio-resource="'+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"mediaResourceId")||(null!=e?a(e,"mediaResourceId"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"mediaResourceId",hash:{},data:o,loc:{start:{line:65,column:59},end:{line:65,column:78}}}):n)+'">\r\n                        <span class="visually-hidden">Audio</span>\r\n                        <input type="button" value="Audio" aria-hidden="true">\r\n                    </a>\r\n'},10:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <a href="'+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"fullPath")||(null!=e?a(e,"fullPath"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"fullPath",hash:{},data:o,loc:{start:{line:73,column:29},end:{line:73,column:41}}}):n)+'" target="_blank">\r\n                        <span class="visually-hidden">News Release</span>\r\n                        <input type="button" value="NewsRelease" aria-hidden="true">\r\n                    </a>\r\n'},11:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l="function",p=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <a href="'+p(typeof(a=null!=(a=t(n,"fullPath")||(null!=e?t(e,"fullPath"):e))?a:r)==l?a.call(s,{name:"fullPath",hash:{},data:o,loc:{start:{line:81,column:29},end:{line:81,column:41}}}):a)+'" download="'+p(typeof(a=null!=(a=t(n,"fileName")||(null!=e?t(e,"fileName"):e))?a:r)==l?a.call(s,{name:"fileName",hash:{},data:o,loc:{start:{line:81,column:53},end:{line:81,column:65}}}):a)+'">\r\n                        <span class="visually-hidden">Photo</span>\r\n                        <input type="button" value="Photo" aria-hidden="true">\r\n                    </a>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,r="function",l=t.escapeExpression,p=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]},l='<div class="col odd">\r\n    <div class="media resource">\r\n        <div class="img">\r\n'+(null!=(d=p(n,"each").call(a,null!=e?p(e,"itemTypes"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:4,column:8},end:{line:20,column:17}}}))?d:"")+'        </div>\r\n        <div class="bd">\r\n            <div class="media resource body">\r\n                <div class="resource__images">\r\n                    <div class="img-right">\r\n                        <a href="'+l(typeof(u=null!=(u=p(n,"imageUrl")||(null!=e?p(e,"imageUrl"):e))?u:s)==r?u.call(a,{name:"imageUrl",hash:{},data:o,loc:{start:{line:26,column:33},end:{line:26,column:45}}}):u)+'" class="lytebox" title="'+l(typeof(u=null!=(u=p(n,"name")||(null!=e?p(e,"name"):e))?u:s)==r?u.call(a,{name:"name",hash:{},data:o,loc:{start:{line:26,column:70},end:{line:26,column:78}}}):u)+'" data-description="'+l(typeof(u=null!=(u=p(n,"description")||(null!=e?p(e,"description"):e))?u:s)==r?u.call(a,{name:"description",hash:{},data:o,loc:{start:{line:26,column:98},end:{line:26,column:113}}}):u)+'" data-lyte-options="slide:false doAnimations:false afterStart:imageAfterStartCallback args:true afterEnd:imageAfterEndCallback group:'+l(typeof(u=null!=(u=p(n,"id")||(null!=e?p(e,"id"):e))?u:s)==r?u.call(a,{name:"id",hash:{},data:o,loc:{start:{line:26,column:247},end:{line:26,column:253}}}):u)+'">\r\n                            '+(null!=(d=typeof(u=null!=(u=p(n,"thumbnail")||(null!=e?p(e,"thumbnail"):e))?u:s)==r?u.call(a,{name:"thumbnail",hash:{},data:o,loc:{start:{line:27,column:28},end:{line:27,column:43}}}):u)?d:"")+'\r\n                        </a>\r\n                    </div>\r\n                </div>\r\n                <div class="bd">\r\n                    <h3>\r\n                        '+l(typeof(u=null!=(u=p(n,"name")||(null!=e?p(e,"name"):e))?u:s)==r?u.call(a,{name:"name",hash:{},data:o,loc:{start:{line:34,column:24},end:{line:34,column:32}}}):u)+'\r\n                        <a href="media-resources?Resource='+l(typeof(u=null!=(u=p(n,"id")||(null!=e?p(e,"id"):e))?u:s)==r?u.call(a,{name:"id",hash:{},data:o,loc:{start:{line:35,column:58},end:{line:35,column:64}}}):u)+'" aria-label="Permalink for '+l(typeof(u=null!=(u=p(n,"name")||(null!=e?p(e,"name"):e))?u:s)==r?u.call(a,{name:"name",hash:{},data:o,loc:{start:{line:35,column:92},end:{line:35,column:100}}}):u)+'">\r\n                            <img src="/Themes/AOPC/assets/images/icons/link.png" alt="" role="presentation" style="padding-left: 6px" />\r\n                        </a>\r\n                    </h3>
1\r\n                    <span class="ad-info"><time>'+l((p(n,"formatDate")||e&&p(e,"formatDate")||s).call(a,null!=e?p(e,"createdOn"):e,"MM/DD/YYYY",{name:"formatDate",hash:{},data:o,loc:{start:{line:39,column:48},end:{line:39,column:85}}}))+"</time></span>\r\n                    <p>"+l(typeof(u=null!=(u=p(n,"description")||(null!=e?p(e,"description"):e))?u:s)==r?u.call(a,{name:"description",hash:{},data:o,loc:{start:{line:41,column:23},end:{line:41,column:38}}}):u)+"</p>\r\n\r\n",u=null!=(u=p(n,"items")||(null!=e?p(e,"items"):e))?u:s,s={name:"items",hash:{},fn:t.program(6,o,0),inverse:t.noop,data:o,loc:{start:{line:43,column:16},end:{line:86,column:26}}},d=typeof u==r?u.call(a,s):u;return null!=(d=p(n,"items")?d:t.hooks.blockHelperMissing.call(e,d,s))&&(l+=d),l+"                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n"},useData:!0}),this.us.pacourts.templates.mediaResourcesAudio=Handlebars.template({0:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=e?a(e,"audioUrl"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:26,column:28},end:{line:40,column:35}}}))?n:""},1:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                            <tr>\r\n                                <td>"+s(a(null!=e?t(e,"audioSpeakerName"):e,e))+"</td>\r\n                                <td>"+s(a(null!=e?t(e,"audioOutCue"):e,e))+'</td>\r\n                                <td>\r\n                                    <div style="height:30px;">\r\n                                        <audio id="audio-'+s(a(null!=e?t(e,"id"):e,e))+'" preload="metadata" controls style="min-height: 10px; max-height: 100%;">\r\n                                            <source src="'+s(a(null!=e?t(e,"audioUrl"):e,e))+'" type="audio/mpeg">\r\n                                            <source src="'+s(a(null!=e?t(e,"audioUrl"):e,e))+'" type="audio/ogg">\r\n                                            Your browser does not support the audio element.\r\n                                        </audio>\r\n                                    </div>\r\n                                </td><td><a href="'+s(a(null!=e?t(e,"audioUrl"):e,e))+'" target="_blank" download="'+s(a(null!=e?t(e,"audioUrl"):e,e))+'" title="Right-click to save"><input type="button" value="Download"></a></td>\r\n                            </tr>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<a id="lbLauncher" class="lytebox" style=""></a>\r\n<div id="lbOverlay" class="grey" style=" height: 7058px; opacity: 0.8;" audio-modal-overlay></div>\r\n<div id="lbMain" style=" position: absolute; top: 1269.42px; height: fit-content;" class="audio-modal">\r\n    <div id="lbOuterContainer" class="grey" style="border-radius: 8px; width: 964px; height: fit-content; padding-bottom: 23px;">\r\n        <div id="lbTopContainer" class="grey" style="border-radius: 8px;">\r\n            <div id="lbTopData" class="grey">\r\n                <span id="lbTitleTop"></span>\r\n                <span id="lbNumTop"></span>\r\n            </div>\r\n            <div id="lbTopNav">\r\n                <a id="lbCloseTop" title="Close (Esc)"      class="grey" href="javascript:void(0)" style="display: none;"></a>\r\n                <a id="lbPrintTop" title="Print"            class="grey" href="javascript:void(0)" style="display: none;"></a>\r\n                <a id="lbNextTop"  title="Next (→)"         class="grey" href="javascript:void(0)" style="display: none;"></a>\r\n                <a id="lbPauseTop" title="Pause (spacebar)" class="grey" href="javascript:void(0)" style="display: none;"></a>\r\n                <a id="lbPlayTop"  title="Play (spacebar)"  class="grey" href="javascript:void(0)" style="display: none;"></a>\r\n                <a id="lbPrevTop"  title="Previous (←)"     class="grey" href="javascript:void(0)" style="display: none;"></a>\r\n            </div>\r\n        </div>\r\n        <div id="lbIframeContainer" style="">\r\n            <center>\r\n                <div>\r\n                    <table border="0" width="690" class="five-col" summary="The first two columns provide information about the audio clips, such as the speaker. The last two columns alows the audio clip to be played or downloaded.">\r\n                        <caption>List of audio clips for this media release</caption>\r\n                        <tbody><tr><th scope="col">Speaker Name</th><th scope="col">Out Cue</th><th scope="col">Listen</th><th scope="col">Download</th></tr>\r\n'+(null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"items"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:25,column:24},end:{line:41,column:33}}}))?n:"")+'                        </tbody>\r\n                    </table>\r\n\r\n                </div>\r\n            </center>\r\n            <div id="lbBottomContainer" class="grey" style="border-radius: 8px; display: block;">\r\n                <div id="lbBottomData" class="grey" style="width: 895px; height: 25px;">
1\r\n                    <span id="lbTitleBottom"></span>\r\n                    <span id="lbDescBottom" style="display: none; width: 895px;"></span>\r\n                    <span id="lbNumBottom"></span></div><div id="lbBottomNav">\r\n                <a id="lbClose" title="Close (Esc)" class="grey" href="javascript:void(0)" audio-modal-close></a>\r\n            </div>\r\n            </div>\r\n        </div>\r\n        <div id="lbImageContainer" style="display: none;">\r\n            <img id="lbImage" class="grey" style="display: none;">\r\n            <div id="lbHoverNav" style="display: none;">\r\n                <a id="lbPrevHov" title="Previous (←)" class="grey" href="javascript:void(0)" style="display: none; height: 500px;"></a>\r\n                <a id="lbNextHov" title="Next (→)" class="grey" href="javascript:void(0)" style="display: none; height: 500px;"></a>\r\n            </div>\r\n        </div>\r\n        <div id="lbLoading" class="grey" style="margin-top: -10px; display: none;"></div>\r\n    </div>\r\n</div>\r\n'},useData:!0}),this.us.pacourts.templates.superiorOpinion=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results superior">\r\n            <caption>'+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:7,column:21},end:{line:7,column:32}}}):s)+'</caption>\r\n            <thead>\r\n            <tr class="title-row">\r\n                <th scope="col" colspan="2">\r\n                    <strong>\r\n                        '+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:12,column:24},end:{line:12,column:35}}}):s)+'\r\n                        <br />\r\n                    </strong>\r\n                </th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr>\r\n                <th headers="search_th_var" scope="row">\r\n                    Posted by:\r\n                </th>\r\n                <td headers="search_th_var posted_by_var">\r\n                    <span>'+u(typeof(s=null!=(s=d(n,"UserIdentifier")||(null!=e?d(e,"UserIdentifier"):e))?s:l)==p?s.call(r,{name:"UserIdentifier",hash:{},data:o,loc:{start:{line:24,column:26},end:{line:24,column:44}}}):s)+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr class="date-row">\r\n                <th headers="search_th_var" scope="row">\r\n                    Disposition Date:\r\n                </th>\r\n                <td headers="search_th_var date_var">\r\n                    <span>'+u((d(n,"formatDate")||e&&d(e,"formatDate")||l).call(r,null!=e?d(e,"Dis
1positionDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:32,column:26},end:{line:32,column:61}}}))+"</span>\r\n                </td>\r\n            </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:35,column:12},end:{line:98,column:21}}}))?a:"")+'            </tbody>\r\n        </table>\r\n        <input type="button" value="Edit" aopc-opinions-edit-button="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:101,column:69},end:{line:101,column:75}}}):s)+'" />\r\n    </div>\r\n'},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l=t.escapeExpression,p="function",u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posting Date:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_posting_date_var">\r\n                        <span>'+l((u(n,"formatDate")||e&&u(e,"formatDate")||r).call(s,null!=e?u(e,"PostedDateDisplay"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:41,column:30},end:{line:41,column:67}}}))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Publication Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>\r\n'+(null!=(a=u(n,"if").call(s,null!=e?u(e,"PublicationType"):e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.program(6,o,0),data:o,loc:{start:{line:50,column:28},end:{line:58,column:35}}}))?a:"")+'                        </span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posting Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>'+l(t.lambda(null!=(a=null!=e?u(e,"PostType"):e)?u(a,"PostingTypeCode"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="post-author-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Decision Author:\r\n                    </th>\r\n                    <td headers="search_th_var post_author_var">\r\n                        <span>\r\n'+(null!=(a=u(n,"if").call(s,null!=e?u(e,"Author"):e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.program(6,o,0),data:o,loc:{start:{line:76,column:28},end:{line:84,column:35}}}))?a:"")+'                        </span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="download-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Download:\r\n                    </th>\r\n                    <td headers="search_th_var download_var">\r\n                        <a aria-label="View File" class="link" href="/assets/opinions/Superior/out/'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:93,column:99},end:{line:93,column:111}}}):t)+"?cb="+l(typeof(t=null!=(t=u(n,"FileVersion")||(null!=e?u(e,"FileVersion"):e))?t:r)==p?t.call(s,{name:"FileVersion",hash:{},data:o,loc:{start:{line:93,column:115},end:{line:93,column:130}}}):t)+'" target="_blank">\r\n                            <span title="'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:94,column:41},end:{line:94,column:53}}}):t)+'">&nbsp;</span>\r\n                        </a>\r\n                    </td>\r\n                </tr>\r\n'},3:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"PublicationType"):e)?a(n,"Description"):n,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.program(5,o,0),data:o,loc:{start:{line:51,column:32},end:{line:55,column:39}}}))?n:""},4:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"PublicationType"):e)?a(t,"Description"):t,e))+"\r\n"},5:function(t,e,n,i,o){return"                                    &lt;none&gt;\r\n"},6:function(t,e,n,i,o){return"                                &lt;none&gt;\r\n"},7:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"Author"):e)?a(n,"AuthorName"):n,{name:"if",hash:{},fn:t.program(8,o,0),inverse:t.program(5,o,0),data:o,loc:{start:{line:77,column:32},end:{line:81,column:39}}}))?n:""},8:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"Author"):e)?a(t,"AuthorName"):t,e))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:103,column:9}}}))?n:""},useData:!0}
1),this.us.pacourts.templates.superiorOpinionEditForm=Handlebars.template({0:function(t,e,n,i,o,a,s){var r,l,p=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,d="function",h=t.escapeExpression,c=t.lambda,_=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <tr class="date-row c-opinions-page__posteddate">\r\n                        <th scope="row">Date Posted:</th>\r\n                        <td>\r\n'+(null!=(r=_(n,"if").call(p,null!=(r=null!=s[1]?_(s[1],"selectedOpinion"):s[1])?_(r,"canEditDates"):r,{name:"if",hash:{},fn:t.program(1,o,0,a,s),inverse:t.program(5,o,0,a,s),data:o,blockParams:a,loc:{start:{line:34,column:24},end:{line:48,column:31}}}))?r:"")+'                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th scope="row">Publication Type:</th>\r\n                        <td>\r\n                            <select name="PublicationType" aopc-opinions-update-publicationtype'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:54,column:95},end:{line:54,column:105}}}):l)+" aopc-opinions-update-postingid"+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:54,column:136},end:{line:54,column:146}}}):l)+'="'+h(c(null!=(r=a[0][0])?_(r,"id"):r,e))+'">\r\n'+(null!=(r=(_(n,"select")||e&&_(e,"select")||u).call(p,null!=(r=a[0][0])?_(r,"publicationTypeId"):r,{name:"select",hash:{},fn:t.program(8,o,0,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:55,column:32},end:{line:59,column:43}}}))?r:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th scope="row">Posting Type:</th>\r\n                        <td>\r\n                            <select name="Type" aopc-opinions-update-typeselect'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:66,column:79},end:{line:66,column:89}}}):l)+">\r\n"+(null!=(r=(_(n,"select")||e&&_(e,"select")||u).call(p,null!=(r=a[0][0])?_(r,"postingTypeId"):r,{name:"select",hash:{},fn:t.program(10,o,0,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:67,column:32},end:{line:71,column:43}}}))?r:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th scope="row">Decision Author:</th>\r\n                        <td>\r\n                            <select name="Author" aopc-opinions-update-author'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:78,column:77},end:{line:78,column:87}}}):l)+">\r\n"+(null!=(r=(_(n,"select")||e&&_(e,"select")||u).call(p,null!=(r=null!=(r=a[0][0])?_(r,"author"):r)?_(r,"id"):r,{name:"select",hash:{},fn:t.program(12,o,0,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:79,column:32},end:{line:91,column:43}}}))?r:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="download-row">\r\n                        <th scope="row">\r\n                            Download:\r\n                        </th>\r\n                        <td>\r\n                            <input type="file" name="FileUpload" size="48" previous="'+h(c(null!=(r=a[0][0])?_(r,"fileName"):r,e))+'" file-version="'+h(c(null!=(r=a[0][0])?_(r,"fileVersion"):r,e))+'" aopc-opinions-update-file'+h(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==d?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:100,column:165},end:{line:100,column:175}}}):l)+'>\r\n                            <a href="javascript:;" aopc-posting-delete-button="'+h(c(null!=(r=a[0][0])?_(r,"id"):r,e))+'">Delete Item</a>\r\n                        </td>\r\n                    </tr>\r\n'},1:function(t,e,n,i,o,a){var s,r,l=null!=e?e:t.nullContext||{},p=t.hooks.helperMissing,u=t.escapeExpression,d="function",h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};
1return"                            <span>"+u((h(n,"formatDate")||e&&h(e,"formatDate")||p).call(l,null!=(s=a[1][0])?h(s,"processedDate"):s,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:35,column:34},end:{line:35,column:72}}}))+'</span>\r\n                            <label class="c-opinions-page__posteddate__toggle-wrapper">\r\n                                <input type="checkbox" id="aopc-opinions-update-posteddateoverride'+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:37,column:98},end:{line:37,column:108}}}):r)+'-toggle" '+(null!=(s=h(n,"if").call(l,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,{name:"if",hash:{},fn:t.program(2,o,0,a),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:37,column:117},end:{line:37,column:163}}}))?s:"")+" />\r\n                                Change Date\r\n                            </label>\r\n                            <div "+(null!=(s=h(n,"if").call(l,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,{name:"if",hash:{},fn:t.program(3,o,0,a),inverse:t.program(4,o,0,a),data:o,blockParams:a,loc:{start:{line:40,column:33},end:{line:40,column:97}}}))?s:"")+" aopc-opinions-update-posteddateoverride"+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:40,column:137},end:{line:40,column:147}}}):r)+'-wrapper>\r\n                                <input type="text" value="'+u((h(n,"formatDate")||e&&h(e,"formatDate")||p).call(l,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:41,column:58},end:{line:41,column:101}}}))+'" class="c-opinions-page__posteddateoverride" aopc-opinions-update-posteddateoverride'+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:41,column:186},end:{line:41,column:196}}}):r)+' />\r\n                            </div>\r\n                            <input type="hidden" value="'+u(t.lambda(null!=(s=a[1][0])?h(s,"processedDate"):s,e))+'" aopc-opinions-update-processeddate'+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:43,column:114},end:{line:43,column:124}}}):r)+" />\r\n"},2:function(t,e,n,i,o){return" checked"},3:function(t,e,n,i,o){return" "},4:function(t,e,n,i,o){return' class="-hidden" '},5:function(t,e,n,i,o,a){var s,r=null!=e?e:t.nullContext||{},l=t.lambda,p=t.escapeExpression,u=t.hooks.helperMissing,d="function",h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                            "+(null!=(s=h(n,"if").call(r,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,{name:"if",hash:{},fn:t.program(6,o,0,a),inverse:t.program(7,o,0,a),data:o,blockParams:a,loc:{start:{line:45,column:28},end:{line:45,column:155}}}))?s:"")+'\r\n                            <input type="hidden" value="'+p(l(null!=(s=a[1][0])?h(s,"processedDate"):s,e))+'" aopc-opinions-update-processeddate'+p(typeof(t=null!=(t=h(n,"index")||o&&h(o,"index"))?t:u)==d?t.call(r,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:46,column:114},end:{line:46,column:124}}}):t)+' />\r\n                            <input type="hidden" value="'+p(l(null!=(s=a[1][0])?h(s,"postedDateOverride"):s,e))+'" aopc-opinions-update-posteddateoverride'+p(typeof(t=null!=(t=h(n,"index")||o&&h(o,"index"))?t:u)==d?t.call(r,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:47,column:124},end:{line:47,column:134}}}):t)+" />\r\n"},6:function(t,e,n,i,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression((s(n,"formatDate")||e&&s(e,"formatDate")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=a[2][0])?s(n,"postedDateOverride"):n,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:45,column:59},end:{line:45,column:102}}}))},7:function(t,e,n,i,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression((s(n,"formatDate")||e&&s(e,"formatDate")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=a[2][0])?s(n,"processedDate"):n,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:45,column:110},end:{line:45,column:148}}}))},8:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=null!=s[1]?r(s[1],"metadata"):s[1])?r(n,"publicationTypes"):n,{name:"each",hash:{},fn:t.program(9,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:56,column:32},end:{line:58,column:41}}}))?n:""},9:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <option value="'+s(a(null!=e?t(e,"Id"):e,e))+'">'+s(a(null!=e?t(e,"Description"):e,e))+"</option>\r\n"},10:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=null!=s[1]?r(s[1],"metadata"):s[1])?r(n,"postTypes"):n,{name:"each",hash:{},fn:t.program(11,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:68,column:32},end:{line:70,column:41}}}))?n:""},11:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <option value="'+s(a(null!=e?t(e,"PostingTypeId"):e,e))+'">'+s(a(null!=e?t(e,"PostingTypeCode"):e,e))+"</option>\r\n"},12:function(t,e,n,i,o,a,s){var r,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <optgroup label="Current Authors">\r\n                                    <option value="">&lt;none&gt;</option>\r\n'+(null!=(r=l(n,"each").call(e,null!=(r=null!=s[1]?l(s[1],"metadata"):s[1])?l(r,"currentAuthors"):r,{name:"each",hash:{},fn:t.program(13,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:82,column:36},end:{line:84,column:45}}}))?r:"")+'                                </optgroup>\r\n                                <optgroup label="Former Authors">\r\n'+(null!=(r=l(n,"each").call(e,null!=(r=null!=s[1]?l(s[1],"metadata"):s[1])?l(r,"formerAuthors"):r,{name:"each",hash:{},fn:t.program(13,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:87,column:36},end:{line:89,column:45}}}))?r:"")+"                                </optgroup>\r\n"},13:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <option value="'+s(a(null!=e?t(e,"Id"):e,e))+'">'+s(a(null!=e?t(e,"AuthorName"):e,e))+"</option>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r,l=t.lambda,p=t.escapeExpression,u=null!=e?e:t.nullContext||{},d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="col" edit-opinion-form="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'">\r\n    <form method="post">\r\n        <fieldset>\r\n            <table class="search-results superior">\r\n                <caption>Judgment List</caption>\r\n                <thead>\r\n                    <tr class="title-row">\r\n                        <th scope="col" colspan="2">\r\n                            <textarea rows="3" cols="20" name="Caption" aopc-opinions-update-caption>'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"caption"):r,e))+'</textarea>\r\n                        </th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr>\r\n                        <th scope="row">Posted by:</th>\r\n                        <td>\r\n                            <input type="text" name="UserID" maxlength="50" value="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"userIdentifier"):r,e))+'" aopc-opinions-update-userid>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="date-row">\r\n                        <th scope="row">Disposition Date:</th>\r\n                        <td>
1\r\n                            <span>\r\n                                <input type="text" name="Date" value="'+p((d(n,"formatDate")||e&&d(e,"formatDate")||t.hooks.helperMissing).call(u,null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"dispositionDate"):r,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:24,column:70},end:{line:24,column:121}}}))+'" maxlength="10" aopc-opinions-update-dispositiondate>\r\n                            </span>\r\n                        </td>\r\n                    </tr>\r\n                    <tr style="height:25px;"><td colspan="2"></td></tr>\r\n\r\n'+(null!=(r=d(n,"each").call(u,null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"postings"):r,{name:"each",hash:{},fn:t.program(0,o,1,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:30,column:20},end:{line:104,column:29}}}))?r:"")+'                </tbody>\r\n            </table>\r\n            <div>\r\n                <br />\r\n                <ul id="EditValidationErrors1" aria-label="update errors" aria-live="polite" style=" color: red;" aopc-opinions-update-errors></ul>\r\n                <input type="hidden" value="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"uploadDate"):r,e))+'" aopc-opinions-update-uploaddate>\r\n                <input type="hidden" name="Mode" value="edit">\r\n                <input type="hidden" name="ControlID" value="969">\r\n                <input type="hidden" name="SettingID" value="121">\r\n                <input type="hidden" name="ValueID" value="2766">\r\n                <input type="hidden" name="SearchResultIndex" value="1">\r\n                <input type="hidden" name="OpinionID" value="23754">\r\n                <input type="hidden" name="ItemDeleteIndex" id="ItemDeleteIndex1" value="">\r\n                <input type="hidden" name="ItemDeleteID" id="ItemDeleteID1" value="">\r\n                <input type="hidden" name="NumPostings" value="3">\r\n                <input type="hidden" id="AjaxFormStatus1" value="">\r\n                <input type="submit" name="FormButton" value="Submit" aopc-opinions-update-button="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'" aopc-opinions-posting-count="'+p(l(null!=(r=null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"postings"):r)?d(r,"length"):r,e))+'">\r\n                <input type="submit" name="FormButton" value="Delete" aopc-opinions-delete-button="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'">\r\n                <input type="button" value="Cancel" aopc-opinions-cancel-button="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'">\r\n            </div>\r\n        </fieldset>\r\n    </form>\r\n</div>\r\n'},useData:!0,useDepths:!0,useBlockParams:!0}),this.us.pacourts.templates.superiorOpinionUnauthorized=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results superior">\r\n            <caption>'+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:7,column:21},end:{line:7,column:32}}}):s)+'</caption>\r\n            <thead>\r\n            <tr class="title-row">\r\n                <th scope="col" colspan="2">\r\n                    <strong>\r\n                        '+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:12,column:24},end:{line:12,column:35}}}):s)+'\r\n                        <br />\r\n                    </strong>\r\n                </th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr>\r\n                <th headers="search_th_var" scope="row">\r\n                    Posted by:\r\n                </th>\r\n                <td headers="search_th_var posted_by_var">
1\r\n                    <span>'+u(typeof(s=null!=(s=d(n,"UserIdentifier")||(null!=e?d(e,"UserIdentifier"):e))?s:l)==p?s.call(r,{name:"UserIdentifier",hash:{},data:o,loc:{start:{line:24,column:26},end:{line:24,column:44}}}):s)+'</span>\r\n                </td>\r\n            </tr>\r\n            <tr class="date-row">\r\n                <th headers="search_th_var" scope="row">\r\n                    Disposition Date:\r\n                </th>\r\n                <td headers="search_th_var date_var">\r\n                    <span>'+u((d(n,"formatDate")||e&&d(e,"formatDate")||l).call(r,null!=e?d(e,"DispositionDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:32,column:26},end:{line:32,column:61}}}))+"</span>\r\n                </td>\r\n            </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:35,column:12},end:{line:98,column:21}}}))?a:"")+"            </tbody>\r\n        </table>\r\n    </div>\r\n"},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l=t.escapeExpression,p="function",u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posting Date:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_posting_date_var">\r\n                        <span>'+l((u(n,"formatDate")||e&&u(e,"formatDate")||r).call(s,null!=e?u(e,"PostedDateDisplay"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:41,column:30},end:{line:41,column:67}}}))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Publication Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>\r\n'+(null!=(a=u(n,"if").call(s,null!=e?u(e,"PublicationType"):e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.program(6,o,0),data:o,loc:{start:{line:50,column:28},end:{line:58,column:35}}}))?a:"")+'                        </span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posting Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>'+l(t.lambda(null!=(a=null!=e?u(e,"PostType"):e)?u(a,"PostingTypeCode"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="post-author-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Decision Author:\r\n                    </th>\r\n                    <td headers="search_th_var post_author_var">\r\n                        <span>\r\n'+(null!=(a=u(n,"if").call(s,null!=e?u(e,"Author"):e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.program(6,o,0),data:o,loc:{start:{line:76,column:28},end:{line:84,column:35}}}))?a:"")+'                        </span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="download-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Download:\r\n                    </th>\r\n                    <td headers="search_th_var download_var">\r\n                        <a aria-label="View File" class="link" href="/assets/opinions/Superior/out/'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:93,column:99},end:{line:93,column:111}}}):t)+"?cb="+l(typeof(t=null!=(t=u(n,"FileVersion")||(null!=e?u(e,"FileVersion"):e))?t:r)==p?t.call(s,{name:"FileVersion",hash:{},data:o,loc:{start:{line:93,column:115},end:{line:93,column:130}}}):t)+'" target="_blank">
1\r\n                            <span title="'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:94,column:41},end:{line:94,column:53}}}):t)+'">&nbsp;</span>\r\n                        </a>\r\n                    </td>\r\n                </tr>\r\n'},3:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"PublicationType"):e)?a(n,"Description"):n,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.program(5,o,0),data:o,loc:{start:{line:51,column:32},end:{line:55,column:39}}}))?n:""},4:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"PublicationType"):e)?a(t,"Description"):t,e))+"\r\n"},5:function(t,e,n,i,o){return"                                    &lt;none&gt;\r\n"},6:function(t,e,n,i,o){return"                                &lt;none&gt;\r\n"},7:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"Author"):e)?a(n,"AuthorName"):n,{name:"if",hash:{},fn:t.program(8,o,0),inverse:t.program(5,o,0),data:o,loc:{start:{line:77,column:32},end:{line:81,column:39}}}))?n:""},8:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"Author"):e)?a(t,"AuthorName"):t,e))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:102,column:9}}}))?n:""},useData:!0}),this.us.pacourts.templates.supremeOpinion=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results">\r\n            <caption>'+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:7,column:21},end:{line:7,column:32}}}):s)+'</caption>\r\n            <thead>\r\n                <tr class="title-row">\r\n                    <th scope="col" colspan="2">\r\n                        <strong>\r\n                            '+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:12,column:28},end:{line:12,column:39}}}):s)+'\r\n                            <br />\r\n                        </strong>\r\n                    </th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posted by:\r\n                    </th>\r\n                    <td headers="search_th_var posted_by_var">\r\n                        <span>'+u(typeof(s=null!=(s=d(n,"UserIdentifier")||(null!=e?d(e,"UserIdentifier"):e))?s:l)==p?s.call(r,{name:"UserIdentifier",hash:{},data:o,loc:{start:{line:24,column:30},end:{line:24,column:48}}}):s)+"</span>\r\n                    </td>\r\n                </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:27,column:16},end:{line:80,column:25}}}))?a:"")+'            </tbody>\r\n        </table>\r\n        <input type="button" value="Edit" aopc-opinions-edit-button="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:83,column:69},end:{line:83,column:75}}}):s)+'" />\r\n    </div>\r\n'},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l=t.escapeExpression,p="function",u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <tr class="date-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Date Rendered:\r\n                    </th>\r\n                    <td headers="search_th_var date_var">
1\r\n                        <span>'+l((u(n,"formatDate")||e&&u(e,"formatDate")||r).call(s,null!=e?u(e,"RenderedDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:33,column:30},end:{line:33,column:62}}}))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="date-row">\r\n                    <th headers="search_th_var" scope="row">\r\n                        Date Posted:\r\n                    </th>\r\n                    <td headers="search_th_var date_var">\r\n                        <span>'+l((u(n,"formatDate")||e&&u(e,"formatDate")||r).call(s,null!=e?u(e,"PostedDateDisplay"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:41,column:30},end:{line:41,column:67}}}))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Opinion by:\r\n                    </th>\r\n                    <td headers="search_th_var">\r\n                        <span>\r\n'+(null!=(a=u(n,"if").call(s,null!=e?u(e,"Author"):e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.program(6,o,0),data:o,loc:{start:{line:50,column:28},end:{line:58,column:35}}}))?a:"")+'                        </span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posting Type:\r\n                    </th>\r\n                    <td headers="search_th_var opinion_status_var">\r\n                        <span>'+l(t.lambda(null!=(a=null!=e?u(e,"PostType"):e)?u(a,"PostingTypeId"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="download-row">\r\n                    <th scope="row">\r\n                        Download:\r\n                    </th>\r\n                    <td>\r\n                        <a aria-label="View File" class="link" href="/assets/opinions/Supreme/out/'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:75,column:98},end:{line:75,column:110}}}):t)+"?cb="+l(typeof(t=null!=(t=u(n,"FileVersion")||(null!=e?u(e,"FileVersion"):e))?t:r)==p?t.call(s,{name:"FileVersion",hash:{},data:o,loc:{start:{line:75,column:114},end:{line:75,column:129}}}):t)+'" target="_blank">\r\n                            <span title="'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:76,column:41},end:{line:76,column:53}}}):t)+'">&nbsp;</span>\r\n                        </a>\r\n                    </td>\r\n                </tr>\r\n'},3:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"Author"):e)?a(n,"AuthorName"):n,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.program(5,o,0),data:o,loc:{start:{line:51,column:32},end:{line:55,column:39}}}))?n:""},4:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"Author"):e)?a(t,"AuthorName"):t,e))+"\r\n"},5:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"AuthorId")||(null!=e?a(e,"AuthorId"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"AuthorId",hash:{},data:o,loc:{start:{line:54,column:36},end:{line:54,column:48}}}):n)+"\r\n"},6:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                "+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"AuthorId")||(null!=e?a(e,"AuthorId"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"AuthorId",hash:{},data:o,loc:{start:{line:57,column:32},end:{line:57,column:44}}}):n)+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:85,column:9}}}))?n:""},useData:!0}
1),this.us.pacourts.templates.supremeOpinionEditForm=Handlebars.template({0:function(t,e,n,i,o){return'                                    <option value=""></option>\r\n                                    <option value="E.D. Prothonotary">E.D. Prothonotary</option>\r\n                                    <option value="M.D. Prothonotary">M.D. Prothonotary</option>\r\n                                    <option value="W.D. Prothonotary">W.D. Prothonotary</option>\r\n'},1:function(t,e,n,i,o,a,s){var r,l,p=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,d=t.escapeExpression,h="function",c=t.lambda,_=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <tr>\r\n                        <th scope="row">Date Rendered:</th>\r\n                        <td>\r\n                            <input type="text" maxlength="200" value="'+d((_(n,"formatDate")||e&&_(e,"formatDate")||u).call(p,null!=(r=a[0][0])?_(r,"renderedDate"):r,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:32,column:70},end:{line:32,column:107}}}))+'" aopc-opinions-update-datepicker'+d(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==h?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:32,column:140},end:{line:32,column:150}}}):l)+" aopc-opinions-update-postingid"+d(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==h?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:32,column:181},end:{line:32,column:191}}}):l)+'="'+d(c(null!=(r=a[0][0])?_(r,"id"):r,e))+'">\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="date-row c-opinions-page__posteddate">\r\n                        <th scope="row">Date Posted:</th>\r\n                        <td>\r\n'+(null!=(r=_(n,"if").call(p,null!=(r=null!=s[1]?_(s[1],"selectedOpinion"):s[1])?_(r,"canEditDates"):r,{name:"if",hash:{},fn:t.program(2,o,0,a,s),inverse:t.program(6,o,0,a,s),data:o,blockParams:a,loc:{start:{line:38,column:24},end:{line:52,column:31}}}))?r:"")+'                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th scope="row">Opinion by:</th>\r\n                        <td>\r\n                            <select name="Author1" post-author aopc-opinions-update-author'+d(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==h?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:58,column:90},end:{line:58,column:100}}}):l)+">\r\n"+(null!=(r=(_(n,"select")||e&&_(e,"select")||u).call(p,null!=(r=null!=(r=a[0][0])?_(r,"author"):r)?_(r,"authorCode"):r,{name:"select",hash:{},fn:t.program(9,o,0,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:59,column:32},end:{line:70,column:43}}}))?r:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <th scope="row">Posting type:</th>\r\n                        <td>\r\n                            <select name="Type" aopc-opinions-update-typeselect'+d(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==h?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:77,column:79},end:{line:77,column:89}}}):l)+">\r\n"+(null!=(r=(_(n,"select")||e&&_(e,"select")||u).call(p,null!=(r=null!=(r=a[0][0])?_(r,"postType"):r)?_(r,"postingTypeCode"):r,{name:"select",hash:{},fn:t.program(11,o,0,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:78,column:32},end:{line:82,column:43}}}))?r:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr class="download-row">\r\n                        <th scope="row">\r\n                            Download:\r\n                        </th>\r\n                        <td>\r\n                            <input type="file" name="FileUpload" size="80" previous="'+d(c(null!=(r=a[0][0])?_(r,"fileName"):r,e))+'" file-version="'+d(c(null!=(r=a[0][0])?_(r,"fileVersion"):r,e))+'" aopc-opinions-update-file'+d(typeof(l=null!=(l=_(n,"index")||o&&_(o,"index"))?l:u)==h?l.call(p,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:91,column:165},end:{line:91,column:175}}}):l)+'>\r\n                            <a href="javascript:;" aopc-posting-delete-button="'+d(c(null!=(r=a[0][0])?_(r,"id"):r,e))+'">Delete Item</a>\r\n                        </td>\r\n                    </tr>\r\n'},2:function(t,e,n,i,o,a){var s,r,l=null!=e?e:t.nullContext||{},p=t.hooks.helperMissing,u=t.escapeExpression,d="function",h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};
1return"                            <span>"+u((h(n,"formatDate")||e&&h(e,"formatDate")||p).call(l,null!=(s=a[1][0])?h(s,"processedDate"):s,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:39,column:34},end:{line:39,column:72}}}))+'</span>\r\n                            <label class="c-opinions-page__posteddate__toggle-wrapper">\r\n                                <input type="checkbox" id="aopc-opinions-update-posteddateoverride'+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:41,column:98},end:{line:41,column:108}}}):r)+'-toggle" '+(null!=(s=h(n,"if").call(l,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,{name:"if",hash:{},fn:t.program(3,o,0,a),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:41,column:117},end:{line:41,column:162}}}))?s:"")+" />\r\n                                Change Date\r\n                            </label>\r\n                            <div "+(null!=(s=h(n,"if").call(l,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,{name:"if",hash:{},fn:t.program(4,o,0,a),inverse:t.program(5,o,0,a),data:o,blockParams:a,loc:{start:{line:44,column:33},end:{line:44,column:94}}}))?s:"")+" aopc-opinions-update-posteddateoverride"+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:44,column:134},end:{line:44,column:144}}}):r)+'-wrapper>\r\n                                <input type="text" value="'+u((h(n,"formatDate")||e&&h(e,"formatDate")||p).call(l,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:45,column:58},end:{line:45,column:101}}}))+'" class="c-opinions-page__posteddateoverride" aopc-opinions-update-posteddateoverride'+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:45,column:186},end:{line:45,column:196}}}):r)+' />\r\n                            </div>\r\n                            <input type="hidden" value="'+u(t.lambda(null!=(s=a[1][0])?h(s,"processedDate"):s,e))+'" aopc-opinions-update-processeddate'+u(typeof(r=null!=(r=h(n,"index")||o&&h(o,"index"))?r:p)==d?r.call(l,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:47,column:114},end:{line:47,column:124}}}):r)+" />\r\n"},3:function(t,e,n,i,o){return"checked"},4:function(t,e,n,i,o){return""},5:function(t,e,n,i,o){return'class="-hidden"'},6:function(t,e,n,i,o,a){var s,r=null!=e?e:t.nullContext||{},l=t.lambda,p=t.escapeExpression,u=t.hooks.helperMissing,d="function",h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                            "+(null!=(s=h(n,"if").call(r,null!=(s=a[1][0])?h(s,"postedDateOverride"):s,{name:"if",hash:{},fn:t.program(7,o,0,a),inverse:t.program(8,o,0,a),data:o,blockParams:a,loc:{start:{line:49,column:28},end:{line:49,column:155}}}))?s:"")+'\r\n                            <input type="hidden" value="'+p(l(null!=(s=a[1][0])?h(s,"processedDate"):s,e))+'" aopc-opinions-update-processeddate'+p(typeof(t=null!=(t=h(n,"index")||o&&h(o,"index"))?t:u)==d?t.call(r,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:50,column:114},end:{line:50,column:124}}}):t)+' />\r\n                            <input type="hidden" value="'+p(l(null!=(s=a[1][0])?h(s,"postedDateOverride"):s,e))+'" aopc-opinions-update-posteddateoverride'+p(typeof(t=null!=(t=h(n,"index")||o&&h(o,"index"))?t:u)==d?t.call(r,{name:"index",hash:{},data:o,blockParams:a,loc:{start:{line:51,column:124},end:{line:51,column:134}}}):t)+" />\r\n"},7:function(t,e,n,i,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression((s(n,"formatDate")||e&&s(e,"formatDate")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=a[2][0])?s(n,"postedDateOverride"):n,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:49,column:59},end:{line:49,column:102}}}))},8:function(t,e,n,i,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression((s(n,"formatDate")||e&&s(e,"formatDate")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=a[2][0])?s(n,"processedDate"):n,"LL",{name:"formatDate",hash:{},data:o,blockParams:a,loc:{start:{line:49,column:110},end:{line:49,column:148}}}))},9:function(t,e,n,i,o,a,s){var r,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <optgroup label="Current Authors">\r\n'+(null!=(r=l(n,"each").call(e,null!=(r=null!=s[1]?l(s[1],"metadata"):s[1])?l(r,"currentAuthors"):r,{name:"each",hash:{},fn:t.program(10,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:61,column:40},end:{line:63,column:49}}}))?r:"")+'                                    </optgroup>\r\n                                    <optgroup label="Former Authors">\r\n'+(null!=(r=l(n,"each").call(e,null!=(r=null!=s[1]?l(s[1],"metadata"):s[1])?l(r,"formerAuthors"):r,{name:"each",hash:{},fn:t.program(10,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:66,column:40},end:{line:68,column:49}}}))?r:"")+"                                    </optgroup>\r\n"},10:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                            <option value="'+s(a(null!=e?t(e,"AuthorCode"):e,e))+'">'+s(a(null!=e?t(e,"AuthorName"):e,e))+"</option>\r\n"},11:function(t,e,n,i,o,a,s){var r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=r(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=null!=s[1]?r(s[1],"metadata"):s[1])?r(n,"postTypes"):n,{name:"each",hash:{},fn:t.program(12,o,0,a,s),inverse:t.noop,data:o,loc:{start:{line:79,column:36},end:{line:81,column:45}}}))?n:""},12:function(t,e,n,i,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <option value="'+s(a(null!=e?t(e,"PostingTypeCode"):e,e))+'">'+s(a(null!=e?t(e,"PostingTypeId"):e,e))+"</option>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,a,s){var r,l=t.lambda,p=t.escapeExpression,u=null!=e?e:t.nullContext||{},d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="one-col divided no-stripe" edit-opinion-form="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'">\r\n    <form method="post">\r\n        <fieldset>\r\n            <table class="search-results">\r\n                <thead>\r\n                    <tr class="title-row">\r\n                        <th scope="col" colspan="2">\r\n                            <textarea rows="3" cols="20" name="Caption" aopc-opinions-update-caption>'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"caption"):r,e))+'</textarea>\r\n                        </th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr>\r\n                        <th scope="row">Posted by:</th>\r\n                        <td>\r\n                            <select name="Author1" id="Author1" aopc-opinions-update-userid>\r\n'+(null!=(r=(d(n,"select")||e&&d(e,"select")||t.hooks.helperMissing).call(u,null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"userIdentifier"):r,{name:"select",hash:{},fn:t.program(0,o,0,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:17,column:32},end:{line:22,column:43}}}))?r:"")+'                            </select>\r\n                        </td>\r\n                    </tr>\r\n                    <tr style="height:25px;"><td colspan="2"></td></tr>\r\n\r\n'+(null!=(r=d(n,"each").call(u,null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"postings"):r,{name:"each",hash:{},fn:t.program(1,o,1,a,s),inverse:t.noop,data:o,blockParams:a,loc:{start:{line:28,column:20},end:{line:95,column:29}}}))?r:"")+'                </tbody>\r\n            </table>\r\n            <div>\r\n                <br />\r\n                <ul id="EditValidationErrors1" aria-label="update errors" aria-l
1ive="polite" style=" color: red;" aopc-opinions-update-errors></ul>\r\n                <input type="hidden" name="uploadDate" value="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"uploadDate"):r,e))+'" aopc-opinions-update-uploaddate>\r\n                <input type="hidden" name="Mode" value="edit">\r\n                <input type="hidden" name="SearchResultIndex" value="1">\r\n                <input type="hidden" name="ItemDeleteIndex" id="ItemDeleteIndex1" value="">\r\n                <input type="hidden" name="ItemDeleteID" id="ItemDeleteID1" value="">\r\n                <input type="hidden" id="AjaxFormStatus1" value="">\r\n                <input type="submit" name="FormButton" value="Submit" aopc-opinions-update-button="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'" aopc-opinions-posting-count="'+p(l(null!=(r=null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"postings"):r)?d(r,"length"):r,e))+'">\r\n                <input name="FormButton" value="Delete" aopc-opinions-delete-button="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'">\r\n                <input type="button" value="Cancel" aopc-opinions-cancel-button="'+p(l(null!=(r=null!=e?d(e,"selectedOpinion"):e)?d(r,"id"):r,e))+'">\r\n            </div>\r\n        </fieldset>\r\n    </form>\r\n</div>\r\n'},useData:!0,useDepths:!0,useBlockParams:!0}),this.us.pacourts.templates.supremeOpinionUnauthorized=Handlebars.template({0:function(t,e,n,i,o){var a,s,r=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,p="function",u=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div class="col" search-result="'+u(typeof(s=null!=(s=d(n,"Id")||(null!=e?d(e,"Id"):e))?s:l)==p?s.call(r,{name:"Id",hash:{},data:o,loc:{start:{line:2,column:36},end:{line:2,column:42}}}):s)+'">\r\n'+(null!=(a=d(n,"if").call(r,null!=e?d(e,"PostedToday"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:3,column:8},end:{line:5,column:15}}}))?a:"")+'        <table class="search-results">\r\n            <caption>'+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:7,column:21},end:{line:7,column:32}}}):s)+'</caption>\r\n            <thead>\r\n                <tr class="title-row">\r\n                    <th scope="col" colspan="2">\r\n                        <strong>\r\n                            '+u(typeof(s=null!=(s=d(n,"Caption")||(null!=e?d(e,"Caption"):e))?s:l)==p?s.call(r,{name:"Caption",hash:{},data:o,loc:{start:{line:12,column:28},end:{line:12,column:39}}}):s)+'\r\n                            <br>\r\n                        </strong>\r\n                    </th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr>\r\n                    <th headers="search_th_var" scope="row">\r\n                        Posted by:\r\n                    </th>\r\n                    <td headers="search_th_var posted_by_var">\r\n                        <span>'+u(typeof(s=null!=(s=d(n,"UserIdentifier")||(null!=e?d(e,"UserIdentifier"):e))?s:l)==p?s.call(r,{name:"UserIdentifier",hash:{},data:o,loc:{start:{line:24,column:30},end:{line:24,column:48}}}):s)+"</span>\r\n                    </td>\r\n                </tr>\r\n"+(null!=(a=d(n,"each").call(r,null!=e?d(e,"Postings"):e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o,loc:{start:{line:27,column:16},end:{line:80,column:25}}}))?a:"")+"            </tbody>\r\n        </table>\r\n    </div>\r\n"},1:function(t,e,n,i,o){return'        <h3 class="posted-today">Posted Today</h3>\r\n'},2:function(t,e,n,i,o){var a,s=null!=e?e:t.nullContext||{},r=t.hooks.helperMissing,l=t.escapeExpression,p="function",u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <tr class="date-row">\r\n                    <th scope="row">\r\n                        Date Rendered:\r\n                    </th>\r\n                    <td>
1\r\n                        <span>'+l((u(n,"formatDate")||e&&u(e,"formatDate")||r).call(s,null!=e?u(e,"RenderedDate"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:33,column:30},end:{line:33,column:62}}}))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="date-row">\r\n                    <th scope="row">\r\n                        Date Posted:\r\n                    </th>\r\n                    <td>\r\n                        <span>'+l((u(n,"formatDate")||e&&u(e,"formatDate")||r).call(s,null!=e?u(e,"PostedDateDisplay"):e,"LL",{name:"formatDate",hash:{},data:o,loc:{start:{line:41,column:30},end:{line:41,column:67}}}))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th scope="row">\r\n                        Opinion by:\r\n                    </th>\r\n                    <td>\r\n                        <span>\r\n'+(null!=(a=u(n,"if").call(s,null!=e?u(e,"Author"):e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.program(6,o,0),data:o,loc:{start:{line:50,column:28},end:{line:58,column:35}}}))?a:"")+'                        </span>\r\n                    </td>\r\n                </tr>\r\n                <tr>\r\n                    <th scope="row">\r\n                        Posting Type:\r\n                    </th>\r\n                    <td>\r\n                        <span>'+l(t.lambda(null!=(a=null!=e?u(e,"PostType"):e)?u(a,"PostingTypeId"):a,e))+'</span>\r\n                    </td>\r\n                </tr>\r\n                <tr class="download-row">\r\n                    <th scope="row">\r\n                        Download:\r\n                    </th>\r\n                    <td>\r\n                        <a aria-label="View File" class="link" href="/assets/opinions/Supreme/out/'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:75,column:98},end:{line:75,column:110}}}):t)+"?cb="+l(typeof(t=null!=(t=u(n,"FileVersion")||(null!=e?u(e,"FileVersion"):e))?t:r)==p?t.call(s,{name:"FileVersion",hash:{},data:o,loc:{start:{line:75,column:114},end:{line:75,column:129}}}):t)+'" target="_blank">\r\n                            <span title="'+l(typeof(t=null!=(t=u(n,"FileName")||(null!=e?u(e,"FileName"):e))?t:r)==p?t.call(s,{name:"FileName",hash:{},data:o,loc:{start:{line:76,column:41},end:{line:76,column:53}}}):t)+'">&nbsp;</span>\r\n                        </a>\r\n                    </td>\r\n                </tr>\r\n'},3:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"Author"):e)?a(n,"AuthorName"):n,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.program(5,o,0),data:o,loc:{start:{line:51,column:32},end:{line:55,column:39}}}))?n:""},4:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression(t.lambda(null!=(t=null!=e?a(e,"Author"):e)?a(t,"AuthorName"):t,e))+"\r\n"},5:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    "+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"AuthorId")||(null!=e?a(e,"AuthorId"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"AuthorId",hash:{},data:o,loc:{start:{line:54,column:36},end:{line:54,column:48}}}):n)+"\r\n"},6:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                "+t.escapeExpression("function"==typeof(n=null!=(n=a(n,"AuthorId")||(null!=e?a(e,"AuthorId"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"AuthorId",hash:{},data:o,loc:{start:{line:57,column:32},end:{line:57,column:44}}}):n)+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"opinions"):e,{name:"each",hash:{},fn:t.program(0,o,0),inverse:t.noop,data:o,loc:{start:{line:1,column:0},end:{line:84,column:9}}}))?n:""},useData:!0}
1),function(){function o(t,e){return function(){return t.apply(e,arguments)}}var a;function t(t,e,n,i){this._changeTextOpacity=o(this._changeTextOpacity,this),this._findDifferenceBetweenWidths=o(this._findDifferenceBetweenWidths,this),this._handleFlyoutNavPaddingIncrease=o(this._handleFlyoutNavPaddingIncrease,this),this._getIndexFirstChars=o(this._getIndexFirstChars,this),this._createMenuItems=o(this._createMenuItems,this),this._handleMouseout=o(this._handleMouseout,this),this._handleMouseover=o(this._handleMouseover,this),this.close=o(this.close,this),this.open=o(this.open,this),this.setFocusByFirstCharacter=o(this.setFocusByFirstCharacter,this),this.setFocusToNextItem=o(this.setFocusToNextItem,this),this.setFocusToPreviousItem=o(this.setFocusToPreviousItem,this),this.setFocusToLastItem=o(this.setFocusToLastItem,this),this.setFocusToFirstItem=o(this.setFocusToFirstItem,this),this.setFocusToController=o(this.setFocusToController,this),this.getController=o(this.getController,this),this.setHasFocus=o(this.setHasFocus,this),this.setHasHover=o(this.setHasHover,this),this.hasHover=o(this.hasHover,this),this.getDomNode=o(this.getDomNode,this),this._domNode=null,this._$domNode=null,this._controller=null,this._navMenuItem=null,this._menuItems=[],this._firstChars=[],this._firstItem=null,this._lastItem=null,this._hasFocus=!1,this._hasHover=!1,this._flyoutOpenAnimationDuration=null,this._flyoutCloseAnimationDuration=null,this._customPaddingBottom="34px",this._customPaddingRight="36px",this._widthWithOpenFlyout="785px",this._widthWithClosedFlyout="507px",this._differenceBetweenWidths=null,this.waitingForAnimation=!1,this._flyoutArrows=null,this._initialize(t,e,n,i)}(a=us.pacourts.navigation).FlyoutNavMenu=(t.prototype.waitingForAnimation=!1,t.prototype._domNode=null,t.prototype._controller=null,t.prototype._navMenuItem=null,t.prototype._menuItems=null,t.prototype._firstChars=null,t.prototype._firstItem=null,t.prototype._lastItem=null,t.prototype._hasFocus=!1,t.prototype._hasHover=!1,t.prototype._flyoutOpenAnimationDuration=null,t.prototype._flyoutCloseAnimationDuration=null,t.prototype._customPaddingBottom="34px",t.prototype._customPaddingRight="36px",t.prototype._widthWithOpenFlyout="785px",t.prototype._widthWithClosedFlyout="507px",t.prototype._differenceBetweenWidths=null,t.prototype._flyoutArrows=null,t.prototype._initialize=function(t,e,n,i){if(!t instanceof Element)throw new TypeError("PopupMenu constructor argument domNode is not a DOM Element.");return this._domNode=t,this._$domNode=$(this._domNode),this._controller=e,this._flyoutOpenAnimationDuration=n,this._flyoutCloseAnimationDuration=i,this._domNode.tabIndex=-1,this._domNode.setAttribute("role","menu"),this._domNode.addEventListener("mouseover",this._handleMouseover),this._domNode.addEventListener("mouseout",this._handleMouseout),this._differenceBetweenWidths=this._findDifferenceBetweenWidths(),this._flyoutArrows=$(".flyout-arrow")},t.prototype.getDomNode=function(){return this._domNode},t.prototype.hasHover=function(){return this._hasHover},t.prototype.setHasHover=function(t){return this._hasHover=t},t.prototype.setHasFocus=function(t){return this._hasFocus=t},t.prototype.getController=function(){return this._controller},t.prototype.setFocusToController=function(t,e){return"string"!=typeof t&&(t=""),this._controller.close?(this._navMenuItem.getDomNode().focus(),this.close(),"next"===t?(this._controller.setHasFocus(!1),this._controller.close(),this._controller.getController().getMenubar().setFocusToNextItem(this._controller.controller,e)):void 0):"previous"===t?this._controller.getMenubar().setFocusToPreviousItem(this._controller,e):"next"===t?this._controller.getMenubar().setFocusToNextItem(this._controller,e):this._controller.getDomNode().focus()},t.prototype.setFocusToFirstItem=function(){return this._firstItem.getDomNode().focus()},t.prototype.setFocusToLastItem=function(){return this._lastItem.getDomNode().focus()},t.prototype.setFocusToPreviousItem=function(t){return(t===this._firstItem?this._lastItem:(t=this._menuItems.indexOf(t),this._menuItems[t-1])).getDomNode().focus()},t.prototype.setFocusToNextItem=function(t){return(t===this._lastItem?this._firstItem:(t=this._menuItems.indexOf(t),this._menuItems[t+1])).getDomNode().focus()},t.prototype.setFocusByFirstCharacter=function(t,e){if(e=e.toLowerCase(),(t=this._menuItems.indexOf(t)+1)===this._menuItems.length&&(t=0),-1<(t=-1===(t=this._getIndexFirstChars(t,e))?this._getIndexFirstChars(0,e):t))return this._menuItems[t].getDomNode().focus()},t.prototype.open=function(t,e,n){var i,o,a,s,r=!1;if(e&&(r=(this._navMenuItem=e).hasHover()),o=!1,t&&0<this._domNo
1de.children.length&&(o=t.children[0].innerText===this._domNode.children[0].innerText),(this._hasFocus||r||n)&&!o)return this._navMenuItem._menu.resetNavMenuItemsAriaExpandedAttr(),this._navMenuItem.getDomNode().setAttribute("aria-expanded","true"),this._domNode.setAttribute("aria-labelledby",this._navMenuItem.getDomNode().innerText),this._$domNode.empty(),this._$domNode.css("padding-bottom",this._customPaddingBottom),this._$domNode.css("padding-right",this._customPaddingRight),this._controller.handleQuickLinksHeightDecrease(this._controller.getDomNode()),this.waitingForAnimation=!0,this._flyoutArrows.css("display","none"),$(this._navMenuItem.getDomNode().firstElementChild).css("display","block"),this._changeTextOpacity(e,".75"),this._$domNode.parent().animate({width:this._widthWithOpenFlyout},this._flyoutOpenAnimationDuration),setTimeout(function(){return s.waitingForAnimation=!1},(s=this)._flyoutOpenAnimationDuration),i=t.cloneNode(!0).children,setTimeout(function(){for(a._$domNode.empty();1<=i.length;)a._$domNode.append(i[0]);if(a._domNode.classList.add("-visible"),a._controller.handleQuickLinksHeightIncrease(),a._handleFlyoutNavPaddingIncrease(),a._createMenuItems(),n)return a.setFocusToFirstItem()},(a=this)._flyoutOpenAnimationDuration+5)},t.prototype.close=function(t){var e,n=!1;if(this._navMenuItem&&(n=this._navMenuItem.hasHover()),t||!this._hasFocus&&!this._hasHover&&!n)return this._navMenuItem&&this._navMenuItem.getDomNode().setAttribute("aria-expanded","false"),this._domNode.classList.remove("-visible"),this._$domNode.empty(),this._$domNode.css("padding-bottom",this._customPaddingBottom),this._$domNode.css("padding-right",this._customPaddingRight),this.waitingForAnimation=!0,this._$domNode.parent().animate({width:this._widthWithClosedFlyout},this._flyoutCloseAnimationDuration),setTimeout(function(){return e.waitingForAnimation=!1},(e=this)._flyoutCloseAnimationDuration),this._controller.handleQuickLinksHeightDecrease(this._controller.getDomNode()),this._menuItems=[],this._flyoutArrows.css("display","block"),this._changeTextOpacity(!1,"1")},t.prototype._handleMouseover=function(t){return this._hasHover=!0},t.prototype._handleMouseout=function(t){return this._hasHover=!1,setTimeout((e=this,function(){return e.close(!1)}),200);var e},t.prototype._createMenuItems=function(){for(var t,e,n,i=this._domNo
1de.firstElementChild;i;)(t=i.firstElementChild)&&"A"===t.tagName&&(n=new a.NavMenuItem(t,this),this._menuItems.push(n),n=t.textContent.trim(),this._firstChars.push(n.substring(0,1).toLowerCase())),i=i.nextElementSibling;if(0<(e=this._menuItems.length))return this._firstItem=this._menuItems[0],this._lastItem=this._menuItems[e-1]},t.prototype._getIndexFirstChars=function(t,e){for(var n,i,o=-1,a=n=i=t,s=this._firstChars.length-1;i<=s?n<=s:s<=n;a=i<=s?++n:--n)e===this._firstChars[a]&&(o=a);return o},t.prototype._handleFlyoutNavPaddingIncrease=function(){var t=this._$domNode.outerHeight(),e=this._$domNode.outerWidth(),n=this._domNode.parentElement,n=$(n).outerHeight();if(t<n&&(n=n-t,t=this._$domNode.css("padding-bottom"),t=parseInt(t.replace("px",""))+n,this._$domNode.css("padding-bottom",t+"px")),e<this._differenceBetweenWidths)return n=this._differenceBetweenWidths-e,t=this._$domNode.css("padding-right"),e=parseInt(t.replace("px",""))+n,this._$domNode.css("padding-right",e+"px")},t.prototype._findDifferenceBetweenWidths=function(){return parseInt(this._widthWithOpenFlyout.split("p")[0])-parseInt(this._widthWithClosedFlyout.split("p")[0])},t.prototype._changeTextOpacity=function(t,e){for(var n,i=this._controller.menuItems(),o=function(){var t=n.getDomNode();if(!$(t).hasClass("quick-link"))return $(n.getDomNode()).css("opacity",e)},a=0,s=i.length;a<s;a++)n=i[a],o();if(t)return $(t.getDomNode()).css("opacity","1")},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._onWindowResize=t(this._onWindowResize,this),this._handleSearchLinkClick=t(this._handleSearchLinkClick,this),this._handleResourceLinkClick=t(this._handleResourceLinkClick,this),this._handleMenuLinkClick=t(this._handleMenuLinkClick,this),this._initialize(),this._attachEvents()}us.pacourts.navigation.NavHelpers=(e.prototype.$menuLink=null,e.prototype.$header=null,e.prototype.$content=null,e.prototype.$footer=null,e.prototype.$resource=null,e.prototype.$resourceLink=null,e.prototype.$search=null,e.prototype.$searchLink=null,e.prototype.$isMobile=null,e.prototype.$isiPad=null,e.prototype.$isAppleDevice=null,e.prototype.$isAndroidDevice=null,e.prototype.$isMobileDevice=null,e.prototype._initialize=function(){if(this.$menuLink=$(".mobile-menu"),this.$header=$(".site-header"),this.$content=$(".site-content"),this.$footer=$(".site-footer"),this.$resource=$("#resource"),this.$resourceLink=$(".resource-menu"),this.$search=$("#search"),this.$searchLink=$(".search-menu"),this.isMobile=null!==navigator.userAgent.match(/(iPhone|iPod|Android|BlackBerry)/),this.isiPad=null!==navigator.userAgent.match(/(iPad)/),this.isAppleDevice=null!==navigator.userAgent.match(/(iPhone|iPod|iPad)/),this.isAndroidDevice=null!==navigator.userAgent.match(/(Android)/),this.isMobileDevice=this.isMobile||this.isiPad||this.isAppleDevice||this.isAndroidDevice,new ZoomText,$(window).resize(this._onWindowResize),this.isMobile||$(".size-selector").show(),!this.isMobileDevice)return $("html").addClass("-ignore-tablet-styling")},e.prototype._attachEvents=function(){return this.$resourceLink.click(this._handleResourceLinkClick),this.$searchLink.click(this._handleSearchLinkClick),this.$menuLink.click(this._handleMenuLinkClick)},e.prototype._handleMenuLinkClick=function(t){return t.preventDefault(),this.$menuLink.toggleClass("active"),this.$header.toggleClass("active mobile"),this.$header.removeClass("search-expanded"),this.$content.toggleClass("active"),this.$footer.toggleClass("active"),this.$search.removeClass("active"),this.$resource.removeClass("active")},e.prototype._handleResourceLinkClick=function(t){return t.preventDefault(),this.$resource.toggleClass("active"),this.$search.removeClass("active"),this.$menuLink.removeClass("active"),this.$header.removeClass("active mobile"),this.$header.removeClass("search-expanded"),this.$content.removeClass("active"),this.$footer.removeClass("active")},e.prototype._handleSearchLinkClick=function(t){return t.preventDefault(),this.$search.toggleClass("active"),this.$resource.removeClass("active"),this.$menuLink.removeClass("active"),this.$header.removeClass("active mobile"),this.$header.toggleClass("search-expanded"),this.$content.removeClass("active"),this.$footer.removeClass("active")},e.prototype._onWindowResize=function(){if(!($(window).width()<=1e3))return 1e3<=$(window).width()&&!this.isMobileDevice?$("html").addClass("-ignore-tablet-styling"):void 0;$("html").removeClass("-ignore-tablet-styling")},e)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var r;function t(t,e,n){this.handleQuickLinksHeightIncrease=i(this.handleQuickLinksHeightIncrease,this),this._getIndexFirstChars=i(this._getIndexFirstChars,this),this._createMenuItemsWithoutQuickLinks=i(this._createMenuItemsWithoutQuickLinks,this),this._createMenuItemsWithQuickLinks=i(this._createMenuItemsWithQuickLinks,this),this._handleMouseout=i(this._handleMouseout,this),this._handleMouseover=i(this._handleMouseover,this),this.menuItems=i(this.menuItems,this),this.resetNavMenuItemsAriaExpandedAttr=i(this.resetNavMenuItemsAriaExpandedAttr,this),this.handleQuickLinksHeightDecrease=i(this.handleQuickLinksHeightDecrease,this),this.close=i(this.close,this),this.open=i(this.open,this),this.setFocusByFirstCharacter=i(this.setFocusByFirstCharacter,this),this.setFocusToNextItem=i(this.setFocusToNextItem,this),this.setFocusToPreviousItem=i(this.setFocusToPreviousItem,this),this.setFocusToLastItem=i(this.setFocusToLastItem,this),this.setFocusToFirstItem=i(this.setFocusToFirstItem,this),this.setFocusToController=i(this.setFocusToController,this),this.getController=i(this.getController,this),this.setHasFlyout=i(this.setHasFlyout,this),this.setHasFocus=i(this.setHasFocus,this),this.setHasHover=i(this.setHasHover,this),this.hasHover=i(this.hasHover,this),this.getDomNode=i(this.getDomNode,this),this._domNo
1de=null,this._controller=null,this._tertiaryUl=null,this._menuItems=[],this._firstChars=[],this._firstItem=null,this._lastItem=null,this._hasFocus=!1,this._hasHover=!1,this._hasFlyout=!1,this._initialDropdownMenuHeight=null,this._flyoutMenu=null,this.menuTimerBaseSetting=null,this._initialize(t,e,n)}(r=us.pacourts.navigation).NavMenu=(t.prototype.menuTimerBaseSetting=null,t.prototype._domNode=null,t.prototype._controller=null,t.prototype._menuItems=null,t.prototype._firstChars=null,t.prototype._firstItem=null,t.prototype._lastItem=null,t.prototype._hasFocus=!1,t.prototype._hasHover=!1,t.prototype._hasFlyout=!1,t.prototype._initialDropdownMenuHeight=null,t.prototype._flyoutMenu=null,t.prototype._flyoutOpenAnimationDuration=75,t.prototype._flyoutCloseAnimationDuration=20,t.prototype._quickLinksWidth=193,t.prototype._initialize=function(t,e,n){var i,o,a,s="PopupMenu constructor argument domNode ";if(!t instanceof Element)throw new TypeError(s+"is not a DOM Element.");if(0===t.childElementCount)throw new Error(s+"has no element children.");for(i=t.firstElementChild;i;){if((a=i.firstElementChild)&&"A"===a)throw new Error(s+"has descendant elements that are not A elements.");i=i.nextElementSibling}if("number"!=typeof n)throw new TypeError("MenuTimerBaseSetting is not a number.");if(this._domNode=t,this._controller=e,this.menuTimerBaseSetting=n,this._domNode.tabIndex=-1,this._domNode.setAttribute("role","menu"),this._domNode.getAttribute("aria-labelledby")||this._domNode.getAttribute("aria-label")||this._domNode.getAttribute("title")||(o="DIV"===this._controller.getDomNode().nodeName?null!=(o=null!=(t=this._controller.getDomNode())&&null!=(e=t.childNodes[1])&&null!=(n=e.childNodes[1])&&null!=(t=n.firstChild)?t.innerText:void 0)?o.replace(/&/g,"AND"):void 0:null!=(o=null!=(e=this._controller.getDomNode())?e.innerText:void 0)?o.replace(/&/g,"AND"):void 0,this._domNode.setAttribute("aria-label",o)),this._domNode.addEventListener("mouseover",this._handleMouseover),this._domNode.addEventListener("mouseout",this._handleMouseout),"main-nav-wrapper"===this._domNo
1de.parentElement.className&&(this._domNode.parentElement.addEventListener("mouseover",this._handleMouseover),this._domNode.parentElement.addEventListener("mouseout",this._handleMouseout)),"c-quick-links"===(null!=(n=this._domNode.firstElementChild)?n.className:void 0)?this._createMenuItemsWithQuickLinks():this._createMenuItemsWithoutQuickLinks(),this._hasFlyout&&(this._flyoutMenu=new r.FlyoutNavMenu(this._domNode.lastElementChild,this,this._flyoutOpenAnimationDuration,this._flyoutCloseAnimationDuration)),0<(t=this._menuItems.length))return this._firstItem=this._menuItems[0],this._lastItem=this._menuItems[t-1]},t.prototype.getDomNode=function(){return this._domNode},t.prototype.hasHover=function(){return this._hasHover},t.prototype.setHasHover=function(t){return this._hasHover=t},t.prototype.setHasFocus=function(t){return this._hasFocus=t},t.prototype.setHasFlyout=function(t){return this._hasFlyout=t},t.prototype.getController=function(){return this._controller},t.prototype.setFocusToController=function(t,e){return"string"!=typeof t&&(t=""),this._controller.close?(this._NavMenuItem.getDomNode().focus(),this.close(),"next"===t?(this._controller.setHasFocus(!1),this._controller.close(),this._controller.getController().getMenubar().setFocusToNextItem(this._controller.controller,e)):void 0):"previous"===t?this._controller.getMenubar().setFocusToPreviousItem(this._controller,e):"next"===t?this._controller.getMenubar().setFocusToNextItem(this._controller,e):this._controller.getDomNode().focus()},t.prototype.setFocusToFirstItem=function(){return this._firstItem.getDomNode().focus()},t.prototype.setFocusToLastItem=function(){return this._lastItem.getDomNode().focus()},t.prototype.setFocusToPreviousItem=function(t){return(t===this._firstItem?this._lastItem:(t=this._menuItems.indexOf(t),this._menuItems[t-1])).getDomNode().focus()},t.prototype.setFocusToNextItem=function(t){return(t===this._lastItem?this._firstItem:(t=this._menuItems.indexOf(t),this._menuItems[t+1])).getDomNode().focus()},t.prototype.setFocusByFirstCharacter=function(t,e){if(e=e.toLowerCase(),(t=this._menuItems.indexOf(t)+1)===this._menuItems.length&&(t=0),-1<(t=-1===(t=this._getIndexFirstChars(t,e))?this._getIndexFirstChars(0,e):t))return this._menuItems[t].getDomNode().focus()},t.prototype.open=function(t){var e;if(this._controller.hasHover()||t)return this._domNode.style.display="inline-block",this._controller.getDomNode().setAttribute("aria-expanded","true"),this._domNode.previousElementSibling.style.display="block",t=this._domNode.querySelector(".main-nav-dropdown-list").offsetWidth+15,"c-quick-links"===this._domNo
1de.firstElementChild.className&&(t+=this._quickLinksWidth),t=t.toString()+"px",this._domNode.style.width=t,this._domNode.parentElement.style.width=t,this._domNode.parentElement.style.zIndex=999999,t=0-this._domNode.offsetWidth/2+(null!=(t=this._domNode)&&null!=(t=t.parentElement)&&null!=(t=t.parentElement)?t.offsetWidth:void 0)/2,this._domNode.style.left=t.toString()+"px",t=this._domNode.parentElement.querySelector(".main-nav-dropdown-arrow"),e=(null!=(e=this._domNode.parentElement)?e.parentElement.offsetWidth:void 0)/2-18,t.style.left=e.toString()+"px",this.handleQuickLinksHeightIncrease()},t.prototype.close=function(t){var e=this._controller.hasHover();if(this._controller.isMenubarItem||(e=!1),(t||!this._hasFocus&&!this._hasHover&&!e)&&(this._domNode.style.display="none",this._controller.getDomNode().setAttribute("aria-expanded","false"),this._domNode.previousElementSibling.style.display="none",this._domNode.parentElement.style.zIndex=999998,null!==this._flyoutMenu))return this._flyoutMenu.close(!0)},t.prototype.handleQuickLinksHeightDecrease=function(t){t=t.firstElementChild;if("c-quick-links"===t.className)return $(t).css("height",this._initialDropdownMenuHeight)},t.prototype.resetNavMenuItemsAriaExpandedAttr=function(){for(var t,e=this._menuItems,n=[],i=0,o=e.length;i<o;i++)t=e[i],n.push((()=>{if(t._flyoutMenuContents)return t.getDomNode().setAttribute("aria-expanded","false")})());return n},t.prototype.menuItems=function(){return this._menuItems},t.prototype._handleMouseover=function(t){return this._hasHover=!0},t.prototype._handleMouseout=function(t){return this._hasHover=!1,setTimeout(function(){return e.close(!1)},(e=this).menuTimerBaseSetting);var e},t.prototype._createMenuItemsWithQuickLinks=function(){for(var t,e,n,i=0,o=1,a=[];i<2;){for(t=this._domNode.children[i].firstElementChild;t;)(e=t.children[o])&&"A"===e.tagName&&(n=new r.NavMenuItem(e,this,this._flyoutOpenAnimationDuration,this._flyoutCloseAnimationDuration,this.menuTimerBaseSetting),this._menuItems.push(n),n=e.textContent.trim(),this._firstChars.push(n.substring(0,1).toLowerCase())),t=t.nextElementSibling;o=0,a.push(i++)}return a},t.prototype._createMenuItemsWithoutQuickLinks=function(){for(var t,e,n=this._domNo
1de.firstElementChild.firstElementChild,i=[];n;)(t=n.firstElementChild)&&"A"===t.tagName&&(e=new r.NavMenuItem(t,this,this._flyoutOpenAnimationDuration,this._flyoutCloseAnimationDuration,this.menuTimerBaseSetting),this._menuItems.push(e),e=t.textContent.trim(),this._firstChars.push(e.substring(0,1).toLowerCase())),i.push(n=n.nextElementSibling);return i},t.prototype._getIndexFirstChars=function(t,e){for(var n,i,o=-1,a=n=i=t,s=this._firstChars.length-1;i<=s?n<=s:s<=n;a=i<=s?++n:--n)if(e===this._firstChars[a])return o=a;return o},t.prototype.handleQuickLinksHeightIncrease=function(){var t=this._domNode.firstElementChild;if(null===this._initialDropdownMenuHeight&&(this._initialDropdownMenuHeight=this._domNode.offsetHeight),"c-quick-links"===t.className)return $(t).css("height",this._domNode.offsetHeight)},t)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}var s;function t(t){this._getIndexFirstChars=e(this._getIndexFirstChars,this),this._setFocusToItem=e(this._setFocusToItem,this),this.setFocusByFirstCharacter=e(this.setFocusByFirstCharacter,this),this.setFocusToNextItem=e(this.setFocusToNextItem,this),this.setFocusToPreviousItem=e(this.setFocusToPreviousItem,this),this.setFocusToLastItem=e(this.setFocusToLastItem,this),this.setFocusToFirstItem=e(this.setFocusToFirstItem,this),this.setHasFocus=e(this.setHasFocus,this),this.setHasHover=e(this.setHasHover,this),this.hasHover=e(this.hasHover,this),this.getDomNode=e(this.getDomNode,this),this._domNode=null,this._menubarItems=[],this._firstChars=[],this._firstItem=null,this._lastItem=null,this._hasFocus=!1,this._hasHover=!1,this._initialize(t)}(s=us.pacourts.navigation).NavMenubar=(t.prototype._domNode=null,t.prototype._menubarItems=null,t.prototype._firstChars=null,t.prototype._firstItem=null,t.prototype._lastItem=null,t.prototype._hasFocus=!1,t.prototype._hasHover=!1,t.prototype._initialize=function(t){var e,n,i,o,a="Menubar constructor argument menubarNode ";if(!t instanceof Element)throw new TypeError(a+"is not a DOM Element.");if(0===t.childElementCount)throw new Error(a+"has no element children.");for(e=t.firstElementChild;e;){if(i=e.firstElementChild,e&&i&&"A"!==i.tagName)throw new Error(a+"has child elements are not A elements.");e=e.nextElementSibling}for(this._domNode=t,this._domNode.setAttribute("role","menubar"),n=this._domNo
1de.firstElementChild;n;)o=n.firstElementChild,n&&o&&"A"===o.tagName&&!o.hasAttribute("nav-exclude")&&(i=new s.NavMenubarItem(o,this),this._menubarItems.push(i),o=o.textContent.trim(),this._firstChars.push(o.substring(0,1).toLowerCase())),n=n.nextElementSibling;return 0<(t=this._menubarItems.length)&&(this._firstItem=this._menubarItems[0],this._lastItem=this._menubarItems[t-1]),this._firstItem.getDomNode().tabIndex=0,new s.NavHelpers,new NavTree},t.prototype.getDomNode=function(){return this._domNode},t.prototype.hasHover=function(){return this._hasHover},t.prototype.setHasHover=function(t){return this._hasHover=t},t.prototype.setHasFocus=function(t){return this._hasFocus=t},t.prototype.setFocusToFirstItem=function(){return this._setFocusToItem(this._firstItem)},t.prototype.setFocusToLastItem=function(){return this._setFocusToItem(this._lastItem)},t.prototype.setFocusToPreviousItem=function(t){t=t===this._firstItem?this._lastItem:(t=this._menubarItems.indexOf(t),this._menubarItems[t-1]);return this._setFocusToItem(t)},t.prototype.setFocusToNextItem=function(t){t=t===this._lastItem?this._firstItem:(t=this._menubarItems.indexOf(t),this._menubarItems[t+1]);return this._setFocusToItem(t)},t.prototype.setFocusByFirstCharacter=function(t,e){if(e=e.toLowerCase(),t.getDomNode().getAttribute("aria-expanded"),(t=this._menubarItems.indexOf(t)+1)===this._menubarItems.length&&(t=0),-1<(t=-1===(t=this._getIndexFirstChars(t,e))?this._getIndexFirstChars(0,e):t))return this._setFocusToItem(this._menubarItems[t])},t.prototype._setFocusToItem=function(t){for(var e,n,i=!1,o=e=0,a=this._menubarItems.length-1;0<=a?e<=a:a<=e;o=0<=a?++e:--e)0===(n=this._menubarItems[o]).getDomNode().tabIndex&&(i="true"===n.getDomNode().getAttribute("aria-expanded")),n.getDomNode().tabIndex=-1,n.getdropdownMenu()&&n.getdropdownMenu().close();if(t.getDomNode().focus(),t.getDomNode().tabIndex=0,i&&t.getdropdownMenu())return t.getdropdownMenu().open()},t.prototype._getIndexFirstChars=function(t,e){for(var n,i,o=-1,a=n=i=t,s=this._firstChars.length-1;i<=s?n<=s:s<=n;a=i<=s?++n:--n)if(e===this._firstChars[a])return o=a;return o},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var i;function t(t,e){this._isPrintableCharacter=n(this._isPrintableCharacter,this),this._handleMouseout=n(this._handleMouseout,this),this._handleMouseover=n(this._handleMouseover,this),this._handleBlur=n(this._handleBlur,this),this._handleFocus=n(this._handleFocus,this),this._handleKeydown=n(this._handleKeydown,this),this.getdropdownMenu=n(this.getdropdownMenu,this),this.getMenubar=n(this.getMenubar,this),this.setHasFocus=n(this.setHasFocus,this),this.setHasHover=n(this.setHasHover,this),this.hasHover=n(this.hasHover,this),this.getDomNode=n(this.getDomNode,this),this._domNode=null,this._menubar=null,this._dropdownMenu=null,this._hasFocus=!1,this._hasHover=!1,this.menuTimerBaseSetting=300,this._initialize(t,e)}(i=us.pacourts.navigation).NavMenubarItem=(t.prototype.isMenubarItem=!0,t.prototype.menuTimerBaseSetting=null,t.prototype._domNode=null,t.prototype._menubar=null,t.prototype._dropdownMenu=null,t.prototype._hasFocus=!1,t.prototype._hasHover=!1,t.prototype._keyCode=Object.freeze({TAB:9,RETURN:13,ESC:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40}),t.prototype._initialize=function(t,e){if(this._menubar=e,this._domNode=t,this._domNode.tabIndex=-1,this._domNode.setAttribute("role","menuitem"),this._domNode.setAttribute("aria-haspopup","true"),this._domNode.setAttribute("aria-expanded","false"),"LI"===this._domNo
1de.parentNode.tagName&&this._domNode.parentNode.setAttribute("role","none"),this._domNode.addEventListener("keydown",this._handleKeydown),this._domNode.addEventListener("click",this._handleClick),this._domNode.addEventListener("focus",this._handleFocus),this._domNode.addEventListener("blur",this._handleBlur),this._domNode.addEventListener("mouseover",this._handleMouseover),this._domNode.addEventListener("mouseout",this._handleMouseout),(e=null!=(e=this._domNode.nextElementSibling)&&null!=(t=e.firstElementChild)?t.nextElementSibling:void 0)&&"DIV"===e.tagName)return this._dropdownMenu=new i.NavMenu(e,this,this.menuTimerBaseSetting)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.hasHover=function(){return this._hasHover},t.prototype.setHasHover=function(t){return this._hasHover=t},t.prototype.setHasFocus=function(t){return this._hasFocus=t},t.prototype.getMenubar=function(){return this._menubar},t.prototype.getdropdownMenu=function(){return this._dropdownMenu},t.prototype._handleKeydown=function(){event.currentTarget;var t=event.key,e=!1;switch(event.keyCode){case this._keyCode.SPACE:case this._keyCode.RETURN:case this._keyCode.DOWN:this._dropdownMenu&&(this._dropdownMenu.open(!0),this._dropdownMenu.setFocusToFirstItem(),e=!0);break;case this._keyCode.LEFT:this._menubar.setFocusToPreviousItem(this),e=!0;break;case this._keyCode.RIGHT:this._menubar.setFocusToNextItem(this),e=!0;break;case this._keyCode.UP:this._dropdownMenu&&(this._dropdownMenu.open(!0),this._dropdownMenu.setFocusToLastItem(),e=!0);break;case this._keyCode.HOME:case this._keyCode.PAGEUP:this._menubar.setFocusToFirstItem(),e=!0;break;case this._keyCode.END:case this._keyCode.PAGEDOWN:this._menubar.setFocusToLastItem(),e=!0;break;default:this._isPrintableCharacter(t)&&(this._menubar.setFocusByFirstCharacter(this,t),e=!0)}if(e)return event.stopPropagation(),event.preventDefault()},t.prototype._handleFocus=function(){return this._menubar.setHasFocus(!0)},t.prototype._handleBlur=function(){return this._menubar.setHasFocus(!1)},t.prototype._handleMouseover=function(){if(this._hasHover=!0,this._dropdownMenu)return setTimeout(function(){return t._dropdownMenu.open()},(t=this).menuTimerBaseSetting);var t},t.prototype._handleMouseout=function(){if(this._hasHover=!1,this._dropdownMenu)return setTimeout(function(){return t._dropdownMenu.close(!1)},(t=this).menuTimerBaseSetting);var t},t.prototype._isPrintableCharacter=function(t){return 1===t.length&&t.match(/\S/)},t)}.call(this),function(){function a(t,e){return function(){return t.apply(e,arguments)}}function t(t,e,n,i,o){this._isPrintableCharacter=a(this._isPrintableCharacter,this),this._handleMouseout=a(this._handleMouseout,this),this._handleMouseover=a(this._handleMouseover,this),this._handleBlur=a(this._handleBlur,this),this._handleFocus=a(this._handleFocus,this),this._handleClick=a(this._handleClick,this),this._handleKeydown=a(this._handleKeydown,this),this._isExpanded=a(this._isExpanded,this),this.hasHover=a(this.hasHover,this),this.getDomNode=a(this.getDomNode,this),this._domNode=null,this._menu=null,this._flyoutMenuContents=!1,this._hasHover=!1,this._waitingForAnimation=!1,this._flyoutOpenAnimationDuration=null,this._flyoutCloseAnimationDuration=null,this.menuTimerBaseSetting=null,this._initialize(t,e,n,i,o)}us.pacourts.navigation.NavMenuItem=(t.prototype.isMenubarItem=!1,t.prototype.menuTimerBaseSetting=null,t.prototype._domNode=null,t.prototype._menu=null,t.prototype._flyoutMenuContents=!1,t.prototype._hasHover=!1,t.prototype._waitingForAnimation=!1,t.prototype._flyoutOpenAnimationDuration=null,t.prototype._flyoutCloseAnimationDuration=null,t.prototype._keyCode=Object.freeze({TAB:9,RETURN:13,ESC:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40}),t.prototype._initialize=function(t,e,n,i,o){if(this._domNode=t,this._menu=e,this._domNode.tabIndex=-1,this._flyoutOpenAnimationDuration=n,this._flyoutCloseAnimationDuration=i,this.menuTimerBaseSetting=o,this._domNode.getAttribute("role")||this._domNode.setAttribute("role","menuitem"),"LI"===this._domNo
1de.parentNode.tagName&&this._domNode.parentNode.setAttribute("role","none"),this._domNode.addEventListener("keydown",this._handleKeydown),this._domNode.addEventListener("click",this._handleClick),this._domNode.addEventListener("focus",this._handleFocus),this._domNode.addEventListener("blur",this._handleBlur),this._domNode.addEventListener("mouseover",this._handleMouseover),this._domNode.addEventListener("mouseout",this._handleMouseout),(t=this._domNode.nextElementSibling)&&"UL"===t.tagName)return this._flyoutMenuContents=t,this._menu.setHasFlyout(!0),this._domNode.setAttribute("aria-haspopup","true"),this._domNode.setAttribute("aria-expanded","false")},t.prototype.getDomNode=function(){return this._domNode},t.prototype.hasHover=function(){return this._hasHover},t.prototype._isExpanded=function(){return"true"===this._domNode.getAttribute("aria-expanded")},t.prototype._handleKeydown=function(t){var e,n,i,o,a=t.currentTarget,s=t.key,r=!1;switch(t.keyCode){case this._keyCode.SPACE:case this._keyCode.RETURN:if(this._flyoutMenu)this._flyoutMenu.open(),this._flyoutMenu.setFocusToFirstItem();else{try{e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0})}catch(t){document.createEvent&&(e=document.createEvent("MouseEvents")).initEvent("click",!0,!0)}a.dispatchEvent(e)}r=!0;break;case this._keyCode.ESC:this._menu.setFocusToController(),this._menu.close(!0),r=!0;break;case this._keyCode.UP:this._menu.setFocusToPreviousItem(this),r=!0;break;case this._keyCode.DOWN:this._menu.setFocusToNextItem(this),r=!0;break;case this._keyCode.LEFT:this._waitingForAnimation||(this._waitingForAnimation=!0,setTimeout(function(){return o._waitingForAnimation=!1,o._menu.setFocusToController("previous",!0)},(o=this)._flyoutCloseAnimationDuration),this._menu.close(!0),r=!0);break;case this._keyCode.RIGHT:this._flyoutMenuContents&&!this._waitingForAnimation?(this._waitingForAnimation=!0,setTimeout(function(){return i._waitingForAnimation=!1},(i=this).menuTimerBaseSetting+this._flyoutOpenAnimationDuration),this._menu._flyoutMenu.waitingForAnimation||setTimeout(function(){return n._menu._flyoutMenu.open(n._flyoutMenuContents,n,!0)},(n=this).menuTimerBaseSetting+30)):(this._menu.setFocusToController("next",!0),this._menu.close(!0)),r=!0;break;case this._keyCode.HOME:case this._keyCode.PAGEUP:this._menu.setFocusToFirstItem(),r=!0;break;case this._keyCode.END:case this._keyCode.PAGEDOWN:this._menu.setFocusToLastItem(),r=!0;break;case this._keyCode.TAB:this._menu.setFocusToController(),this._menu.close(!0);break;default:this._isPrintableCharacter(s)&&(this._menu.setFocusByFirstCharacter(this,s),r=!0)}if(r)return t.stopPropagation(),t.preventDefault()},t.prototype._handleClick=function(t){return this._menu.setFocusToController(),this._menu.close(!0)},t.prototype._handleFocus=function(t){if(this._menu.setHasFocus(!0),!this._menu.getController().isMenubarItem)return this._menu.getController().setHasFocus(!0)},t.prototype._handleBlur=function(t){return this._menu.setHasFocus(!1),this._menu.getController().isMenubarItem||this._menu.getController().setHasFocus(!1),setTimeout(function(){return e._menu.close(!1)},(e=this).menuTimerBaseSetting-100);var e},t.prototype._handleMouseover=function(t){if(this._menu.setHasHover(!0),this._menu.open(!1,!1,!1),this._hasHover=!0,this._flyoutMenuContents)return this._menu._flyoutMenu.setHasHover(!0),setTimeout(function(){return e._menu._flyoutMenu.open(e._flyoutMenuContents,e)},(e=this).menuTimerBaseSetting+30);var e},t.prototype._handleMouseout=function(t){var e,n;return this._hasHover=!1,this._menu._flyoutMenu&&null!==this._menu.flyoutMenu&&this._menu._flyoutMenu.setHasHover(!1),this._flyoutMenuContents&&setTimeout(function(){return e._menu._flyoutMenu.close(!1)},(e=this).menuTimerBaseSetting),this._menu.setHasHover(!1),setTimeout(function(){return n._menu.close(!1)},(n=this).menuTimerBaseSetting)},t.prototype._isPrintableCharacter=function(t){return 1===t.length&&t.match(/\S/)},t)}.call(this),function(){function t(){}us.pacourts.utilities.PagingUtilities=(t.prototype.BuildPaging=function(t,e,n,i,o,a,s,r){var l,p,u,d,h,c,_,m,f=M
1ath.ceil(t/e),y=4<n?n-3:1;for(s.show().toggleClass("disabled",n<=1),r.toggle(1<y),o.show().toggleClass("disabled",t<=n*e),a.toggle(y+6<f),i.find("[data-page].active").removeClass("active"),s=Math.min(f,y+6),d=i.find("[data-page]"),l=p=h=y,c=s;h<=c?p<=c:c<=p;l=h<=c?++p:--p)$(d[l-y]).attr("data-page",l).data("page",l).text(l).show();if(s<5+y)for(l=u=_=s+1,m=5+y;_<=m?u<=m:m<=u;l=_<=m?++u:--u)$(d[l-y]).hide();return i.find("[data-page='"+n+"']").addClass("active")},t)}.call(this),function(){function t(){var t,e;this.setURLParameter=(t=this.setURLParameter,e=this,function(){return t.apply(e,arguments)})}us.pacourts.utilities.URLParameterUtilities=(t.prototype.setURLParameter=function(t,e){var n=new URL(window.location.href),i=n.searchParams;return i.set(t,e),n.search=i.toString(),window.location.href=n},t)}.call(this),function(){function t(){var t,e;this.handleAjaxError=(t=this.handleAjaxError,e=this,function(){return t.apply(e,arguments)})}us.pacourts.utilities.ErrorHandlerUtil=(t.prototype.handleAjaxError=function(t,e,n){if(!t||!t.responseJSON)return window.alert("There was an unexpected error encountered.");window.alert("There was an error encountered: "+t.responseJSON.exceptionMessage)},t)}.call(this),function(){function t(){var t,e;this._handleAlertBoxButtonClick=(t=this._handleAlertBoxButtonClick,e=this,function(){return t.apply(e,arguments)}),this._initialize(),this._attachEvents()}us.pacourts.views.AlertBoxView=(t.prototype._$alertBoxControl=null,t.prototype._initialize=function(){return this._$alertBoxControl=$("[alert-box-control]")},t.prototype._attachEvents=function(){return this._$alertBoxControl.on("click",this._handleAlertBoxButtonClick)},t.prototype._handleAlertBoxButtonClick=function(t){var t=$(t.currentTarget).parents("[alert-box]"),e=t.find("[alert-box-control]");return e.hasClass("open")?(e.removeClass("open").addClass("closed"),e.find("[alert-box-open]").show(),e.find("[alert-box-close]").hide(),t.find("[alert-box-message]").fadeOut()):(e.addClass("open").removeClass("closed"),e.find("[alert-box-open]").hide(),e.find("[alert-box-close]").show(),t.find("[alert-box-message]").fadeIn())},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._resetPasswordFail=t(this._resetPasswordFail,this),this._resetPasswordSuccess=t(this._resetPasswordSuccess,this),this._handleResetPassword=t(this._handleResetPassword,this),this._handleRetrievePasswordButtonClick=t(this._handleRetrievePasswordButtonClick,this),this._handleLoginButtonClick=t(this._handleLoginButtonClick,this),this._handleContinueButtonClick=t(this._handleContinueButtonClick,this),this._handleCancelLinkClick=t(this._handleCancelLinkClick,this),this._handleForgotPasswordLinkClick=t(this._handleForgotPasswordLinkClick,this),this._handleStartNewRadioClick=t(this._handleStartNewRadioClick,this),this._handleCompleteExistingRadioClick=t(this._handleCompleteExistingRadioClick,this),this._validateNewPassword=t(this._validateNewPassword,this),this._validateEmail=t(this._validateEmail,this),this._validateCredentials=t(this._validateCredentials,this),this._clearValidationMessages=t(this._clearValidationMessages,this),this._initialize(),this._attachEvents()}us.pacourts.views.ApplyOnlineView=(e.prototype._emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,e.prototype._$badCredentials=null,e.prototype._$badEmailFormat=null,e.prototype._$cancelLink=null,e.prototype._$completeExistingDiv=null,e.prototype._$completeExistingRadio=null,e.prototype._$continueButton=null,e.prototype._$emailRequired=null,e.prototype._$forgotPasswordDiv=null,e.prototype._$forgotPasswordEmail=null,e.prototype._$forgotPasswordLink=null,e.prototype._$form=null,e.prototype._$hrefWithoutQuery=null,e.prototype._$loginButton=null,e.prototype._$loginEmail=null,e.prototype._$loginPassword=null,e.prototype._$passwordRequired=null,e.prototype._$queryParams=null,e.prototype._$retrievePasswordButton=null,e.prototype._$startNewDiv=null,e.prototype._$startNewRadio=null,e.prototype._$validationDiv=null,e.prototype._$resetPasswordDiv=null,e.prototype._$newPassword=null,e.prototype._$newPasswordConfirm=null,e.prototype._$resetPasswordSubmit=null,e.prototype._$errorList=null,e.prototype._initialize=function(){if(this._$queryParams=new URLSearchParams(window.location.search),this._$cancelLink=$("a[value='credentials']"),this._$completeExistingDiv=$("#LoginTypeCredentials"),this._$completeExistingRadio=$("input[value='credentials']"),this._$continueButton=$("button.continue"),this._$forgotPasswordDiv=$("#ForgotPassword"),this._$forgotPasswordEmail=$("#ForgotPasswordEmail"),this._$forgotPasswordLink=$("[value='forgotPassword']"),this._$form=$(".pre-apply"),this._$hrefWithoutQuery=window.location.origin+window.location.pathname,this._$loginButton=$("button.signin"),this._$loginEmail=$("#LoginEmail"),this._$loginPassword=$("#LoginPassword"),this._$retrievePasswordButton=$("button.password-retrieve"),this._$startNewDiv=$("#LoginTypeNotApplied"),this._$startNewRadio=$("[value='notAp
1plied']"),this._$validationDiv=$("#validation-errors"),this._$resetPasswordDiv=$("[aopc-job-applicant-password-reset]"),this._$newPassword=this._$resetPasswordDiv.find("[aopc-job-applicant-new-password]"),this._$newPasswordConfirm=this._$resetPasswordDiv.find("[aopc-job-applicant-new-password-confirm]"),this._$resetPasswordSubmit=this._$resetPasswordDiv.find("[aopc-job-applicant-password-reset-submit]"),this._$errorList=$("[apply-online-error-list]"),"true"===this._$queryParams.get("forgotPassword"))return this._handleForgotPasswordLinkClick(null)},e.prototype._attachEvents=function(){return this._$cancelLink.on("click",this._handleCancelLinkClick),this._$completeExistingRadio.on("click",this._handleCompleteExistingRadioClick),this._$startNewRadio.on("click",this._handleStartNewRadioClick),this._$forgotPasswordLink.on("click",this._handleForgotPasswordLinkClick),this._$continueButton.on("click",this._handleContinueButtonClick),this._$loginButton.on("click",this._handleLoginButtonClick),this._$form.on("submit",function(t){return t.preventDefault()}),this._$retrievePasswordButton.on("click",this._handleRetrievePasswordButtonClick),this._$resetPasswordSubmit.on("click",this._handleResetPassword)},e.prototype._clearValidationMessages=function(){return this._$errorList.empty(),this._$validationDiv.toggle(!1)},e.prototype._validateCredentials=function(){var t=!0,e=this._$loginEmail.val(),n=this._$loginPassword.val();return this._validateEmail(e)||(t=!1),null!==n&&n||(this._$errorList.append("<li>Password is required</li>"),t=!1),t||this._$validationDiv.toggle(!0),t},e.prototype._validateEmail=function(t){var e=!0;return null!==t&&t||(this._$errorList.append("<li>Email is required</li>"),e=!1),this._emailRegex.test(t)||(this._$errorList.append("<li>Email is not formatted properly</li>"),e=!1),e||this._$validationDiv.toggle(!0),e},e.prototype._validateNewPassword=function(){var t=!0;return null!==this._$newPassword.val()&&this._$newPassword.val()||(this._$validationDiv.show(),this._$errorList.append("<li>Password is required</li>"),t=!1),this._$newPassword.val()!==this._$newPasswordConfirm.val()&&(this._$validationDiv.show(),this._$errorList.append("<li>Password and Confirmation must match</li>"),t=!1),t},e.prototype._handleCompleteExistingRadioClick=function(){return this._$startNewDiv.toggle(!1),this._$forgotPasswordDiv.toggle(!1),this._$completeExistingDiv.toggle(!0)},e.prototype._handleStartNewRadioClick=function(){return this._$completeExistingDiv.toggle(!1),this._$forgotPasswordDiv.toggle(!1),this._$startNewDiv.toggle(!0)},e.prototype._handleForgotPasswordLinkClick=function(t){return null!==t&&t.preventDefault(),this._$startNewDiv.toggle(!1),this._$completeExistingDiv.toggle(!1),this._$forgotPasswordDiv.toggle(!0)},e.prototype._handleCancelLinkClick=function(t){return t.preventDefault(),this._handleCompleteExistingRadioClick()},e.prototype._handleContinueButtonClick=function(t){return t.preventDefault(),window.location=this._$hrefWithoutQuery+"/application?"+this._$queryParams.toString()},e.prototype._handleLoginButtonClick=function(t){var e,n;if(t.preventDefault(),this._clearValidationMessages(),this._validateCredentials())return t={email:this._$loginEmail.val(),password:this._$loginPassword.val()},$.ajax({contentType:"application/json",data:JSON.stringify(t),type:"POST",url:"/api/jobapplicantauthentication/authenticatewithemail"}).done((n=this,function(t){return n._$queryParams.append("id",t.id),n._$queryParams.append("hash",t.hashedEmail),window.location=n._$hrefWithoutQuery+"/application?"+n._$queryParams.toString()})).fail((e=this,function(){return e._$errorList.append("<li>Email and/or password is incorrect</li>"),e._$validationDiv.toggle(!0)}))},e.prototype._handleRetrievePasswordButtonClick=function(){if(this._clearValidationMessages(),this._validateEmail(this._$forgotPasswordEmail.val()))return $.ajax({contentType:"application/json",data:JSON.stringify({email:this._$forgotPasswordEmail.val()}),type:"PATCH",url:"/api/jobapplicantauthentication/forgotpassword"}),this._$startNewDiv.toggle(!1),this._$forgotPasswordDiv.toggle(!1),this._$completeExistingDiv.toggle(!1)},e.prototype._handleResetPassword=function(t){if(t.preventDefault(),this._clearValidationMessages(),this._val
1idateNewPassword())return t={email:this._$resetPasswordDiv.find("[aopc-job-applicant-reset-password-email]").val(),password:this._$newPassword.val(),resetToken:this._$queryParams.get("set-password")},$.ajax({contentType:"application/json",data:JSON.stringify(t),type:"PATCH",url:"/api/jobapplicantauthentication/resetpassword"}).done(this._resetPasswordSuccess).fail(this._resetPasswordFail)},e.prototype._resetPasswordSuccess=function(t){return this._$resetPasswordDiv.hide(),$("[aopc-job-applicant-password-reset-success]").show()},e.prototype._resetPasswordFail=function(t){return alert("There was an error resetting your password, please try again")},e)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}function t(t){this._handleCountyCourtSelectLinkClick=e(this._handleCountyCourtSelectLinkClick,this),this._handleCountyCourtSelectChange=e(this._handleCountyCourtSelectChange,this),this._initialize(t),this._attachEvents(t)}us.pacourts.views.CountyCourtSelectView=(t.prototype._$countyCourtSelect=null,t.prototype._$countyCourtSelectLink=null,t.prototype._initialize=function(t){if(this._$countyCourtSelect=$("[aopc-county-court-select]"),t)return this._$countyCourtSelectLink=$("[aopc-county-court-select-view]")},t.prototype._attachEvents=function(t){return t?this._$countyCourtSelectLink.on("click",this._handleCountyCourtSelectLinkClick):this._$countyCourtSelect.on("change",this._handleCountyCourtSelectChange)},t.prototype._handleCountyCourtSelectChange=function(t){t=$(t.currentTarget);return window.location=t.find(":selected").attr("aopc-county-court-select-link")},t.prototype._handleCountyCourtSelectLinkClick=function(t){var e=this._$countyCourtSelect.find(":selected").attr("aopc-county-court-select-link");return window.open(e,"_blank")},t)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}function t(t){this._handleMapplicClearComplete=e(this._handleMapplicClearComplete,this),this._handleMapplicClickComplete=e(this._handleMapplicClickComplete,this),this._handleMapplicInitComplete=e(this._handleMapplicInitComplete,this),this._handleCountyDropdownChange=e(this._handleCountyDropdownChange,this),this._mapplicInitialize=e(this._mapplicInitialize,this),this._mapplicComputeHeight=e(this._mapplicComputeHeight,this),this._setCountyDropdown=e(this._setCountyDropdown,this),this._clearCountyDropdown=e(this._clearCountyDropdown,this),this._getLocationFromQueryString=e(this._getLocationFromQueryString,this),this._initialize(t),this._attachEvents()}us.pacourts.views.CountyMapView=(t.prototype._mapplicInitStarted=!1,t.prototype._mapplicReady=!1,t.prototype._mapplicInitialLocation=null,t.prototype._$countySelect=null,t.prototype._$countyOptionsList=null,t.prototype._$mapSection=null,t.prototype._$mapplicContainer=null,t.prototype._$mapplicClearBtn=null,t.prototype._initialize=function(t){if(this._courtType=t,this._$countySelect=$("#county-select"),this._$countyOptionsList=$("#county-select option"),this._$mapSection=$("#map-section"),this._$mapplicContainer=$("#mapplic"),console.log(this._courtType),this._mapplicInitialLocation=this._getLocationFromQueryString(),1062<window.width||null!==this._mapplicInitialLocation&&""!==this._mapplicInitialLocation)return this._mapplicInitialize()},t.prototype._attachEvents=function(){return this._$countySelect.on("change",this._handleCountyDropdownChange)},t.prototype._getLocationFromQueryString=function(){},t.prototype._clearCountyDropdown=function(){return this._$countySelect.val("")},t.prototype._setCountyDropdown=function(t){},t.prototype._mapplicComputeHeight=function(){var t,e;return window.width<1062?(t=window.screen.width,e=window.screen.height,t=Math.min(t,e),Math.round(518*t/900)+120):518},t.prototype._mapplicInitialize=function(){return this._mapplicInitStarted=!0,this._$mapSection.show(),this._$mapplicContainer.mapplic({source:"/api/counties/getcountymap?type="+this._courtType,height:this._mapplicComputeHeight(),usemobiledeviceheight:!1,sidebar:!1,minimap:!1,locations:!0,deeplinking:!0,fullscreen:!1,hovertip:!0,developer:!1,maxscale:3,linkbuttontext:"View Details",initializecompleted:$.proxy(this._handleMapplicInitComplete,this),clickcompleted:$.proxy(this._handleMapplicClickComplete,this),clearcompleted:$.proxy(this._handleMapplicClearComplete,this)})},t.prototype._handleCountyDropdownChange=function(){var t=$("#county-select option:selected").text().toLowerCase();return this._mapplicReady?this._$countySelect.val()?$("g#"+t).click():this._$mapplicClearBtn.length?this._$mapplicClearBtn.click():void 0:(this._mapplicInitialLocation=t,this._mapplicInitStarted?void 0:this._mapplicInitialize())},t.prototype._handleMapplicInitComplete=function(){if(this._mapplicReady=!0,this._$mapplicClearBtn=$(".mapplic-clear-button"),this._mapplicInitialLocation)return $("g#"+this._mapplicInitialLocation).click()},t.prototype._handleMapplicClickComplete=function(){return this._setCountyDropdown(selectedCounty)},t.prototype._handleMapplicClearComplete=function(){return this._clearCountyDropdown()},t)}.call(this),function(){function t(){var t,e;this._handleAccordionButtonClick=(t=this._handleAccordionButtonClick,e=this,function(){return t.apply(e,arguments)}),this._initialize(),this._attachEvents()}us.pacourts.views.FaqView=(t.prototype._$accordionButton=null,t.prototype._initialize=function(){return this._$accordionButton=$("[accordion-button]")},t.prototype._attachEvents=function(){return this._$accordionButton.on("click",this._handleAccordionButtonClick)},t.prototype._handleAccordionButtonClick=function(t){var t=$(t.currentTarget),e=t.parents(".list"),t=t.siblings(".message");return e.toggleClass("closed"),t.fadeToggle()},t)}.call(this),function(){function t(){this._initialize(),this._attachEvents()}us.pacourts.views.FooterView=(t.prototype._initialize=function(){return"initialize"},t.prototype._attachEvents=function(){return $(".backtotop").click(this._goToTop)},t.prototype._goToTop=function(){return $("html, body").animate({scrollTop:0},"fast")},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._loginCheckFailure=t(this._loginCheckFailure,this),this._loginCheckSuccess=t(this._loginCheckSuccess,this),this._submitSuccess=t(this._submitSuccess,this),this._submitFailure=t(this._submitFailure,this),this._handleOpenEmergencyAlertSection=t(this._handleOpenEmergencyAlertSection,this),this._handleLogoutClick=t(this._handleLogoutClick,this),this._handleCloseEmergencyAlertSection=t(this._handleCloseEmergencyAlertSection,this),this._checkIfUserIsLoggedIn=t(this._checkIfUserIsLoggedIn,this),this._displayLoginButtons=t(this._displayLoginButtons,this),this._attachEvents=t(this._attachEvents,this),this._initialize=t(this._initialize,this),this._initialize(),this._attachEvents()}us.pacourts.views.HeaderView=(0,e.prototype._initialize=function(){return this._$logout=$("[aopc-header-logout]"),this._$loginListItem=$("[aopc-login]"),this._$logoutListItem=$("[aopc-logout]"),this._$profileListItem=$("[aopc-profile]"),this._$emergencyAlertSection=$("#emergencyAlertSection"),this._$emergencyAlertMessage=this._$emergencyAlertSection.find(".media.alert.message"),this._$emergencyAlertToggleClosed=this._$emergencyAlertSection.find("div.h4.closed"),this._$emergencyAlertToggleOpen=this._$emergencyAlertSection.find("div.h4.open"),this._checkIfUserIsLoggedIn()},e.prototype._attachEvents=function(){return void 0!==this._$logout&&this._$logout.on("click",this._handleLogoutClick),this._$emergencyAlertSection.on("click",".media.alert.tab.closed",this._handleOpenEmergencyAlertSection),this._$emergencyAlertSection.on("click",".media.alert.tab.o
1pen",this._handleCloseEmergencyAlertSection)},e.prototype._displayLoginButtons=function(t){return t?(this._$loginListItem.hide(),this._$logoutListItem.show(),this._$profileListItem.show()):(this._$loginListItem.show(),this._$logoutListItem.hide(),this._$profileListItem.hide())},e.prototype._checkIfUserIsLoggedIn=function(){return $.ajax({type:"GET",url:"/api/authentication/logincheck?d="+(new Date).getTime()}).done(this._loginCheckSuccess).fail(this._loginCheckFailure)},e.prototype._handleCloseEmergencyAlertSection=function(t){var e=this._$emergencyAlertSection.find(".media.alert.tab.open");return e.addClass("closed"),e.removeClass("open"),this._$emergencyAlertToggleOpen.hide(),this._$emergencyAlertToggleClosed.show(),this._$emergencyAlertMessage.hide(),this._$emergencyAlertSection.addClass("alert-closed")},e.prototype._handleLogoutClick=function(t){return t.preventDefault(),$.ajax({contentType:"application/json",data:null,type:"POST",url:"/api/authentication/logout"}).done(this._submitSuccess).fail(this._submitFailure)},e.prototype._handleOpenEmergencyAlertSection=function(t){var e=this._$emergencyAlertSection.find(".media.alert.tab.closed");return e.addClass("open"),e.removeClass("closed"),this._$emergencyAlertToggleClosed.hide(),this._$emergencyAlertToggleOpen.show(),this._$emergencyAlertMessage.show(),this._$emergencyAlertSection.removeClass("alert-closed")},e.prototype._submitFailure=function(){return window.alert("Something went wrong with your request, please try again.")},e.prototype._submitSuccess=function(){return window.location.replace("/login")},e.prototype._loginCheckSuccess=function(t){return this._displayLoginButtons(t)},e.prototype._loginCheckFailure=function(t){return null},e)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}var n,t;function i(t){this._onHideMapClick=e(this._onHideMapClick,this),this._onShowMapClick=e(this._onShowMapClick,this),this._onSearchModeChange=e(this._onSearchModeChange,this),this._onLoadMore=e(this._onLoadMore,this),this._onSearchSubmitClick=e(this._onSearchSubmitClick,this),this._onSearchTextChange=e(this._onSearchTextChange,this),this._appendTemplate=e(this._appendTemplate,this),this._getQueryParamsFromObject=e(this._getQueryParamsFromObject,this),this._toggleLoadMoreButton=e(this._toggleLoadMoreButton,this),this._populateMap=e(this._populateMap,this),this._geocode=e(this._geocode,this),this._showMap=e(this._showMap,this),this._handleLoadError=e(this._handleLoadError,this),this._handleLoadSuccess=e(this._handleLoadSuccess,this),this._loadJudges=e(this._loadJudges,this),this._resetForm=e(this._resetForm,this),t=JSON.parse(t),this.nextLinkParams.judgeType=t.judgeCourtType,this.templateData.showPhone=!t.hidePhone,this.templateData.showFax=!t.hideFax,this.templateData.showMagisterialDistrict=t.judgeCourtType===this.CONSTANTS.MAGISTERIAL_COURT_TYPE,this._initialize(),this._attachEvents(),this._loadJudges(this.nextLinkParams)}t=us.pacourts.views,n=us.pacourts.templates,t.JudgesSearchView=(i.prototype.CONSTANTS=Object.freeze({ZIPCODE_SEARCH_TYPE:4,MAGISTERIAL_COURT_TYPE:3,DEFAULT_SKIP:0}),i.prototype.searchState={searchText:"",searchType:1},i.prototype.nextLinkParams={searchText:"",judgeType:0,searchType:1,take:15,skip:0,hasMore:!0},i.prototype.templateData={judges:[],showPhone:!0,showFax:!0,showDistance:!1,showMagisterialDistrict:!0},i.prototype.loadingData=!1,i.prototype._initialize=function(){return this._$judgesLoadMore=$("[judges-search-load-more]"),this._$judgesSearchText=$("[judges-search-text]"),this._$judgesSearchSubmit=$("[judges-search-submit]"),this._$judgesSearchReset=$("[judges-search-reset]"),this._$judgesSearchType=$("[judges-search-type]"),this._$judgesSearchShowDetails=$("[judges-search-show-details]"),this._$judgesSearchHideDetails=$("[judges-search-hide-details]"),this._$judgesSearchLoadNext=$("[judges-search-load-next]"),this._$judgesSearchResultsTable=$("[aopc-judge-search-table-body]")},i.prototype._attachEvents=function(){return this._$judgesSearchText.on("change",this._onSearchTextChange),this._$judgesSearchSubmit.on("click",this._onSearchSubmitClick),this._$judgesSearchReset.on("click",this._resetForm),this._$judgesSearchType.on("change",this._onSearchModeChange),this._$judgesSearchResultsTable.on("click","[judges-search-show-detail
1s]",this._onShowMapClick),this._$judgesSearchResultsTable.on("click","[judges-search-hide-details]",this._onHideMapClick),this._$judgesSearchLoadNext.on("click",this._onLoadMore),this._$judgesLoadMore.on("click",this._onLoadMore),$(window).scroll((t=this,function(){if(null!==t._$judgesLoadMore&&$(window).scrollTop()+$(window).height()>t._$judgesLoadMore[0].offsetTop)return t._onLoadMore()}));var t},i.prototype._resetForm=function(t){return t.preventDefault(),window.location.reload(!0)},i.prototype._loadJudges=function(t){if(t.hasMore&&!this.loadingData)return this.loadingData=!0,t="/api/judgeView"+this._getQueryParamsFromObject(t),$.ajax(t).success(this._handleLoadSuccess).error(this._handleLoadError)},i.prototype._handleLoadSuccess=function(t){return this.loadingData=!1,this.nextLinkParams=t.nextLinkParams,this.templateData.judges=this.templateData.judges.concat(t.judges),this._appendTemplate(this.templateData),this._toggleLoadMoreButton(this.nextLinkParams.hasMore)},i.prototype._handleLoadError=function(t){return this.loadingData=!1,window.alert(t.responseJSON.exceptionMessage)},i.prototype._showMap=function(t){var e=this.templateData.judges[t];return this._geocode(e.googleMapsUrl,t)},i.prototype._geocode=function(t,n){return(new google.maps.Geocoder).geocode({address:t},(i=this,function(t,e){return i._populateMap(t,e,n)}));var i},i.prototype._populateMap=function(t,e,n){var i;if("OK"===e&&null!==(e=t[0]))return t={lat:e.geometry.location.lat(),lng:e.geometry.location.lng()},i=new google.maps.InfoWindow({content:e.formatted_address}),n=new google.maps.Map(document.getElementById("map_canvas_"+n),{zoom:14,center:t}),t=new google.maps.Marker({position:t,map:n,title:e.formatted_address}),i.open(n,t)},i.prototype._toggleLoadMoreButton=function(t){return this._$judgesLoadMore.css("display",t?"block":"none")},i.prototype._getQueryParamsFromObject=function(t){var e,n="?";for(e in t)n+=e+"="+t[e]+"&";return n.slice(0,-1)},i.prototype._appendTemplate=function(t){return this._$judgesSearchResultsTable.empty(),this._$judgesSearchResultsTable.append(n.judgesSearchResults(t))},i.prototype._onSearchTextChange=function(t){return this.searchState.searchText=t.currentTarget.value},i.prototype._onSearchSubmitClick=function(){var t=this.searchState,e=t.searchType,t=t.searchText;if($("#zipValidationError").text(null),e!==this.CONSTANTS.ZIPCODE_SEARCH_TYPE||/^\d{5}$/.test(t))return this.templateData.judges=[],this.templateData.showDistance=e===this.CONSTANTS.ZIPCODE_SEARCH_TYPE,this.nextLinkParams.skip=this.CONSTANTS.DEFAULT_SKIP,this.nextLinkParams.hasMore=!0,this.nextLinkParams.searchType=e,this.nextLinkParams.searchText=t,this._loadJudges(this.nextLinkParams);$("#zipValidationError").text("Please enter a valid 5-digit ZIP code.")},i.prototype._onLoadMore=function(){if(this.nextLinkParams.hasMore&&!this.loadingData)return this._loadJudges(this.nextLinkParams)},i.prototype._onSearchModeChange=function(t){return this._$judgesSearchText.val(""),this.searchState.searchType=parseInt(t.currentTarget.value)},i.prototype._onShowMapClick=function(t){t=$(t.currentTarget).attr("map-id");return $("#judge_name_"+t).css("display","none"),$("#show_details_"+t).css("display","none"),$("#judge_details_"+t).css("display","block"),$("#hide_details_"+t).css("display","block"),$("#map_container_"+t).css("display","block"),this._showMap(t)},i.prototype._onHideMapClick=function(t){t=$(t.currentTarget).attr("map-id");return $("#judge_name_"+t).css("display","block"),$("#show_details_"+t).css("display","block"),$("#judge_details_"+t).css("display","none"),$("#hide_details_"+t).css("display","none"),$("#map_container_"+t).css("display","none")},i)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._handleTextInputsChange=t(this._handleTextInputsChange,this),this._handleSiteSearchSubmit=t(this._handleSiteSearchSubmit,this),this._handleFormInputChange=t(this._handleFormInputChange,this),this._checkFormInput=t(this._checkFormInput,this),this._initialize(),this._attachEvents()}us.pacourts.views.MainView=(e.prototype._$datepickers=null,e.prototype._$dropdowns=null,e.prototype._$forms=null,e.prototype._$siteSearchField=null,e.prototype._$siteSearchForm=null,e.prototype._$textInputs=null,e.prototype._initialize=function(){var t,e,n,i,o,a,s,r,l,p,u,d;for(this._$datepickers=$("input[datepicker]"),this._$dropdowns=$("select[selectize]"),this._$forms=$("form:not([db-ne
1wsletter]) button[type=submit]").parents("form"),this._$siteSearchForm=$("[site-search]"),this._$siteSearchField=this._$siteSearchForm.find("input[type=text]"),this._$textInputs=$("input[type=text], input[type=search]"),$(".nyroModal").nyroModal(),n=0,a=(l=this._$datepickers).length;n<a;n++)t=l[n],$(t).datepicker();for(i=0,s=(p=this._$dropdowns).length;i<s;i++)t=p[i],$(t).selectize({placeholder:t.getAttribute("placeholder"),plugins:["remove_button"]});for(d=[],o=0,r=(u=this._$forms).length;o<r;o++)e=u[o],d.push(this._checkFormInput($(e)));return d},e.prototype._attachEvents=function(){return this._$forms.find("input, select").on("change keyup paste click",this._handleFormInputChange),this._$siteSearchForm.on("submit",this._handleSiteSearchSubmit),this._$textInputs.on("change keyup paste click",this._handleTextInputsChange)},e.prototype._checkFormInput=function(t){for(var e,n=!1,i=t.serializeArray(),o=0,a=i.length;o<a;o++)e=i[o],!n&&0<e.value.length&&(n=!0);return t.find("button[type=submit]").toggleClass("-disabled",!n)},e.prototype._handleFormInputChange=function(t){return this._checkFormInput($(t.currentTarget).parents("form"))},e.prototype._handleSiteSearchSubmit=function(t){return location.href=this._$siteSearchForm.attr("action")+"?"+this._$siteSearchField.attr("name")+"="+encodeURIComponent(this._$siteSearchField.val()),!1},e.prototype._handleTextInputsChange=function(t){t=$(t.currentTarget);return t.toggleClass("-content",0<t.val().length)},e)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._handleMediaResourcesSearchFormSubmit=t(this._handleMediaResourcesSearchFormSubmit,this),this._handleMediaResourcesSearchInputChange=t(this._handleMediaResourcesSearchInputChange,this),this._initialize(),this._attachEvents()}us.pacourts.views.MediaResourcesSearchView=(e.prototype._$mediaResourcesSearchForm=null,e.prototype._$mediaResourcesSearchInput=null,e.prototype._$mediaResourcesSearchInputValue=null,e.prototype._initialize=function(){return this._$mediaResourcesSearchForm=$("[media-resources-search-form]"),this._$mediaResourcesSearchInput=this._$mediaResourcesSearchForm.find("[media-resources-search-input]")},e.prototype._attachEvents=function(){return this._$mediaResourcesSearchInput.on("keyup",this._handleMediaResourcesSearchInputChange),this._$mediaResourcesSearchForm.on("submit",this._handleMediaResourcesSearchFormSubmit)},e.prototype._handleMediaResourcesSearchInputChange=function(){return this._$mediaResourcesSearchInputValue=this._$mediaResourcesSearchInput.val()},e.prototype._handleMediaResourcesSearchFormSubmit=function(t){return t.preventDefault(),(new us.pacourts.utilities.URLParameterUtilities).setURLParameter("searchText",this._$mediaResourcesSearchInputValue)},e)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._handleStatusToggle=t(this._handleStatusToggle,this),this._handleOptionToggle=t(this._handleOptionToggle,this),this._handleFormSubmit=t(this._handleFormSubmit,this),this._handleEmailBlur=t(this._handleEmailBlur,this),this._submitSuccess=t(this._submitSuccess,this),this._submitFailure=t(this._submitFailure,this),this._sendAjaxCall=t(this._sendAjaxCall,this),this._prepareFormSubmission=t(this._prepareFormSubmission,this),this._emailIsValid=t(this._emailIsValid,this),this._clearForm=t(this._clearForm,this),this._attachEvents=t(this._attachEvents,this),this._fetchSub
1scriberPreferences=t(this._fetchSubscriberPreferences,this),this._initialize=t(this._initialize,this),this._initialize()}us.pacourts.views.NewsletterSignupFormView=(e.prototype._emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,e.prototype._$newsletterSignupForm=null,e.prototype._$subscriptionEmail=null,e.prototype._$subscriptionOptions=null,e.prototype._$subscriptionStatus=null,e.prototype._subscriberExists=!1,e.prototype._lastFetchedEmail=null,e.prototype._initialize=function(){var t;return this._$newsletterSignupForm=$("[aopc-newsletter-signup-form]"),this._$subscriptionEmail=this._$newsletterSignupForm.find("input[name=EmailAddress]"),this._$subscriptionOptions=this._$newsletterSignupForm.find("input[name=SubscriptionOptions]"),this._$subscriptionStatus=this._$newsletterSignupForm.find("input[name=SubscriptionStatus]"),(t=this._getQueryParam("email"))&&this._$subscriptionEmail.val(decodeURIComponent(t)),this._fetchSub
1scriberPreferences(),this._attachEvents()},e.prototype._getQueryParam=function(t){return new URLSearchParams(window.location.search).get(t)},e.prototype._fetchSubscriberPreferences=function(){var e,n,t=this._$subscriptionEmail.val().trim();if(t&&this._emailIsValid(t)&&t!==this._lastFetchedEmail)return this._subscriberExists=!1,this._lastFetchedEmail=t,this._$subscriptionOptions.prop("checked",!1),this._$subscriptionStatus.prop("checked",!1),$.ajax({type:"GET",url:"/api/newslettersubscription/subscriber?emailAddress="+encodeURIComponent(t),dataType:"json"}).done((n=this,function(t){if(n._subscriberExists=!0,null!=t&&t.subscriptionOptions&&t.subscriptionOptions.forEach(function(t){return n._$subscriptionOptions.filter("[value="+t+"]").prop("checked",!0)}),0===(null!=t?t.subscriptionStatus:void 0))return n._$subscriptionStatus.prop("checked",!0)})).fail((e=this,function(t){if(404!==t.status)return e._lastFetchedEmail=null,window.alert("Unable to get subscription preferences. Please try again later.")}))},e.prototype._attachEvents=function(){return this._$newsletterSignupForm.on("submit",this._handleFormSubmit),this._$newsletterSignupForm.on("change","input[name=SubscriptionOptions]",this._handleOptionToggle),this._$newsletterSignupForm.on("change","input[name=SubscriptionStatus]",this._handleStatusToggle),this._$subscriptionEmail.on("blur",this._handleEmailBlur)},e.prototype._clearForm=function(){return this._$newsletterSignupForm.trigger("reset")},e.prototype._emailIsValid=function(t){return this._emailRegex.test(String(t).toLowerCase())},e.prototype._prepareFormSubmission=function(){var t,n=[];return this._$subscriptionOptions.filter(":checked").each(function(t,e){return n.push(Number(e.value))}),t=this._$subscriptionStatus.prop("checked")?0:1,t={EmailAddress:this._$subscriptionEmail.val(),SubscriptionOptions:n,SubscriptionStatus:t},this._emailIsValid(t.EmailAddress)?this._sendAjaxCall(t):window.alert("Please enter a valid email address.")},e.prototype._sendAjaxCall=function(t){var e,n=this._subscriberExists?(e="PUT","/api/newslettersubscription/update"):(e="POST","/api/newslettersubscription/create");return $.ajax({contentType:"application/json",data:JSON.stringify(t),type:e,url:n}).done(this._submitSuccess).fail(this._submitFailure)},e.prototype._submitFailure=function(){return window.alert("Sorry, an error occurred and we are unable to update your subscription at this time. Please try again later.")},e.prototype._submitSuccess=function(){return this._clearForm(),window.alert("Your updates have been saved. Thank you!")},e.prototype._handleEmailBlur=function(){return this._$subscriptionEmail.val().trim()!==this._lastFetchedEmail&&(this._subscriberExists=!1),this._fetchSub
1scriberPreferences()},e.prototype._handleFormSubmit=function(t){return t.preventDefault(),this._prepareFormSubmission()},e.prototype._handleOptionToggle=function(){if(0<this._$subscriptionOptions.filter(":checked").length)return this._$subscriptionStatus.prop("checked",!1)},e.prototype._handleStatusToggle=function(){if(this._$subscriptionStatus.prop("checked"))return this._$subscriptionOptions.prop("checked",!1)},e)}.call(this),function(){function t(t,e){this._initialize(t,e)}us.pacourts.views.RotatorView=(t.prototype._$alertBoxControl=null,t.prototype._initialize=function(t,e){return this._rotatorType=t,this._autoRotate=e,$(".bxslider").bxSlider({mode:"fade",auto:"True"===this._autoRotate,controls:"news"!==this._rotatorType,speed:500})},t)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}function t(t){this._redirectIsNotValid=e(this._redirectIsNotValid,this),this._redirectIsValid=e(this._redirectIsValid,this),this._signInSuccess=e(this._signInSuccess,this),this._signInFailure=e(this._signInFailure,this),this._handleSignInButtonClick=e(this._handleSignInButtonClick,this),this._setupFromQueryParams=e(this._setupFromQueryParams,this),this._initialize(t),this._attachEvents()}us.pacourts.views.LoginView=(t.prototype._$password=null,t.prototype._$signin=null,t.prototype._$username=null,t.prototype._userPortalLink=null,t.prototype._initialize=function(t){return this._$password=$("[password-input]"),this._$signin=$("[signin-button]"),this._$username=$("[username-input]"),this._userPortalLink=t,this._setupFromQueryParams()},t.prototype._attachEvents=function(){return this._$signin.on("click",this._handleSignInButtonClick)},t.prototype._setupFromQueryParams=function(){var t,i={};if(window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,n){return i[e.toUpperCase()]=n}),t=i.RETURNURL,this._redirectIsValid(t))return this._redirect=t},t.prototype._handleSignInButtonClick=function(t){var e;return t.preventDefault(),t=this._$username.val(),e=this._$password.val(),$.ajax({contentType:"application/json",data:JSON.stringify({Username:t,Password:e}),type:"POST",url:"/api/authentication/login"}).done(this._signInSuccess).fail(this._signInFailure)},t.prototype._signInFailure=function(t){return window.alert("The username and password combination you entered was incorrect.")},t.prototype._signInSuccess=function(t){t=this._redirectIsNotValid(t)?this._userPortalLink.url:t;return this._redirectIsValid(this._redirect)&&(t=this._redirect),window.location.replace(decodeURIComponent(t))},t.prototype._redirectIsValid=function(t){return null!==t&&"null"!==t&&""!==t&&void 0!==t&&"undefined"!==t},t.prototype._redirectIsNotValid=function(t){return!this._redirectIsValid(t)},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._submitSuccess=t(this._submitSuccess,this),this._submitFailure=t(this._submitFailure,this),this._handleSubmitButtonClick=t(this._handleSubmitButtonClick,this),this._initialize(),this._attachEvents()}us.pacourts.views.PasswordResetView=(e.prototype._$email=null,e.prototype._$submit=null,e.prototype._initialize=function(){return this._$email=$("[linked-email]"),this._$submit=$("[reset-password]")},e.prototype._attachEvents=function(){return this._$submit.on("click",this._handleSubmitButtonClick)},e.prototype._handleSubmitButtonClick=function(t){return t.preventDefault(),t=this._$email.val(),$.ajax({contentType:"application/json",data:JSON.stringify({Email:t}),type:"POST",url:"/api/authentication/passwordrecovery"}).done(this._submitSuccess).fail(this._submitFailure)},e.prototype._submitFailure=function(){return window.alert("Something went wrong please try again.")},e.prototype._submitSuccess=function(){return window.alert("An email has been sent to the provided address with a link to reset your password."),window.location.replace("/login")},e)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}function t(t){this._submitSuccess=e(this._submitSuccess,this),this._submitFailure=e(this._submitFailure,this),this._handleSubmitButtonClick=e(this._handleSubmitButtonClick,this),this._getQueryParameter=e(this._getQueryParameter,this),this._hideForm=e(this._hideForm,this),this._initialize(t),this._attachEvents()}us.pacourts.views.PasswordTokenResetView=(t.prototype._$confirmPassword=null,t.prototype._$newPassword=null,t.prototype._$submit=null,t.prototype._loginLink=null,t.prototype._passwordTokenForm=null,t.prototype._formUnavailable=null,t.prototype.token=null,t.prototype.username=null,t.prototype.isLegacyUser=!1,t.prototype._initialize=function(t){if(this._passwordTokenForm=$("[aopc-password-token-form]"),this._formUnavailable=$("[aopc-password-token-form-unavailable]"),this._$newPassword=$("[new-password]"),this._$confirmPassword=$("[confirm-password]"),this._$submit=$("[reset-password]"),this._loginLink=t,this.username=this._getQueryParameter("username"),this.token=this._getQueryParameter("token"),this.isLegacyUser="true"===this._getQueryParameter("lu"),null===this.username||""===this.username||null===this.token||""===this.token)return this._hideForm()},t.prototype._hideForm=function(){return this._passwordTokenForm.attr("hidden",!0),this._formUnavailable.attr("hidden",!1)},t.prototype._attachEvents=function(){return this._$submit.on("click",this._handleSubmitButtonClick)},t.prototype._getQueryParameter=function(t){return new URLSearchParams(window.location.search).get(t)},t.prototype._handleSubmitButtonClick=function(t){var e,n;if(t.preventDefault(),t=this._$newPassword.val(),e=this._$confirmPassword.val(),n={Username:this.username,NewPassword:t,Token:this.token,IsLegacyUser:this.isLegacyUser},t===e)return $.ajax({contentType:"application/json",data:JSON.stringify(n),type:"POST",url:"/api/authentication/passwordtokenreset"}).done(this._submitSuccess).fail(this._submitFailure);window.alert("The entered passwords do not match.")},t.prototype._submitFailure=function(){return window.alert("Something went wrong please try again.")},t.prototype._submitSuccess=function(){return window.alert("Your password has been successfully changed. You will be redirected to the login page."),window.location.replace("/login")},t)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}
1function t(t){this._validatePassword=e(this._validatePassword,this),this._submitSuccess=e(this._submitSuccess,this),this._submitFailure=e(this._submitFailure,this),this._handleSubmitButtonClick=e(this._handleSubmitButtonClick,this),this._initialize(t),this._attachEvents()}us.pacourts.views.UserChangePasswordView=(t.prototype._$currentPassword=null,t.prototype._$newPassword=null,t.prototype._$repeatNewPassword=null,t.prototype._$submit=null,t.prototype._currentUser=null,t.prototype._passwordRegex=null,t.prototype._initialize=function(t){return this._$currentPassword=$("[current-password]"),this._$newPassword=$("[new-password]"),this._$repeatNewPassword=$("[repeat-new-password]"),this._$submit=$("[submit-button]"),this._currentUser=t,this._passwordRegex=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*()-_=+{}<>?/])(?=.{8,})")},t.prototype._attachEvents=function(){return this._$submit.on("click",this._handleSubmitButtonClick)},t.prototype._handleSubmitButtonClick=function(t){var e,n;if(t.preventDefault(),t=this._currentUser.Email,e=this._$currentPassword.val(),(n=this._$newPassword.val())!==this._$repeatNewPassword.val())window.alert("The password and confirm password do not match.");else if(this._validatePassword(n)){if(e!==n)return $.ajax({contentType:"application/json",data:JSON.stringify({Email:t,CurrentPassword:e,NewPassword:n}),type:"POST",url:"/api/authentication/updatepassword"}).done(this._submitSuccess).fail(this._submitFailure);window.alert("You may not reuse your current password.")}else window.alert("Your new password does not meet the requirements.")},t.prototype._submitFailure=function(t,e,n){return t&&400===t.status&&t.responseJSON?t.responseJSON&&t.responseJSON.message?window.alert(t.responseJSON.message):window.alert("There was an error with your submission."):t&&401===t.status?window.alert("You do not have permission to change this password."):window.alert("There was an error and your password could not be changed.")},t.prototype._submitSuccess=function(){return window.alert("Your password has been successfully changed.")},t.prototype._validatePassword=function(t){return 8<=t.length&&t.length<=20&&this._passwordRegex.test(t)},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._submitSuccess=t(this._submitSuccess,this),this._submitFailure=t(this._submitFailure,this),this._handleSubmitButtonClick=t(this._handleSubmitButtonClick,this),this._initialize(),this._attachEvents()}us.pacourts.views.UsernameRecoveryView=(e.prototype._$email=null,e.prototype._$submit=null,e.prototype._initialize=function(){return this._$email=$("[linked-email]"),this._$submit=$("[retrieve-username]")},e.prototype._attachEvents=function(){return this._$submit.on("click",this._handleSubmitButtonClick)},e.prototype._handleSubmitButtonClick=function(t){return t.preventDefault(),t=this._$email.val(),$.ajax({contentType:"application/json",data:JSON.stringify({Email:t}),type:"POST",url:"/api/authentication/usernamerecovery"}).done(this._submitSuccess).fail(this._submitFailure)},e.prototype._submitFailure=function(){return window.alert("The server encountered an error, please try again later.")},e.prototype._submitSuccess=function(){return window.alert("If the email you entered is registered in our system, you will receive a message containing your username.")},e)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}function t(t){this._handleCancelButtonClick=e(this._handleCancelButtonClick,this),this._handleEditButtonClick=e(this._handleEditButtonClick,this),this._submitSuccess=e(this._submitSuccess,this),this._submitFailure=e(this._submitFailure,this),this._handleSubmitButtonClick=e(this._handleSubmitButtonClick,this),this._initialize(t),this._attachEvents()}us.pacourts.views.UserPortalView=(t.prototype._$userPortal=null,t.prototype._$userName=null,t.prototype._$userEmail=null,t.prototype._$firstName=null,t.prototype._$lastName=null,t.prototype._$userNameInput=null,t.prototype._$userEmailInput=null,t.prototype._$firstNameInput=null,t.prototype._$lastNameInput=null,t.prototype._$userPortalEditButton=null,t.prototype._$userPortalFormSubmit=null,t.prototype._$userPortalFormCancel=null,t.prototype._$memberLinksArea=null,t.prototype._$memberLinks
1HiringTracking=null,t.prototype._$memberLinksJudicialAdmin=null,t.prototype._$memberLinksOpinions=null,t.prototype._$memberLinksCommonwealthOpinions=null,t.prototype._$memberLinksDboardOpinions=null,t.prototype._$memberLinksSuperiorOpinions=null,t.prototype._$memberLinksSupremeOpinions=null,t.prototype._user=null,t.prototype._initialize=function(t){return this._$userPortal=$("[aopc-user-portal]"),this._$userName=$("[user-portal-display-username]"),this._$userEmail=$("[user-portal-display-email]"),this._$firstName=$("[user-portal-display-firstname]"),this._$lastName=$("[user-portal-display-lastname]"),this._$userNameInput=$("[user-portal-input-username]"),this._$userEmailInput=$("[user-portal-input-email]"),this._$firstNameInput=$("[user-portal-input-firstname]"),this._$lastNameInput=$("[user-portal-input-lastname]"),this._$userPortalEditButton=$("[user-portal-edit-button]"),this._$userPortalFormSubmit=$("[user-portal-form-submit]"),this._$userPortalFormCancel=$("[user-portal-form-cancel]"),this._user=t},t.prototype._attachEvents=function(){return this._$userPortalEditButton.on("click",this._handleEditButtonClick),this._$userPortalFormSubmit.on("click",this._handleSubmitButtonClick),this._$userPortalFormCancel.on("click",this._handleCancelButtonClick)},t.prototype._handleSubmitButtonClick=function(t){return t.preventDefault(),this._user.UserName=this._$userNameInput.val(),this._user.Email=this._$userEmailInput.val(),this._user.FirstName=this._$firstNameInput.val(),this._user.LastName=this._$lastNameInput.val(),$.ajax({contentType:"application/json",data:JSON.stringify(this._user),type:"POST",url:"/api/authentication/updateprofile"}).done(this._submitSuccess).fail(this._submitFailure)},t.prototype._submitFailure=function(){return window.alert("Something went wrong please try again.")},t.prototype._submitSuccess=function(){return window.alert("Your profile has been successfully updated."),location.reload(!0)},t.prototype._handleEditButtonClick=function(){return this._$userName.hide(),this._$userEmail.hide(),this._$firstName.hide(),this._$lastName.hide(),this._$userPortalEditButton.hide(),this._$userNameInput.show(),this._$userEmailInput.show(),this._$firstNameInput.show(),this._$lastNameInput.show(),this._$userPortalFormSubmit.show(),this._$userPortalFormCancel.show()},t.prototype._handleCancelButtonClick=function(){return this._$userNameInput.hide(),this._$userEmailInput.hide(),this._$firstNameInput.hide(),this._$lastNameInput.hide(),this._$userPortalFormSubmit.hide(),this._$userPortalFormCancel.hide(),this._$userName.show(),this._$userEmail.show(),this._$firstName.show(),this._$lastName.show(),this._$userPortalEditButton.show()},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._handleSaveError=t(this._handleSaveError,this),this._handleSaveSuccess=t(this._handleSaveSuccess,this),this._handleSubmitClick=t(this._handleSubmitClick,this),this._saveComment=t(this._saveComment,this),this._composeComment=t(this._composeComment,this),this._commentHasErrors=t(this._commentHasErrors,this),this._clearErrors=t(this._clearErrors,this),this._addError=t(this._addError,this),this._hideErrorMessages=t(this._hideErrorMessages,this),this._showErrorMessages=t(this._showErrorMessages,this),this._hideSuccessMessage=t(this._hideSuccessMessage,this),this._showSuccessMessage=t(this._showSuccessMessage,this),this._initialize(),this._attachEvents()}us.pacourts.views.CommentsInquiriesFormView=(e.prototype._SUBMIT_URL="/api/commentsinquiries/create",e.prototype._$firstNameField=null,e.prototype._$lastNameField=null,e.prototype._$addressField=null,e.prototype._$cityField=null,e.prototype._$stateField=null,e.prototype._$zipField=null,e.prototype._$emailField=null,e.prototype._$phoneField=null,e.prototype._$faxField=null,e.prototype._$reCaptcha=null,e.prototype._$commentsField=null,e.prototype._$errorMessages=null,e.prototype._$successMessage=null,e.prototype._initialize=function(){return this._$inquiriesForm=$("[aopc-inquiries-form]"),this._$firstNameField=this._$inquiriesForm.find("[aopc-inquiries-firstname]"),this._$lastNameField=this._$inquiriesForm.find("[aopc-inquiries-lastname]"),this._$addressField=this._$inquiriesForm.find("[aopc-inquiries-address]"),this._$cityField=this._$inquiriesForm.find("[aopc-inquiries-city]"),this._$stateField=this._$inquiriesForm.find("[aopc-inquiries-state]"),this._$zipField=this._$inquiriesForm.find("[aopc-inquiries-zip]"),this._$emailField=this._$inquiriesForm.find("[aopc-inquiries-email-address]"),this._$phoneField=this._$inquiriesForm.find("[aopc-inquiries-telephone]"),this._$faxField=this._$inquiriesForm.find("[aopc-inquiries-fax]"),this._$reCaptcha=this._$inquiriesForm.find("[aopc-inquiries-recaptcha]"),this._$commentsField=this._$inquiriesForm.find("[aopc-inquiries-comments]"),this._$errorMessages=this._$inquiriesForm.find("[aopc-inquiries-errors]"),this._$successMessage=this._$inquiriesForm.find("[aopc-inquiries-success]")},e.prototype._attachEvents=function(){return $("[aopc-inquiries-submit]").on("click",this._handleSubmitClick)},e.prototype._showSuccessMessage=function(){return this._$successMessage.removeAttr("hidden")},e.prototype._hideSuccessMessage=function(){return this._$successMessage.attr("hidden")},e.prototype._showErrorMessages=function(){return this._$errorMessages.removeAttr("hidden")},e.prototype._hideErrorMessages=function(){return this._$errorMessages.attr("hidden")},e.prototype._addError=function(t){return this._$errorMessages.find(".Errors").append("<li>"+t+"</li>")},e.prototype._clearErrors=function(){return this._$errorMessages.empty()},e.prototype._commentHasErrors=function(t){var e;return this._$errorMessages.find(".Errors").empty(),e=!1,0===grecaptcha.getResponse().length&&(this._addError("Please verify you are human."),e=!0),null!=t.emailAddress&&""!==t.emailAddress||(this._addError("An email address is required."),e=!0),null!=t.comments&&""!==t.comments||(this._addError("A comment is required."),e=!0),e},e.prototype._composeComment=function(){return{address:this._$addressField.val(),city:this._$cityField.val(),comments:this._$commentsField.val(),emailAddress:this._$emailField.val(),fax:this._$faxField.val(),firstName:this._$firstNameField.val(),lastName:this._$lastNameField.val(),state:this._$stateField.val(),telephone:this._$phoneField.val(),zipCode:this._$zipField.val()}},e.prototype._saveComment=function(t){var e;return t=this._composeComment(),e=grecaptcha.getResponse(),$.ajax({dataType:"json",contentType:"application/json",data:JSON.stringify({comment:t,recaptcha:e}),type:"POST",url:this._SUBMIT_URL}).done(this._handleSaveSuccess).fail(this._handleSaveError)},e.prototype._handleSubmitClick=function(t){if(t.preventDefault(),t=this._composeComment(),!this._commentHasErrors(t))return this._saveComment(t);this._showErrorMessages()},e.prototype._handleSaveSuccess=function(t){if(null!==t)return this._hideErrorMessages(),this._clearErrors(),this._showSuccessMessage();this._handleSaveError()},e.prototype._handleSaveError=function(t){return this._hideSuccessMessage(),this._addError(t.responseJSON.exceptionMessage),this._showErrorMessages()},e)}
1.call(this),function(){function a(t,e){return function(){return t.apply(e,arguments)}}function t(t,e,n,i,o){this._handleClearLabels=a(this._handleClearLabels,this),this._handleGetCitationsError=a(this._handleGetCitationsError,this),this._handleGetCitationsSuccess=a(this._handleGetCitationsSuccess,this),this._handleUpdateParagraphLabel=a(this._handleUpdateParagraphLabel,this),this._handleChangeCitationSubItem=a(this._handleChangeCitationSubItem,this),this._handleChangeCitationItem=a(this._handleChangeCitationItem,this),this._handleChangeCitationSection=a(this._handleChangeCitationSection,this),this._changeCitationSelect=a(this._changeCitationSelect,this),this._updateCitationText=a(this._updateCitationText,this),this._resetSelectList=a(this._resetSelectList,this),this._$formCodeLabel=t.find("[aopc-jeabopinions-code-label]"),this._$formSectionLabel=t.find("[aopc-jeabopinions-section-label]"),this._$formItemLabel=t.find("[aopc-jeabopinions-item-label]"),this._$formSubItemLabel=t.find("[aopc-jeabopinions-subitem-label]"),this._$formCodeSelect,this._$formSelectCode=e,this._$formSelectCodeSection=n,this._$formSelectCodeItem=i,this._$formSelectCodeSubItem=o}us.pacourts.views.JeabOpinionCitations=(t._selectToLoad=null,t._$formCodeLabel=null,t._$formSectionLabel=null,t._$formItemLabel=null,t._$formSelectCode=null,t._$formSelectCodeSection=null,t._$formSelectCodeItem=null,t._$formSelectCodeSubItem=null,t._savedCodeData=null,t._savedSectionData=null,t._savedItemData=null,t._savedSubItemData=null,t.prototype._resetSelectList=function(t){return t.options.length=0,t.append(new Option("--Select--",""))},t.prototype._updateCitationText=function(t){var e,n,i;return"Code"===t?(n=this._$formSelectCode.val(),i=this._savedCodeData,e="title"):"Section"===t?(n=this._$formSelectCodeSection.val(),i=this._savedSectionData,e="text"):"Item"===t?(n=this._$formSelectCodeItem.val(),i=this._savedItemData,e="text"):"SubItem"===t&&(n=this._$formSelectCodeSubItem.val(),i=this._savedSubItemData,e="text"),i=i.filter(function(t){return t.id===parseInt(n)}),"Code"===t?this._$formCodeLabel.text(i[0][e]):"Section"===t?this._$formSectionLabel.text(i[0][e]):"Item"===t?this._$formItemLabel.text(i[0][e]):"SubItem"===t?this._$formSubItemLabel.text(i[0][e]):void 0},t.prototype._changeCitationSelect=function(t){var e="";return"Code"===t?(e="/api/codes",this._selectToLoad=null):"Section"===t?(this._updateCitationText("Code"),e="/api/codesections?codeid="+this._$formSelectCode.val(),this._selectToLoad=this._$formSelectCodeSection[0],this._resetSelectList(this._$formSelectCodeItem[0]),this._resetSelectList(this._$formSelectCodeSubItem[0]),this._$formSectionLabel.text(""),this._$formItemLabel.text(""),this._$formSubItemLabel.text("")):"Item"===t?(this._updateCitationText("Section"),e="/api/codeitems?codeSectionId="+this._$formSelectCodeSection.val(),this._selectToLoad=this._$formSelectCodeItem[0],this._resetSelectList(this._$formSelectCodeSubItem[0]),this._$formItemLabel.text(""),this._$formSubItemLabel.text("")):"SubItem"===t&&(this._updateCitationText("Item"),e="/api/codesubitems?codeItemId="+this._$formSelectCodeItem.val(),this._selectToLoad=this._$formSelectCodeSubItem[0],this._$formSubItemLabel.text("")),$.ajax({url:e,type:"GET",contentType:"application/json"}).done(this._handleGetCitationsSuccess).fail(this._handleGetCitationsFailure)},t.prototype._handleChangeCitationSection=function(){return this._$formSelectCode.removeClass("error"),this._changeCitationSelect("Section")},t.prototype._handleChangeCitationItem=function(){return this._changeCitationSelect("Item")},t.prototype._handleChangeCitationSubItem=function(){return this._changeCitationSelect("SubItem"),!0},t.prototype._handleUpdateParagraphLabel=function(){return this._updateCitationText("SubItem")},t.prototype._handleGetCitationsSuccess=function(t){var e,n,i;if(null==this._selectToLoad)this._savedCodeData=t;else{if(null!=t&&0===t.length)return this._selectToLoad.options.length=0,this._selectToLoad.append(new Option("--Not Applicable--","")),!0;for(this._resetSelectList(this._selectToLoad),"section"===this._selectToLoad.name?this._savedSectionData=t:"item"===this._selectToLoad.name?this._savedItemData=t:"subitem"===this._selectToLoad.name&&(this._savedSubItemData=t),e=0,n=t.length;e<n;e++)i=t[e],this._selectToLoad.append(new Option(i.displayName,i.id))}return!0},t.prototype._handleGetCitationsError=function(){return alert("Get citations failed.")},t.prototype._handleClearLabels=function(){return this._$formCodeLabel.text(""),this._$formSectionLabel.text(""),this._$formItemLabel.text(""),this._$formSubItemLabel.text("")},t)}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}var n,i,o,t;function a(t){this._handleBreadcrumbClick=e(this._handleBreadcrumbClick,this),this._handleSortChange=e(this._handleSortChange,this),this._handlePageClick=e(this._handlePageClick,this),this._handlePreviousPageClick=e(this._handlePreviousPageClick,this),this._handleNextPageClick=e(this._handleNextPageClick,this),this._handleCancel=e(this._handleCancel,this),this._handleStartOver=e(this._handleStartOver,this),this._handleShowEditParams=e(this._handleShowEditParams,this),this._handleFormClear=e(this._handleFormClear,this),this._handleFormSubmit=e(this._handleFormSubmit,this),this._handleGetError=e(this._handleGetError,this),this._handleGetSuccess=e(this._handleGetSuccess,this),this._toggleSearchResults=e(this._toggleSearchResults,this),this._toggleQueryEditor=e(this._toggleQueryEditor,this),this._setSortValues=e(this._setSortValues,this),this._search=e(this._search,this),this._drawResults=e(this._drawResults,this),this._handleNumericOnlyKeys=e(this._handleNumericOnlyKeys,this),this._clearForm=e(this._clearForm,this),this._initialize(),this._attachEvents(),this._initializeForm()}t=us.pacourts.views,i=us.pacourts.templates,o=us.pacourts.utilities,n=us.pacourts.views.JeabOpinionCitations,t.JeabOpinionSearchView=(a.prototype._config=null,a.prototype._pagingUtilities=null,a.prototype._citations=null,a.prototype._$form=null,a.prototype._$formActions=null,a.prototype._$formError=null,a.prototype._$noResults=null,a.prototype._$results=null,a.prototype._$sortResults=null,a.prototype._$viewCase=null,a.prototype._$window=null,a.prototype._$formOpinionNumber=null,a.prototype._$formDateRendered=null,a.prototype._$formSelectCode=null,a.prototype._$formSelectCodeSection=null,a.prototype._$formSelectCodeItem=null,a.prototype._$formSelectCodeSubItem=null,a.prototype._isDirty=null,a.prototype._rules=null,a.prototype._reloadOnSort=null,a.prototype._searchResults=null,a.prototype._sort=null,a.prototype._$nextButton=null,a.prototype._$nextStatus=null,a.prototype._$paginationContainer=null,a.prototype._$prevButton=null,a.prototype._$prevStatus=null,a.prototype._currentPage=null,a.prototype._pageSize=null,a.prototype._totalCount=null,a._$formBreadcrumb=null,a.prototype._initialize=function(t){return this._pagingUtilities=new o.PagingUtilities,this._config=null!=t?t:{},this._$window=$(window),this._$form=$("[aopc-jeabopinions-search-form]"),this._$formBreadcrumb=$("[aopc-jeabopinions-search-breadcrumb]"),this._$cleanEditor=$("[aopc-jeabopinions-clean-form-editor]"),this._$dirtyEditor=$("[aopc-jeabopinions-dirty-form-editor]"),this._$editSearch=$("[aopc-jeabopinions-search-edit]"),this._$formActions=this._$form.find("[aopc-jeabopinions-search-form-actions]"),this._$formError=this._$form.find("[aopc-jeabopinions-search-form-error]"),this._$formSelectKeywords=this._$form.find("[aopc-jeabopinions-select-tags]"),this._$formOpinionNumber=this._$form.find("[aopc-jeabopinions-opinionnumber-input]"),this._$formDateRendered=this._$form.find("[aopc-jeabopinions-daterendered-input]"),this._$formSelectCode=this._$form.find("[aopc-jeabopinions-code-type-select]"),this._$formSelectCodeSection=this._$form.find("[aopc-jeabopinions-section-type-select]"),this._$formSelectCodeItem=this._$form.find("[aopc-jeabopinions-item-type-select]"),this._$formSelectCodeSubItem=this._$form.find("[aopc-jeabopinions-subitem-type-select]"),this._$noResults=$("[aopc-jeabopinions-no-results]"),this._$parameterCount=$("[aopc-jeabopinions-search-parameter-count]"),this._$resultCount=$("[aopc-jeabopinions-search-results-count]"),this._$resultsData=$("[aopc-jeabopinions-search-results-data]"),this._$results=$("[aopc-jeabopinions-search-results]"),this._$sortResults=$("[aopc-jeabopinions-sort-order]"),this._$startOver=$("[aopc-jeabopinions-search-start-over]"),this._$summary=$("[aopc-jeabopinions-search-summary]"),this._isDirty=!1,this._itemTemplate=i["jeabOpinion/jeabOpinionSearchResultItem"],this._searchResults=[],this._reloadOnSort=!0,this._$paginationContainer=$("[aopc-jeabopinions-paging]"),this._$nextButton=this._$paginationContainer.find("[aopc-jeabopinions-paging-next]"),this._$nextStatus=this._$paginationContainer.find("[aopc-jeabopinions-paging-pages-next]"),this._$prevButton=this._$paginationContainer.find("[aopc-jeabopinions-paging-prev]"),this._$prevStatus=this._$paginationContainer.find("[aopc-jeabopinions-paging-pages-prev]"),this._$totalCount=$("[aopc-jeabopinions-total-records]"),this._pageSize=5,this._totalCount=0,this._$dirtyEditor.hide(),this._$noResults.hide(),this._$paginationContainer.hide(),this._$summary.hide(),this._citations=new n(this._$form,this._$formSelectCode,this._$formSelectCodeSection,this._$formSelectCodeItem,this._$formSelectCodeSubItem),this._$results.hide()},a.prototype._attachEvents=function(){return this._$editSearch.on("click",this._handleShowEditParams),this._$form.find("[aopc-jeabopinions-clear-button]").on("click",this._handleFormClear),this._$form.find("[aopc-jeabopinions-search-button]").on("click",this._handleFormSubmit),this._$formSelectCode.on("change",this._citations._handleChangeCitationSection),this._$formSelectCodeSection.on("change",this._citations._handleChangeCitationItem),this._$formSelectCodeItem.on("change",this._citations._handleChangeCitationSubItem),this._$formSelectCodeSubItem.on("change",this._citations._handleUpdateParagraphLabel),this._$nextButton.on("click",this._handleNextPageClick),this._$paginationContainer.find("[data-page]").on("click",this._handlePageClick),this._$prevButton.on("click",this._handlePreviousPageClick),this._$sortResults.on("change",this._handleSortChange),this._$formBreadcrumb.on("click",this._handleBreadcrumbClick),this._$formDateRendered.on("keydown",this._handleNumericOnlyKeys),!0},a.prototype._initializeForm=function(){return this._citations._changeCitationSelect("Code"),!0},a.prototype._clearForm=function(){for(var t=this._$form.find("[selectize]"),e=0,n=t.length;e<n;e++)t[e].selectize.clear();return this._citations._handleClearLabels(),this._$results.hide(),!0},a.prototype._handleNumericOnlyKeys=function(t){return 189!==t.keyCode&&190!==t.keyCode&&109!==t.keyCode&&110!==t.keyCode||(t.preventDefault(),!1)},a.prototype._drawResults=function(){var t,e,n,i,o,a,s,r,l,p,u,d,h,c;for(this._$resultsData.children().fadeOut(250).remove(),i=0,s=(u=this._searchResults).length;i<s;
1i++){for((p=u[i]).tagDisplay=Object.keys(p.tags).map(function(t){return p.tags[t].tagName}).join(", "),o=0,r=(d=p.citations).length;o<r;o++)t=d[o],(e=[]).push(t.code.abbreviation),e.push(t.section.displayName),null!=t.item&&e.push(t.item.displayName),null!=t.subitem&&e.push(t.subitem.displayName),t.display=e.join(" - ");for(a=0,l=(h=p.documents).length;a<l;a++)(n=h[a]).display=n.fileName.replace(".pdf","");c=this._itemTemplate(p),this._$resultsData.append(c),$(c).slideDown(250)}return 0<this._searchResults.length?(this._$paginationContainer.show(),this._$noResults.hide(),this._$results.show(),this._$resultsData.show(),this._pagingUtilities.BuildPaging(this._totalCount,this._pageSize,this._currentPage,this._$paginationContainer,this._$nextButton,this._$nextStatus,this._$prevButton,this._$prevStatus)):(this._$results.show(),this._$paginationContainer.hide(),this._$noResults.show(),this._$sortResults.parent().hide()),this._$summary.removeClass("-loading")},a.prototype._scrollToTop=function(){return $([document.documentElement,document.body]).animate({scrollTop:this._$results.position().top},500)},a.prototype._search=function(){var t,e,n,i,o,a,s,r=this._$formSelectCode.val(),l=this._$formDateRendered.val();return null==r?(alert("You must select a code."),this._$formSelectCode.addClass("error"),!1):(this._$summary.addClass("-loading"),this._isDirty=!0,null==this._currentPage&&(this._currentPage=1),s=this._$formOpinionNumber.val(),n=this._$formSelectCodeSection.val(),e=this._$formSelectCodeItem.val(),o=this._$formSelectCodeSubItem.val(),a=this._$formSelectKeywords.val(),t=this._currentPage,i=this._$sortResults.val(),s=JSON.stringify({opinionNumber:s,dateRenderedYear:l,codeId:r,sectionId:n,itemId:e,subItemId:o,topicIds:a,currentPage:t,pageSize:5,sortDirection:i}),$.ajax({contentType:"application/json",data:s,type:"POST",url:"/api/jeabopinionsearch/query"}).done(this._handleGetSuccess).fail(this._handleGetError))},a.prototype._setSortValues=function(){return this._reloadOnSort=!1,this._$sortResults[0].selectize.setValue(this._sort.field+"|"+this._sort.direction)},a.prototype._toggleQueryEditor=function(){return this._isDirty?(this._$dirtyEditor.show(),this._$cleanEditor.hide(),this._$results.children().hide()):(this._$dirtyEditor.hide(),this._$cleanEditor.show())},a.prototype._toggleSearchResults=function(t){return t?(this._$summary.show(),this._$paginationContainer.show(),this._$sortResults.parent().show()):(this._$form.show(),this._$summary.hide(),this._$paginationContainer.hide(),this._$noResults.hide(),this._$sortResults.parent().hide(),this._toggleQueryEditor())},a.prototype._handleGetSuccess=function(t){return this._toggleSearchResults(!0),this._searchResults=t.searchResults,this._totalCount=t.totalCount,this._$totalCount.text(this._totalCount),this._drawResults(),this._scrollToTop(),!0},a.prototype._handleGetError=function(){return this._$formError.show()},a.prototype._handleFormSubmit=function(t){return t.preventDefault(),this._isDirty&&(this._currentPage=1),this._search()},a.prototype._handleFormClear=function(t){return this._clearForm()},a.prototype._handleShowEditParams=function(t){return t.preventDefault(),this._toggleSearchResults(!1)},a.prototype._handleStartOver=function(t){return t.preventDefault(),this._clearForm(),this._currentPage=1,this._$results.children().fadeOut(250).remove(),this._isDirty=!1,this._toggleSearchResults(!1)},a.prototype._handleCancel=function(t){return t.preventDefault(),this._toggleSearchResults(!0),this._$results.children().show()},a.prototype._handleNextPageClick=function(t){if(t.preventDefault(),this._currentPage*this._pageSize<this._totalCount)return this._currentPage+=1,this._search()},a.prototype._handlePreviousPageClick=function(t){if(t.preventDefault(),!(this._currentPage<=1))return--this._currentPage,this._search()},a.prototype._handlePageClick=function(t){if(t.preventDefault(),null!=(t=$(t.currentTarget)).data("page"))return this._currentPage=t.data("page"),this._search()},a.prototype._handleSortChange=function(t){if(this._reloadOnSort)return this._search()},a.prototype._handleBreadcrumbClick=function(t){return this._config.returnUrl?window.location=this._config.returnUrl:window.history.back()},a)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._cleanup=n(this._cleanup,this),this._populate=n(this._populate,this),this._onInputChange=n(this._onInputChange,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.AdditionalQualificationsSegment=(t.prototype._$additionalQualifications=null,t.prototype._initialize=function(){return this._$additionalQualifications=$("[aopc-job-applicant-additional-qualifications]"),this._populate()},t.prototype._attachEvents=function(){return this._$additionalQualifications.on("change",this._onInputChange)},t.prototype._onInputChange=function(t){return this.updateForm(t.target.name,t.target.value)},t.prototype._populate=function(){return this._$additionalQualifications.val(this.formData.otherQualifications)},t.prototype._cleanup=function(){return this._$additionalQualifications.off()},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var e=[].slice;function t(t,e){this.updateFormData=t,this.formData=e,this._createAttachmentNode=n(this._createAttachmentNode,this),this._removeItemHandler=n(this._removeItemHandler,this),this._addJobAttachment=n(this._addJobAttachment,this),this._fileUploaded=n(this._fileUploaded,this),this._error=n(this._error,this),this._uploadProgress=n(this._uploadProgress,this),this._filesAdded=n(this._filesAdded,this),this._addFileLine=n(this._addFileLine,this),this._postInit=n(this._postInit,this),this._populate=n(this._populate,this),this._initialize()}us.pacourts.views.Attachments=(t.prototype._$uploader=null,t.prototype._$uploadFileExtensions=null,t.prototype._$attachmentsContainer=null,t.prototype._$fileContainer=null,t.prototype._$fileSelect=null,t.prototype._$fileList=null,t.prototype._$fileAttachmentList=null,t.prototype._initialize=function(){return this._$uploadFileExtensions="pdf,doc,docx,txt,rtf,jpg,jpeg,png,gif,bmp,odt",this._$attachmentsContainer=$("[aopc-job-applicant-attachments]"),this._$fileContainer=this._$attachmentsContainer.find("[aopc-job-applicant-file-container]"),this._$fileSelect=this._$attachmentsContainer.find("[aopc-job-applicant-file-select]"),this._$fileList=this._$attachmentsContainer.find("[aopc-job-applicant-file-list]"),this._$fileAttachmentList=this._$attachmentsContainer.find("[aopc-job-applicant-file-attachment-list]"),this._$uploader=new plupload.Uploader({runtimes:"html5,flash,silverlight,html4",browse_button:this._$fileSelect[0],container:this._$fileContainer[0],url:"/api/jobattachmentfile/upload",multi_selection:!0,filters:{max_file_size:"4mb",mime_types:[{title:"Custom files",extensions:this._$uploadFileExtensions}]},init:{PostInit:this._postInit,FilesAdded:this._filesAdded,UploadProgress:this._uploadProgress,FileUploaded:this._fileUploaded,Error:this._error}}),this._$uploader.init(),this._populate()},t.prototype._populate=function(){var t,e,n,i,o;if(this._$fileAttachmentList.empty(),0<this.formData.jobAttachments.length){for(o=[],t=0,e=(i=this.formData.jobAttachments).length;t<e;t++)n=i[t],n=this._createAttachmentNode(n.originalFileName,this._removeItemHandler),o.push(this._$fileAttachmentList.a
1ppend(n));return o}},t.prototype._postInit=function(){return document.getElementById("file-list").innerHTML=""},t.prototype._addFileLine=function(t){return document.getElementById("file-list").innerHTML+='<div style="display: none;" id="'+t.id+'">'+t.name+" ("+plupload.formatSize(t.size)+") <strong>0% - Click upload files to continue the upload process</strong></div>"},t.prototype._filesAdded=function(t,e){return plupload.each(e,this._addFileLine),this._$uploader.start()},t.prototype._uploadProgress=function(t,e){return $("#"+e.id).find("strong").html("<span>"+e.percent+"%</span>")},t.prototype._error=function(t,e){return 400===e.status?(e=JSON.parse(e.response),alert("There was an error while uploading your file - "+e.message)):alert("There was an error submitting your application, please try again later")},t.prototype._fileUploaded=function(t,e,n){var n=JSON.parse(n.response);return n.jobApplicantId=this.formData.id,this._addJobAttachment(n),n=this._createAttachmentNode(n.originalFileName,this._removeItemHandler),this._$fileAttachmentList.append(n),$(n).hide().fadeIn(1e3)},t.prototype._addJobAttachment=function(t){t=e.call(this.formData.jobAttachments).concat([t]);return this.updateFormData("jobAttachments",t)},t.prototype._removeItemHandler=function(t){var e=$(t.parentNode).html().split(" - ")[0];return $(t.parentNode).remove(),t=this.formData.jobAttachments.filter(function(t){return t.originalFileName!==e}),this.updateFormData("jobAttachments",t)},t.prototype._createAttachmentNode=function(t,e){var n=document.createElement("li"),t=document.createTextNode(t+" - "),i=document.createElement("a");return $(i).html("remove"),i.className="removeLink",i.setAttribute("tabindex","0"),i.setAttribute("role","link"),n.appendChild(t),n.appendChild(i),i.onmouseup=function(){return e(this)},i.onkeydown=function(t){if(13===t.keyCode||32===t.keyCode)return t.preventDefault(),e(this)},n},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var e,t;function n(t,e,n){this.updateForm=t,this.formData=e,this.stateAbbreviations=n,this._setRadioGroupChecked=i(this._setRadioGroupChecked,this),this._handleRadioClick=i(this._handleRadioClick,this),this._populate=i(this._populate,this),this._addCertification=i(this._addCertification,this),this._renderTemplate=i(this._renderTemplate,this),this._onUpdate=i(this._onUpdate,this),this._cleanup=i(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}t=us.pacourts.views,e=us.pacourts.templates,t.CertificationsSegment=(n.prototype._$templateData={jobCertifications:null,stateAbbreviations:null},n.prototype._$defaultJobCertification={title:"",state:"",expireOn:"",code:""},n.prototype._$container=null,n.prototype._$inputs=null,n.prototype._$radioGroup=null,n.prototype._$addMoreButton=null,n.prototype._$table=null,n.prototype._initialize=function(){var t;return this._$container=$("[aopc-job-applicant-certifications]"),this._$radioGroup=this._$container.find("[job-certification-radio-group]"),this._$table=this._$container.find("[job-certifications-table]"),this._$inputs=this._$container.find("[job-certification-inputs]"),this._$addMoreButton=this._$container.find(".add-another-certification"),0===this.formData.jobCertifications.length&&((t=Object.assign({},this._$defaultJobCertification)).jobApplicantId=this.formData.id,this.formData.jobCertifications.push(t)),this._$templateData.jobCertifications=this.formData.jobCertifications,this._$templateData.stateAbbreviations=this.stateAbbreviations,this._populate()},n.prototype._attachEvents=function(){return this._$inputs.on("change","[certification-input-field]",this._onUpdate),this._$addMoreButton.on("click",this._addCertification),this._$radioGroup.on("change",this._handleRadioClick)},n.prototype._cleanup=function(){return this._$inputs.off(),this._$addMoreButton.off(),this._$radioGroup.off()},n.prototype._onUpdate=function(t){var e=t.target.dataset.index,n=t.target.name;return this.formData.jobCertifications[e][n]=t.target.value},n.prototype._renderTemplate=function(){var t;return this._$inputs.empty(),t=e.jobCertification(this._$templateData),this._$input
1s.append(t),this._$container.find(".datepicker").datepicker()},n.prototype._addCertification=function(t){return t.preventDefault(),(t=Object.assign({},this._$defaultJobCertification)).jobApplicantId=this.formData.id,this.formData.jobCertifications.push(t),this._renderTemplate()},n.prototype._populate=function(){return this._setRadioGroupChecked(this._$radioGroup,this.formData.hasCertifications),!0===this.formData.hasCertifications&&this._$table.show(),this._renderTemplate()},n.prototype._handleRadioClick=function(t){return"true"===t.target.value?(this.updateForm("hasCertifications",!0),this._$table.show()):(this.updateForm("hasCertifications",!1),this._$table.hide())},n.prototype._setRadioGroupChecked=function(t,e){if("boolean"==typeof e)return t.filter("[value='"+e+"']").prop("checked",!0)},n)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._populate=n(this._populate,this),this._onInputChange=n(this._onInputChange,this),this._cleanup=n(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.CurrentAddressSegment=(t.prototype._$container=null,t.prototype._$address1=null,t.prototype._$address2=null,t.prototype._$city=null,t.prototype._$state=null,t.prototype._$zip=null,t.prototype._initialize=function(){return this._$container=$("[aopc-job-applicant-current-address]"),this._$address1=this._$container.find("[aopc-job-applicant-address-one]"),this._$address2=this._$container.find("[aopc-job-applicant-address-two]"),this._$city=this._$container.find("[aopc-job-applicant-city-name]"),this._$state=this._$container.find("[aopc-job-applicant-state-name]"),this._$zip=this._$container.find("[aopc-job-applicant-zip-code]"),this._populate()},t.prototype._attachEvents=function(){return this._$address1.on("input",this._onInputChange),this._$address2.on("input",this._onInputChange),this._$city.on("input",this._onInputChange),this._$state.on("change",this._onInputChange),this._$zip.on("input",this._onInputChange)},t.prototype._cleanup=function(){return this._$address1.off(),this._$address2.off(),this._$city.off(),this._$state.off(),this._$zip.off()},t.prototype._onInputChange=function(t){return this.updateForm(t.target.name,t.target.value)},t.prototype._populate=function(){return this._$address1.val(this.formData.address1),this._$address2.val(this.formData.address2),this._$city.val(this.formData.city),this._$state.val(this.formData.state),this._$zip.val(this.formData.zip)},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var e,t;function n(t,e,n){this.updateForm=t,this.formData=e,this.stateAbbreviations=n,this._toggleCountryField=i(this._toggleCountryField,this),this._populate=i(this._populate,this),this._addEducation=i(this._addEducation,this),this._renderTemplate=i(this._renderTemplate,this),this._onUpdate=i(this._onUpdate,this),this._cleanup=i(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}t=us.pacourts.views,e=us.pacourts.templates,t.EducationSegment=(n.prototype._$templateData={jobEducations:null,stateAbbreviations:null,educationLevels:["High School","Associate Degree","Bachelor's Degree","Master's Degree","Professional Degree","Doctorate"]},n.prototype._$defaultJobEducation={levelOfEducation:"",courseOfStudy:"",school:"",address1:"",address2:"",city:"",state:"",zip:"",country:"",graduatedOn:null,isCurrentlyAttending:!1,jobApplicantId:null},n.prototype._$container=null,n.prototype._$inputs=null,n.prototype._$addMoreButton=null,n.prototype._initialize=function(){var t;return this._$container=$("[aopc-job-applicant-education]"),this._$inputs=this._$container.find("[job-education-inputs]"),this._$addMoreButton=this._$container.find(".add-another-education"),0===this.formData.jobEducations.length&&((t=Object.assign({},this._$defaultJobEducation)).jobApplicantId=this.formData.id,this.formData.jobEducations.push(t)),this._$templateData.jobEducations=this.formData.jobEducations,this._$templateData.stateAbbreviations=this.stateAbbreviations,this._renderTemplate()}
1,n.prototype._attachEvents=function(){return this._$inputs.on("change","[education-input-field]",this._onUpdate),this._$addMoreButton.on("click",this._addEducation)},n.prototype._cleanup=function(){return this._$inputs.off(),this._$addMoreButton.off()},n.prototype._onUpdate=function(t){var e,n;return this.updateForm("hasHigherEducation",!0),e=t.target.dataset.index,n=t.target.name,t=t.target.value,"state"===n&&this._toggleCountryField(t,e),this.formData.jobEducations[e][n]=t},n.prototype._renderTemplate=function(){var t;return this._$inputs.empty(),t=e.jobEducation(this._$templateData),this._$inputs.append(t),$("body").trigger("template-rendered")},n.prototype._addEducation=function(t){return t.preventDefault(),(t=Object.assign({},this._$defaultJobEducation)).jobApplicantId=this.formData.id,this.formData.jobEducations.push(t),this._renderTemplate()},n.prototype._populate=function(){return this._renderTemplate()},n.prototype._toggleCountryField=function(t,e){e=$("#Education"+e+"CountryContainer");return"OC"===t?e.show():e.hide()},n)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._handleRadioClick=n(this._handleRadioClick,this),this._handleEmploymentAgencyChange=n(this._handleEmploymentAgencyChange,this),this._cleanup=n(this._cleanup,this),this._populate=n(this._populate,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.EmploymentAgencySegment=(t.prototype._$container=null,t.prototype._$radioYes=null,t.prototype._$radioNo=null,t.prototype._$optionalInput=null,t.prototype._$optionalInputValue=null,t.prototype._initialize=function(){if(this._$container=$("[aopc-employment-agency-fieldset]"),this._$radioNo=this._$container.find("[aopc-employment-agency-radio-no]"),this._$radioYes=this._$container.find("[aopc-employment-agency-radio-yes]"),this._$optionalInput=this._$container.find("[aopc-employment-agency-optional-input]"),this._$optionalInputValue=this._$container.find("[aopc-employment-agency-optional-input-value]"),null!==this.formData.isHiringAgency)return this._populate()},t.prototype._populate=function(){return this._$optionalInputValue.val(this.formData.hiringAgencyName),!0===this.formData.isHiringAgency?(this._$optionalInput.show(),this._$radioYes.checked=!0):(this._$optionalInput.hide(),this._$radioNo.checked=!0)},t.prototype._attachEvents=function(){return this._$radioNo.on("click",this._handleRadioClick),this._$radioYes.on("click",this._handleRadioClick),this._$optionalInputValue.on("input",this._handleEmploymentAgencyChange)},t.prototype._cleanup=function(){return this._$radioNo.off(),this._$radioYes.off(),this._$optionalInputValue.off()},t.prototype._handleEmploymentAgencyChange=function(t){return this.updateForm("hiringAgencyName",t.target.value)},t.prototype._handleRadioClick=function(t){return!0===t.target.checked&&"true"===t.target.value?(this.updateForm("isHiringAgency",!0),this._$optionalInput.show()):(this.updateForm("isHiringAgency",!1),this._$optionalInput.hide())},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var e,t;function n(t,e,n){this.updateForm=t,this.formData=e,this.stateAbbreviations=n,this._toggleCountryField=i(this._toggleCountryField,this),this._populate=i(this._populate,this),this._getSalaryRequiredFail=i(this._getSalaryRequiredFail,this),this._getSalaryRequiredSuccess=i(this._getSalaryRequiredSuccess,this),this._getSalaryRequirement=i(this._getSalaryRequirement,this),this._renderTemplate=i(this._renderTemplate,this),this._onUpdate=i(this._onUpdate,this),this._addEmployer=i(this._addEmployer,this),this._cleanup=i(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}t=us.pacourts.views,e=us.pacourts.templates,t.EmploymentHistorySegment=(n.prototype._$container=null,n.prototype._$inputs=null,n.prototype._$addMoreButton=null,n.prototype._$templateData={jobEmployers:null,requireSalary:!0,stateAbbreviations:null},n.prototype._$defaultJobEmployer={company:"",address1:"",address2:"",phone:"",city:"",state:"",zip:"",country:"",position:"",startOn:null,endOn:null,reasonForLeaving:"",salary:"",overtimePay:"",bonusPay:"",totalPay:"",supervisor:"",jobApplicantId:null},n.prototype._initialize=function(){var t;return this._$container=$("[aopc-job-applicant-employment-history]"),this._$input
1s=this._$container.find("[job-employer-inputs]"),this._$addMoreButton=this._$container.find(".add-another-employer"),0===this.formData.jobEmployers.length&&((t=Object.assign({},this._$defaultJobEmployer)).jobApplicantId=this.formData.id,this.formData.jobEmployers.push(t)),this._$templateData.jobEmployers=this.formData.jobEmployers,this._$templateData.stateAbbreviations=this.stateAbbreviations,this._getSalaryRequirement()},n.prototype._attachEvents=function(){return this._$inputs.on("change","[employer-field]",this._onUpdate),this._$addMoreButton.on("click",this._addEmployer)},n.prototype._cleanup=function(){return this._$inputs.off(),this._$addMoreButton.off()},n.prototype._addEmployer=function(t){return t.preventDefault(),(t=Object.assign({},this._$defaultJobEmployer)).jobApplicantId=this.formData.id,this.formData.jobEmployers.push(t),4<=this.formData.jobEmployers.length&&this._$addMoreButton.hide(),this._renderTemplate()},n.prototype._onUpdate=function(t){var e,n;return this.updateForm("hasEmploymentHistory",!0),e=t.target.dataset.index,n=t.target.name,t=t.target.value,"state"===n&&this._toggleCountryField(t,e),this.formData.jobEmployers[e][n]=t="false"===(t="true"===t?!0:t)?!1:t},n.prototype._renderTemplate=function(){var t;return this._$inputs.empty(),t=e.jobEmployer(this._$templateData),this._$inputs.append(t),this._$container.find(".datepicker").datepicker(),$("body").trigger("template-rendered")},n.prototype._getSalaryRequirement=function(){return $.get("/api/jobapplicantsalaryrequired/getrequirement").done(this._getSalaryRequiredSuccess).fail(this._getSalaryRequiredFail)},n.prototype._getSalaryRequiredSuccess=function(t){return this._$templateData.requireSalary=t.salaryRequired,this._renderTemplate()},n.prototype._getSalaryRequiredFail=function(t){return console.log("Request for salaryRequired failed: ",t),this._renderTemplate()},n.prototype._populate=function(){return this._renderTemplate()},n.prototype._toggleCountryField=function(t,e){e=$("#Employer"+e+"CountryContainer");return"OC"===t?e.show():e.hide()},n)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._setRadioGroupCheckedForOptionalInputs=n(this._setRadioGroupCheckedForOptionalInputs,this),this._formatDate=n(this._formatDate,this),this._setRadioGroupChecked=n(this._setRadioGroupChecked,this),this._populate=n(this._populate,this),this._handleSalaryInputChange=n(this._handleSalaryInputChange,this),this._handleInputChange=n(this._handleInputChange,this),this._handleAlertBoxRadioGroupChange=n(this._handleAlertBoxRadioGroupChange,this),this._showHideInputGroup=n(this._showHideInputGroup,this),this._handleUnder18RadioGroupChange=n(this._handleUnder18RadioGroupChange,this),this._handleHasWorkedForStateRadioGroupChange=n(this._handleHasWorkedForStateRadioGroupChange,this),this._handleHasWorkedForCourtRadioGroupChange=n(this._handleHasWorkedForCourtRadioGroupChange,this),this._cleanup=n(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.HiringInformation=(t.prototype._$container=null,t.prototype._$salaryDesiredMin=null,t.prototype._$salaryDesiredMax=null,t.prototype._$isHourlyRadioGroup=null,t.prototype._$salaryNegotiableRadioGroup=null,t.prototype._$startOn=null,t.prototype._$hasWorkedForCourtRadioGroup=null,t.prototype._$hasWorkedForCourtInputs=null,t.prototype._$courtAgencyWorkedFor=null,t.prototype._$courtAgencyStartedOn=null,t.prototype._$courtAgencyEndedOn=null,t.prototype._$hasWorkedForStateRadioGroup=null,t.prototype._$hasWorkedForStateInputs=null,t.prototype._$stateAgencyWorkedFor=null,t.prototype._$stateAgencyStartedOn=null,t.prototype._$stateAgencyEndedOn=null,t.prototype._$eligibleInUsRadioGroup=null,t.prototype._$under18RadioGroup=null,t.prototype._$workPermitInputGroup=null,t.prototype._$workPermitRadioGroup=null,t.prototype._$willingToTravelRadioGroup=null,t.prototype._initialize=function(){return this._$container=$("[aopc-job-applicant-hiring-information]"),this._$salaryDesiredMin=this._$container.find("[aopc-job-applicant-salary-desired-min]"),this._$salaryDesiredMax=this._$container.find("[aopc-job-applicant-salary-desired-max]"),this._$isHourlyRadioGroup=this._$container.find("[aopc-job-applicant-isHourly]"),this._$salaryNegotiableRadioGroup=this._$container.find("[aopc-job-applicant-salary-negotiable]"),this._$startOn=this._$container.find("[aopc-job-applicant-startOn]"),this._$hasWorkedForCourtRadioGroup=this._$container.find("[has-worked-for-court-radio-group]"),this._$hasWorkedForCourtInputs=this._$container.find("[has-worked-for-court-inputs]"),this._$courtAgencyWorkedFor=this._$container.find("[court-agency-worked-for]"),this._$courtAgencyStartedOn=this._$container.find("[court-agency-started-on]"),this._$courtAgencyEndedOn=this._$container.find("[court-agency-ended-on]"),this._$hasWorkedForStateRadioGroup=this._$container.find("[has-worked-for-state-radio-group]"),this._$hasWorkedForStateInputs=this._$container.find("[has-worked-for-state-inputs]"),this._$stateAgencyWorkedFor=this._$container.find("[state-agency-worked-for]"),this._$stateAgencyStartedOn=this._$container.find("[state-agency-started-on]"),this._$stateAgencyEndedOn=this._$container.find("[state-agency-ended-on]"),this._$eligibleInUsRadioGroup=this._$container.find("[eligible-in-us-radio-group]"),this._$under18RadioGroup=this._$container.find("[under-18-radio-group]"),this._$workPermitInputGroup=this._$container.find("[work-permit-input-group]"),this._$workPermitRadioGroup=this._$container.find("[work-permit-radio-group]"),this._$willingToTravelRadioGroup=this._$container.find("[willing-to-travel-radio-group]"),this._populate()},t.prototype._attachEvents=function(){return this._$salaryDesiredMin.on("change",this._handleSalaryInputChange),this._$salaryDesiredMax.on("change",this._handleSalaryInputChange),this._$isHourlyRadioGroup.on("change",this._handleInputChange),this._$salaryNegotiableRadioGroup.on("change",this._handleInputChange),this._$startOn.on("change",this._handleInputChange),this._$hasWorkedForCourtRadioGroup.on("change",this._handleHasWorkedForCourtRadioGroupChange),this._$courtAgencyWorkedFor.on("change",this._handleInputChange),this._$courtAgencyStartedOn.on("change",this._handleInputChange),this._$courtAgencyEndedOn.on("change",this._handleInputChange),this._$hasWorkedForStateRadioGroup.on("change",this._handleHasWorkedForStateRadioGroupChange),this._$stateAgencyWorkedFor.on("change",this._handleInputChange),this._$stateAgencyStartedOn.on("change",this._handleInputChange),this._$stateAgencyEndedOn.on("change",this._handleInputChange),this._$eligibleInUsRadioGroup.on("change",this._handleAlertBoxRadioGroupChange),this._$under18RadioGroup.on("change",this._handleUnder18RadioGroupChange),this._$workPermitRadioGroup.on("change",this._handleAlertBoxRadioGroupChange),this._$willingToTravelRadioGroup.on("change",this._handleInputChange)},t.prototype._cleanup=function(){return this._$salaryDesiredMin.off(),this._$salaryDesiredMax.off(),this._$isHourlyRadioGroup.off(),this._$salaryNegotiableRadioGroup.off(),this._$startOn.off(),this._$hasWorkedForCourtRadioGroup.off(),this._$courtAgencyWorkedFor.off(),this._$courtAgencyStartedOn.off(),this._$courtAgencyEndedOn.off(),this._$hasWorkedForStateRadioGroup.off(),this._$stateAgencyWorkedFor.off(),this._$stateAgencyStartedOn.off(),this._$stateAgencyEndedOn.off(),this._$eligibleInUsRadioGroup.off(),this._$under18RadioGroup.off(),this._$workPermitRadioGroup.off(),this._$willingToTravelRadioGroup.off()},t.prototype._handleHasWorkedForCourtRadioGroupChange=function(t){return this._showHideInputGroup(t,this._$hasWorkedForCourtInputs)},t.prototype._handleHasWorkedForStateRadioGroupChange=function(t){return this._showHideInputGroup(t,this._$hasWorkedForStateInputs)},t.prototype._handleUnder18RadioGroupChange=function(t){return this._handleInputChange(t),this._showHideInputGroup(t,this._$workPermitInputGroup)},t.prototype._showHideInputGroup=function(t,e){return"true"===t.target.value?e.show():e.hide()},t.prototype._handleAlertBoxRadioGroupChange=function(t){return"false"===t.target.value&&alert("Unfortunately, you cannot continue with this application"),this._handleInputChange(t)}
1,t.prototype._handleInputChange=function(t){var e=t.target.value;return this.updateForm(t.target.name,e="false"===(e="true"===e?!0:e)?!1:e)},t.prototype._handleSalaryInputChange=function(t){var e=t.target.value.replace(",","").replace("$","");return this.updateForm(t.target.name,parseInt(e))},t.prototype._populate=function(){var t;return this._$salaryDesiredMin.val(this.formData.salaryDesiredMin),this._$salaryDesiredMax.val(this.formData.salaryDesiredMax),this._$isHourlyRadioGroup.removeAttr("checked"),this._setRadioGroupChecked(this._$isHourlyRadioGroup,this.formData.isHourly),this._$salaryNegotiableRadioGroup.removeAttr("checked"),this._setRadioGroupChecked(this._$salaryNegotiableRadioGroup,this.formData.salaryNegotiable),this._$startOn.val(this._formatDate(this.formData.startOn)),this._$courtAgencyWorkedFor.val(this.formData.courtAgencyWorkedFor),this._$courtAgencyStartedOn.val(this._formatDate(this.formData.courtAgencyStartedOn)),this._$courtAgencyEndedOn.val(this._formatDate(this.formData.courtAgencyEndedOn)),t=[this.formData.courtAgencyWorkedFor,this.formData.courtAgencyStartedOn,this.formData.courtAgencyEndedOn],this._setRadioGroupCheckedForOptionalInputs(this._$hasWorkedForCourtRadioGroup,this._$hasWorkedForCourtInputs,t),t=[this.formData.stateAgencyWorkedFor,this.formData.stateAgencyStartedOn,this.formData.stateAgencyEndedOn],this._setRadioGroupCheckedForOptionalInputs(this._$hasWorkedForStateRadioGroup,this._$hasWorkedForStateInputs,t),this._$stateAgencyWorkedFor.val(this.formData.stateAgencyWorkedFor),this._$stateAgencyStartedOn.val(this._formatDate(this.formData.stateAgencyStartedOn)),this._$stateAgencyEndedOn.val(this._formatDate(this.formData.stateAgencyEndedOn)),this._$eligibleInUsRadioGroup.removeAttr("checked"),this._setRadioGroupChecked(this._$eligibleInUsRadioGroup,this.formData.eligibleInUs),this._$under18RadioGroup.removeAttr("checked"),this._setRadioGroupChecked(this._$under18RadioGroup,this.formData.under18),this._$workPermitRadioGroup.removeAttr("checked"),this._setRadioGroupCheckedForOptionalInputs(this._$workPermitRadioGroup,this._$workPermitInputGroup,[this.formData.hasWorkPermit]),this._$willingToTravelRadioGroup.removeAttr("checked"),this._setRadioGroupChecked(this._$willingToTravelRadioGroup,this.formData.willingToTravel)},t.prototype._setRadioGroupChecked=function(t,e){if("boolean"==typeof e)return t.filter("[value='"+e+"']").prop("checked",!0)},t.prototype._formatDate=function(t){return null==t||""===t?t:moment(t).format("M[/]D[/]YYYY")},t.prototype._setRadioGroupCheckedForOptionalInputs=function(t,e,n){n=n.some(function(t){return null!=t&&""!==t});return n&&e.show(),this._setRadioGroupChecked(t,n)},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}function t(t,e,n){this.updateForm=t,this.formData=e,this.handleMergeSuccess=n,this._handleCancelSuccess=i(this._handleCancelSuccess,this),this._cancelCurrentApplication=i(this._cancelCurrentApplication,this),this._handleMergeFail=i(this._handleMergeFail,this),this._handleMergeSuccess=i(this._handleMergeSuccess,this),this._handleDeleteSuccess=i(this._handleDeleteSuccess,this),this._deleteOldApplication=i(this._deleteOldApplication,this),this._mergeApplications=i(this._mergeApplications,this),this._handleMergeSaveClick=i(this._handleMergeSaveClick,this),this._cleanup=i(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.MergeModal=(t.prototype._$modal=null,t.prototype._$modalSaveButton=null,t.prototype._$modalErrors=null,t.prototype._$modalPassword=null,t.prototype._initialize=function(){return this._$modal=$("[aopc-job-applicant-merge-modal]"),this._$modalSaveButton=this._$modal.find("[aopc-job-applicant-modal-save]"),this._$modalErrors=this._$modal.find("[aopc-job-applicant-modal-errors]"),this._$modalPassword=this._$modal.find("[aopc-job-applicant-modal-password]")},t.prototype._attachEvents=function(){return this._$modalSaveButton.on("click",this._handleMergeSaveClick)},t.prototype._cleanup=function(){return this._$modalSaveButton.off()},t.prototype._handleMergeSaveClick=function(){if(this._$modalErrors.empty(),""===this._$modalPassword.val())this._$modalErrors.html("Old Application Password is required");else switch($("input[name=applicationMergeMethod]:checked").val()){case"merge":return this._mergeApplications();case"delete":return this._deleteOldApplication();case"cancel":return this._cancelCurrentApplication();default:return this._$modalErrors.html("Application merge method is required")}},t.prototype._mergeApplications=function(){return this.updateForm("password",this._$modalPassword.val()),$.ajax({contentType:"application/json",data:JSON.stringify(this.formData),type:"PUT",url:"/api/jobapplicantmerge/merge"}).done(this._handleMergeSuccess).fail(this._handleMergeFail)},t.prototype._deleteOldApplication=function(){var t={email:this.formData.email,password:this._$modalPassword.val()};return $.ajax({contentType:"application/json",data:JSON.stringify(t),type:"DELETE",url:"/api/jobapplicantmerge/delete"}).done(this._handleDeleteSuccess).fail(this._handleMergeFail)},t.prototype._handleDeleteSuccess=function(t){return this.updateForm("password",this._$modalPassword.val()),$.ajax({contentType:"application/json",data:JSON.stringify(this.formData),type:"POST",url:"/api/jobapplicantauthentication/create"}).done(this._handleMergeSuccess).fail(this._handleMergeFail)},t.prototype._handleMergeSuccess=function(t){return $.nmTop().close(),this.handleMergeSuccess(t)},t.prototype._handleMergeFail=function(t){if(400!==t.status)return alert(t.responseJSON.exceptionMessage);
1this._$modalErrors.html("Old Application password is invalid")},t.prototype._cancelCurrentApplication=function(){var t={email:this.formData.email,password:this._$modalPassword.val()};return $.ajax({contentType:"application/json",data:JSON.stringify(t),type:"POST",url:"/api/jobapplicantauthentication/authenticatewithemail"}).done(this._handleCancelSuccess)},t.prototype._handleCancelSuccess=function(t){var e=new URLSearchParams(window.location.search);return e.append("id",t.id),e.append("hash",t.hashedEmail),window.location.search=e.toString()},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._showHideInputGroup=n(this._showHideInputGroup,this),this._formatDate=n(this._formatDate,this),this._setRadioGroupChecked=n(this._setRadioGroupChecked,this),this._handleHasMilitaryExperienceRadioChange=n(this._handleHasMilitaryExperienceRadioChange,this),this._onInputChange=n(this._onInputChange,this),this._populate=n(this._populate,this),this._cleanup=n(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.MilitaryExperienceSegment=(t.prototype._$container=null,t.prototype._$inputs=null,t.prototype._$hasMilitaryExperience=null,t.prototype._$militaryExperienceService=null,t.prototype._$militaryExperienceDischarge=null,t.prototype._$militaryExperienceHighestRank=null,t.prototype._$militaryExperienceStartedOn=null,t.prototype._$militaryExperienceEndedOn=null,t.prototype._$militaryExperienceDescription=null,t.prototype._initialize=function(){return this._$container=$("[aopc-job-applicant-military-experience]"),this._$inputs=this._$container.find("[military-experience-inputs]"),this._$hasMilitaryExperience=this._$container.find("[has-military-experience-radio]"),this._$militaryExperienceService=this._$container.find("[military-experience-service]"),this._$militaryExperienceDischarge=this._$container.find("[military-experience-discharge]"),this._$militaryExperienceHighestRank=this._$container.find("[military-experience-highest-rank]"),this._$militaryExperienceStartedOn=this._$container.find("[military-experience-started-on]"),this._$militaryExperienceEndedOn=this._$container.find("[military-experience-ended-on]"),this._$militaryExperienceDescription=this._$container.find("[military-experience-description]"),this._populate()},t.prototype._attachEvents=function(){return this._$hasMilitaryExperience.on("change",this._handleHasMilitaryExperienceRadioChange),this._$militaryExperienceService.on("change",this._onInputChange),this._$militaryExperienceDischarge.on("change",this._onInputChange),this._$militaryExperienceHighestRank.on("change",this._onInputChange),this._$militaryExperienceStartedOn.on("change",this._onInputChange),this._$militaryExperienceEndedOn.on("change",this._onInputChange),this._$militaryExperienceDescription.on("change",this._onInputChange)},t.prototype._cleanup=function(){return this._$hasMilitaryExperience.off(),this._$militaryExperienceService.off(),this._$militaryExperienceDischarge.off(),this._$militaryExperienceHighestRank.off(),this._$militaryExperienceStartedOn.off(),this._$militaryExperienceEndedOn.off(),this._$militaryExperienceDescription.off()},t.prototype._populate=function(){if(null!==this.formData.hasMilitaryExperience){if(!1!==this.formData.hasMilitaryExperience)return this._$militaryExperienceService.val(this.formData.militaryExperienceService),this._$militaryExperienceDischarge.val(this.formData.militaryExperienceDischarge),this._$militaryExperienceHighestRank.val(this.formData.militaryExperienceHighestRank),this._$militaryExperienceStartedOn.val(this._formatDate(this.formData.militaryExperienceStartedOn)),this._$militaryExperienceEndedOn.val(this._formatDate(this.formData.militaryExperienceEndedOn)),this._$militaryExperienceDescription.val(this.formData.militaryExperienceDescription),this._setRadioGroupChecked(this._$hasMilitaryExperience,!0),this._$inputs.show();this._setRadioGroupChecked(this._$hasMilitaryExperience,!1)}},t.prototype._onInputChange=function(t){var e=t.target.value;return this.updateForm(t.target.name,e="false"===(e="true"===e?!0:e)?!1:e)},t.prototype._handleHasMilitaryExperienceRadioChange=function(t){return this._onInputChange(t),this._showHideInputGroup(t,this._$input
1s)},t.prototype._setRadioGroupChecked=function(t,e){if("boolean"==typeof e)return t.filter("[value='"+e+"']").prop("checked",!0)},t.prototype._formatDate=function(t){return null==t||""===t?t:moment(t).format("M[/]D[/]YYYY")},t.prototype._showHideInputGroup=function(t,e){return"true"===t.target.value?e.show():e.hide()},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._setRadioGroupChecked=n(this._setRadioGroupChecked,this),this._onEEOCheckBoxChange=n(this._onEEOCheckBoxChange,this),this._onInputChange=n(this._onInputChange,this),this._generateOptionElement=n(this._generateOptionElement,this),this._onGetEthnicityOptionsSuccess=n(this._onGetEthnicityOptionsSuccess,this),this._onGetEthnicityOptionsFail=n(this._onGetEthnicityOptionsFail,this),this._getEthnicityOptions=n(this._getEthnicityOptions,this),this._populate=n(this._populate,this),this._cleanup=n(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.OptionalEEOSegment=(t.prototype._$container=null,t.prototype._$genderRadioGroup=null,t.prototype._$ethnicity=null,t.prototype._$checkbox=null,t.prototype._initialize=function(){return this._$container=$("[aopc-job-applicant-optional-eeo-data]"),this._$genderRadioGroup=this._$container.find("[gender-radio-group]"),this._$ethnicity=this._$container.find("[ethnicity]"),this._$checkbox=this._$container.find("[info-provided]"),this._getEthnicityOptions()},t.prototype._attachEvents=function(){return this._$genderRadioGroup.on("change",this._onInputChange),this._$ethnicity.on("change",this._onInputChange),this._$checkbox.on("change",this._onEEOCheckBoxChange)},t.prototype._cleanup=function(){return this._$genderRadioGroup.off(),this._$ethnicity.off(),this._$checkbox.off()},t.prototype._populate=function(){if(this._$ethnicity.val(this.formData.optionalInfoEthnicity),this._setRadioGroupChecked(this._$genderRadioGroup,this.formData.optionalInfoGender),!1===this.formData.isOptionalInfoSupplied)return this._$checkbox.prop("checked",!0)},t.prototype._getEthnicityOptions=function(){return $.get("/api/joboptionelement/sorted").done(this._onGetEthnicityOptionsSuccess).fail(this._onGetEthnicityOptionsFail)},t.prototype._onGetEthnicityOptionsFail=function(t){return console.log("Error: ",t)},t.prototype._onGetEthnicityOptionsSuccess=function(t){for(var e,n=t["ethnicity Options"],i=0,o=n.length;i<o;i++)e=n[i],this._$ethnicity.append(this._generateOptionElement(e));return this._populate()},t.prototype._generateOptionElement=function(t){return"<option value="+t.name+" "+(this.formData.optionalInfoEthnicity===t.name?"selected":"")+">"+t.name+"</option>"},t.prototype._onInputChange=function(t){var e=t.target.value;return this.updateForm(t.target.name,e="false"===(e="true"===e?!0:e)?!1:e)},t.prototype._onEEOCheckBoxChange=function(t){var e;return $("#GenderField").toggleClass("required"),$("#EthnicityField").toggleClass("required"),e=t.target.checked,this.updateForm(t.target.name,!e)},t.prototype._setRadioGroupChecked=function(t,e){return t.filter("[value='"+e+"']").prop("checked",!0)},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._onInputChange=n(this._onInputChange,this),this._cleanup=n(this._cleanup,this),this._populate=n(this._populate,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.PersonalInformationSegment=(t.prototype._$container=null,t.prototype._$firstName=null,t.prototype._$middleInitial=null,t.prototype._$lastName=null,t.prototype._$phoneNumber=null,t.prototype._$phoneHomeAlternate=null,t.prototype._$email=null,t.prototype._$emailAlternate=null,t.prototype._initialize=function(){return this._$container=$("[aopc-job-applicant-personal-info]"),this._$firstName=this._$container.find("[aopc-job-applicant-first-name]"),this._$middleInitial=this._$container.find("[aopc-job-applicant-middle-initial]"),this._$lastName=this._$container.find("[aopc-job-applicant-last-name]"),this._$phoneNumber=this._$container.find("[aopc-job-applicant-phone-number]"),this._$phoneHomeAlternate=this._$container.find("[aopc-job-applicant-alternate-phone-number]"),this._$email=this._$container.find("[aopc-job-applicant-email]"),this._$emailAlternate=this._$container.find("[aopc-job-applicant-alternate-email]"),this._populate()},t.prototype._populate=function(){return this._$firstName.val(this.formData.firstName),this._$middleInitial.val(this.formData.middleName),this._$lastName.val(this.formData.lastName),this._$phoneNumber.val(this.formData.phoneHome),this._$phoneHomeAlternate.val(this.formData.phoneHomeAlternate),this._$email.val(this.formData.email),this._$emailAlternate.val(this.formData.emailAlternate)},t.prototype._attachEvents=function(){return this._$firstName.on("input",this._onInputChange),this._$middleInitial.on("input",this._onInputChange),this._$lastName.on("input",this._onInputChange),this._$phoneNumber.on("input",this._onInputChange),this._$phoneHomeAlternate.on("input",this._onInputChange),this._$email.on("input",this._onInputChange),this._$emailAlternate.on("input",this._onInputChange)},t.prototype._cleanup=function(){return this._$firstName.off(),this._$middleInitial.off(),this._$lastName.off(),this._$phoneNumber.off(),this._$phoneHomeAlternate.off(),this._$email.off(),this._$emailAlternate.off()},t.prototype._onInputChange=function(t){return this.updateForm(t.target.name,t.target.value)},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var e,t;function i(t,e){this.formData=t,this.stateAbbreviations=e,this._populate=n(this._populate,this),this._addEducation=n(this._addEducation,this),this._renderTemplate=n(this._renderTemplate,this),this._onUpdate=n(this._onUpdate,this),this._cleanup=n(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}t=us.pacourts.views,e=us.pacourts.templates,t.ReferencesSegment=(i.prototype._$templateData={jobContacts:null,stateAbbreviations:null},i.prototype._$defaultReference={firstName:"",lastName:"",phoneHome:"",relationship:"",address1:"",address2:"",city:"",state:"",zip:"",occupation:"",yearsKnown:"",jobContactTypeId:1},i.prototype._$container=null,i.prototype._$inputs=null,i.prototype._$addMoreButton=null,i.prototype._initialize=function(){var t;return this._$container=$("[aopc-job-applicant-references]"),this._$input
1s=this._$container.find("[job-references-inputs]"),this._$addMoreButton=this._$container.find(".add-another-reference"),0===this.formData.jobContacts.length&&((t=Object.assign({},this._$defaultReference)).jobApplicantId=this.formData.id,this.formData.jobContacts.push(t)),this._$templateData.jobContacts=this.formData.jobContacts,this._$templateData.stateAbbreviations=this.stateAbbreviations,this._renderTemplate()},i.prototype._attachEvents=function(){return this._$inputs.on("change","[reference-input-field]",this._onUpdate),this._$addMoreButton.on("click",this._addEducation)},i.prototype._cleanup=function(){return this._$inputs.off(),this._$addMoreButton.off()},i.prototype._onUpdate=function(t){var e=t.target.dataset.index,n=t.target.name;return this.formData.jobContacts[e][n]=t.target.value},i.prototype._renderTemplate=function(){var t;return this._$inputs.empty(),t=e.jobReference(this._$templateData),this._$inputs.append(t),$("body").trigger("template-rendered")},i.prototype._addEducation=function(t){return t.preventDefault(),(t=Object.assign({},this._$defaultReference)).jobApplicantId=this.formData.id,this.formData.jobContacts.push(t),this._renderTemplate()},i.prototype._populate=function(){return this._renderTemplate()},i)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}function t(t,e){this.updateForm=t,this.formData=e,this._updateReferredByOther=n(this._updateReferredByOther,this),this._updateReferredById=n(this._updateReferredById,this),this._populate=n(this._populate,this),this._generateOptionElement=n(this._generateOptionElement,this),this._onLoadReferralOptionsSuccess=n(this._onLoadReferralOptionsSuccess,this),this._onLoadReferralOptionsFail=n(this._onLoadReferralOptionsFail,this),this._loadReferralOptions=n(this._loadReferralOptions,this),this._cleanup=n(this._cleanup,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.ReferredBySegment=(t.prototype._$container=null,t.prototype._$referralDropdown=null,t.prototype._$referralOptions=null,t.prototype._$referralOtherFieldset=null,t.prototype._$referralOtherInput=null,t.prototype._$referralOtherId=null,t.prototype._$referralSelection=null,t.prototype._initialize=function(){return this._loadReferralOptions(),this._$container=$("[aopc-job-applicant-referral]"),this._$referralDropdown=this._$container.find("[aopc-job-applicant-referral-dropdown]"),this._$referralOtherFieldset=this._$container.find("[aopc-job-applicant-referral-other-fieldset]"),this._$referralOtherInput=this._$container.find("[aopc-job-applicant-referral-other-input]")},t.prototype._attachEvents=function(){return this._$referralDropdown.on("change",this._updateReferredById),this._$referralOtherInput.on("change",this._updateReferredByOther)},t.prototype._cleanup=function(){return this._$referralDropdown.off(),this._$referralOtherInput.off()},t.prototype._loadReferralOptions=function(){return $.get("/api/joboptionelement/sorted").done(this._onLoadReferralOptionsSuccess).fail(this._onLoadReferralOptionsFail)},t.prototype._onLoadReferralOptionsFail=function(t){return console.log("Error: ",t)},t.prototype._onLoadReferralOptionsSuccess=function(t){for(var e,n=t.referrals,i=0,o=n.length;i<o;i++)e=n[i],this._$referralDropdown.append(this._generateOptionElement(e)),"Other"===e.name&&(this._$referralOtherId=e.id);return this._populate()},t.prototype._generateOptionElement=function(t){return"<option value="+t.id.toString()+" "+(this.formData.referredById===t.id?"selected":"")+">"+t.name+"</option>"},t.prototype._populate=function(){if(this._$referralDropdown.val(this.formData.referredById),this.formData.referredById===this._$referralOtherId)return this._$referralOtherInput.val(this.formData.referredByOther),this._$referralOtherFieldset.show()},t.prototype._updateReferredById=function(t){t=Number(t.target.value);return this._$referralOtherId===t?this._$referralOtherFieldset.show():(this.updateForm("referredByOther",null),this._$referralOtherInput.val(""),this._$referralOtherFieldset.hide()),this.updateForm("referredById",t)},t.prototype._updateReferredByOther=function(t){return this.updateForm("referredByOther",t.target.value)},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}function t(t,e,n){this.updateFormData=t,this.formData=e,this.handleCreateSuccess=n,this._handleSaveProgressClick=i(this._handleSaveProgressClick,this),this._handleSaveFail=i(this._handleSaveFail,this),this._onRegisterLastNameChange=i(this._onRegisterLastNameChange,this),this._onRegisterFirstNameChange=i(this._onRegisterFirstNameChange,this),this._checkPassword=i(this._checkPassword,this),this._onPasswordChange=i(this._onPasswordChange,this),this._onRegisterEmailChange=i(this._onRegisterEmailChange,this),this._popModal=i(this._popModal,this),this._handleEmailCheckFail=i(this._handleEmailCheckFail,this),this._handleEmailCheckResponse=i(this._handleEmailCheckResponse,this),this._verifyEmailIsNotInUse=i(this._verifyEmailIsNotInUse,this),this._cleanup=i(this._cleanup,this),this._populate=i(this._populate,this),this._initialize(),this._cleanup(),this._attachEvents()}us.pacourts.views.SaveApplicationSegment=(t.prototype._$registerEmail=null,t.prototype._$password=null,t.prototype._$confirmPassword=null,t.prototype._$registerFirstName=null,t.prototype._$registerLastName=null,t.prototype._$passwordInvalid=null,t.prototype._$saveButton=null,t.prototype._$errors=null,t.prototype._$isEmailInUse=null,t.prototype._$mergeModal=null,t.prototype._initialize=function(){return this._$registerEmail=$("#RegisterUsername"),this._$password=$("#RegisterPassword"),this._$confirmPassword=$("#RegisterConfirm"),this._$registerFirstName=$("#RegisterFirstName"),this._$registerLastName=$("#RegisterLastName"),this._$passwordInvalid=$("#PasswordInvalid"),this._$saveButton=$("#RegisterS
1ave"),this._$errors=$("#register-error"),this._$mergeModal=new us.pacourts.views.MergeModal(this.updateFormData,this.formData,this.handleCreateSuccess)},t.prototype._populate=function(){return this._$registerEmail.val(this.formData.email),this._$registerFirstName.val(this.formData.firstName),this._$registerLastName.val(this.formData.lastName)},t.prototype._attachEvents=function(){return this._$registerEmail.on("input",this._onRegisterEmailChange),this._$password.on("input",this._onPasswordChange),this._$registerFirstName.on("input",this._onRegisterFirstNameChange),this._$registerLastName.on("input",this._onRegisterLastNameChange),this._$saveButton.on("click",this._handleSaveProgressClick),this._$registerEmail.on("blur",this._verifyEmailIsNotInUse)},t.prototype._cleanup=function(){return this._$registerEmail.off(),this._$password.off(),this._$registerFirstName.off(),this._$registerLastName.off(),this._$saveButton.off(),this._$registerEmail.off()},t.prototype._verifyEmailIsNotInUse=function(t){if(""!==t.target.value)return $.get("/api/jobapplicantauthentication/emailexists",{email:t.target.value}).done(this._handleEmailCheckResponse).fail(this._handleEmailCheckFail)},t.prototype._handleEmailCheckResponse=function(t){return!0===t&&(this._$isEmailInUse=!0,this._popModal()),this._$isEmailInUse=!1},t.prototype._handleEmailCheckFail=function(t){return alert(t.message)},t.prototype._popModal=function(){return $("#multiplePartial").nyroModal().nmCall()},t.prototype._onRegisterEmailChange=function(t){return this.updateFormData("email",t.target.value),this.updateFormData("username",t.target.value)},t.prototype._onPasswordChange=function(t){return this.updateFormData("password",t.target.value)},t.prototype._checkPassword=function(){return this._$confirmPassword.val()===this._$password.val()||(this._$errors.append("<ul><li>Password and Confirmation do not match</li></ul>"),!1)},t.prototype._onRegisterFirstNameChange=function(t){return this.updateFormData("firstName",t.target.value)},t.prototype._onRegisterLastNameChange=function(t){return this.updateFormData("lastName",t.target.value)},t.prototype._handleSaveFail=function(t){return 400===t.status?(t=(t=t.responseJSON.message.split("--")).map(function(t){return"<li>"+t+"</li>"}).join(""),this._$errors.append("<ul>"+t+"</ul>")):window.alert("There was an error saving your application, please try again later")},t.prototype._handleSaveProgressClick=function(t){if(t.preventDefault(),this._$errors.empty(),!0===this._$isEmailInUse)this._popModal();else if(this._checkPassword())return $.ajax({contentType:"application/json",data:JSON.stringify(this.formData),type:"POST",url:"/api/jobapplicantauthentication/create"}).done(this.handleCreateSuccess).fail(this._handleSaveFail)},t)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}var e;function n(){this._ensureNullDateFormat=t(this._ensureNullDateFormat,this),this._handleAcknowledgementChange=t(this._handleAcknowledgementChange,this),this._handleDeleteFail=t(this._handleDeleteFail,this),this._handleDeleteSuccess=t(this._handleDeleteSuccess,this),this._handleDeleteClick=t(this._handleDeleteClick,this),this._populateFormFields=t(this._populateFormFields,this),this._handleSubmitSuccess=t(this._handleSubmitSuccess,this),this._handleSubmitFail=t(this._handleSubmitFail,this),this._handleSubmitAlways=t(this._handleSubmitAlways,this),this._handleApplicationLoaded=t(this._handleApplicationLoaded,this),this._handleUpdateFail=t(this._handleUpdateFail,this),this._handleUpdateSuccess=t(this._handleUpdateSuccess,this),this._handleSaveProgressCancelClick=t(this._handleSaveProgressCancelClick,this),this._handleSidebarSaveClick=t(this._handleSidebarSaveClick,this),this._existingFormSubmission=t(this._existingFormSubmission,this),this._newFormSubmission=t(this._newFormSubmission,this),this._handleFormSubmit=t(this._handleFormSubmit,this),this._handleJobSelectionChange=t(this._handleJobSelectionChange,this),this._handleJobsLoaded=t(this._handleJobsLoaded,this),this._handleScroll=t(this._handleScroll,this),this.handleCreateSuccess=t(this.handleCreateSuccess,this),this.updateFormData=t(this.updateFormData,this),this._initializeComponents=t(this._initializeComponents,this),this._showUpdatedOn=t(this._showUpdatedOn,this),this._getApplication=t(this._getApplication,this),this._buildTableRow=t(this._buildTableRow,this),this._loadJobs=t(this._loadJobs,this),this._enableRequired=t(this._enableRequired,this),this._disableRequired=t(this._disableRequired,this),this._initialize(),this._attachEvents()}us.pacourts.views.JobApplicationView=(n.prototype._$formStatusOptions={new:0,inProgress:1},e=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"],n.prototype._$acknowledgmentCheckbox=null,n.prototype._$availableJobs=null,n.prototype._$availableJobsCheckboxes=null,n.prototype._$availablePositionsTable=null,n.prototype._$deleteLink=null,n.prototype._$form=null,n.prototype._$formLastUpdated=null,n.prototype._$formStatus=null,n.prototype._$formValidationContainer=null,n.prototype._$formValidationErrors=null,n.prototype._$formWrapperDiv=null,n.prototype._$jobTitleHeading=null,n.prototype._$loadingSpinner=null,n.prototype._$pageHeader=null,n.prototype._$queryParams=null,n.prototype._$registerCancel=null,n.prototype._$saveProgressButton=null,n.prototype._$saveProgressInputs=null,n.prototype._$selectedJobId=null,n.prototype._$sidebarSaveButton=null,n.prototype._$sidebarSaveDiv=null,n.prototype._$submitButton=null,n.prototype._$submitSuccessMessage=null,n.prototype._$employmentAgencySegment=null,n.prototype._$saveApplicationSegment=null,n.prototype._$personalInformationSegment=null,n.prototype._$currentAddressSegment=null,n.prototype._$referredBySegment=null,n.prototype._$attachments=null,n.prototype._$hiringInformationSegment=null,n.prototype._$jobEmployersSegment=null,n.prototype._$jobEducationSegment=null,n.prototype._$certificationsSegment=null,n.prototype._$referencesSegment=null,n.prototype._$militaryExperienceSegment=null,n.prototype._$additionalQualificationsSegment=null,n.prototype._$optionalEEOSegment=null,n.prototype._$formData={id:null,firstName:null,middleName:null,lastName:null,address1:null,address2:null,city:null,state:null,zip:null,phoneHome:null,phoneHomeAlternate:null,email:null,emailAlternate:null,salaryDesiredMin:null,salaryDesiredMax:null,
1salaryNegotiable:null,comments:null,identityKey:null,identityRequestedOn:null,identityVerifiedOn:null,identityVerified:null,startOn:null,otherQualifications:null,courtAgencyWorkedFor:null,courtAgencyStartedOn:null,courtAgencyEndedOn:null,stateAgencyWorkedFor:null,stateAgencyStartedOn:null,stateAgencyEndedOn:null,hasEmploymentHistory:null,hasHighSchoolDiploma:null,hasHigherEducation:null,hasCertifications:null,hasCertificationsSuspended:null,certificationSuspendedDescription:null,hasMilitaryExperience:null,militaryExperienceDescription:null,militaryExperienceService:null,militaryExperienceDischarge:null,militaryExperienceHighestRank:null,militaryExperienceStartedOn:null,militaryExperienceEndedOn:null,isOptionalInfoSupplied:!0,optionalInfoGender:null,optionalInfoEthnicity:null,referredById:null,referredByOther:null,hasSignedAcknowledgement:null,reviewedBy:null,reviewedOn:null,reviewNotes:null,isActive:null,isHourly:null,willingToTravel:null,isHiringAgency:null,hiringAgencyName:null,username:null,password:null,passwordSalt:null,passwordIterations:null,finalSubmit:!1,createdOn:null,updatedOn:null,eligibleInUs:null,hasWorkPermit:null,under18:null,jobActionHistories:[],jobAttachments:[],jobCertifications:[],jobContacts:[],jobEducations:[],jobEmployers:[],jobListRelateds:[]},n.prototype._initialize=function(){if(this._$queryParams=new URLSearchParams(window.location.search),this._$selectedJobId=Number(this._$queryParams.get("Job")),this._$availablePositionsTable=$("[aopc-job-applicant-available-positions]"),this._$form=$("#job-application-form"),this._$formValidationContainer=$("[job-applicant-error-container]"),this._$formValidationErrors=$("[job-applicant-error-list]"),this._$formWrapperDiv=$("#form-inputs-wrapper"),this._$jobTitleHeading=$("#job-title"),this._$loadingSpinner=$("#submitting"),this._$pageHeader=$("#page-header"),this._$registerCancel=$("#RegisterCancel"),this._$saveProgressButton=$("#RegisterSave"),this._$saveProgressInputs=$("#register-username"),this._$sidebarSaveButton=$("#sidebar-save-button"),this._$sidebarSaveDiv=$("#apply-save"),this._$submitButton=$("#buttons"),this._$deleteLink=this._$sidebarSaveDiv.find("a.delete"),this._$formLastUpdated=this._$sidebarSaveDiv.find("#note"),this._$acknowledgmentCheckbox=this._$form.find("[aopc-job-applicant-acknowledgement-checkbox]"),this._$submitSuccessMessage=this._$form.find("[aopc-job-applicant-submit-success]"),$("#IsHiringAgencyOptionYes").is(":checked")&&this._disableRequired(),this._$queryParams.has("Job")||window.location.pathname.includes("/pages"))return this._$queryParams.has("id")?(this._$formStatus=this._$formStatusOptions.inProgress,this._getApplication(this._$queryParams.get("id"),this._$queryParams.get("hash"))):(this._loadJobs(),this._initializeComponents(),this._$formStatus=this._$formStatusOptions.new);window.location=window.location.origin+"/judicial-administration/human-resources/job-openings/?Error=Select+a+job"},n.prototype._attachEvents=function(){return this._$form.on("submit",this._handleFormSubmit),this._$sidebarSaveButton.on("click",this._handleSidebarSaveClick),this._$registerCancel.on("click",this._handleSaveProgressCancelClick),this._$saveProgressButton.on("click",this._handleSaveProgressClick),$(window).scroll(this._handleScroll),this._$deleteLink.on("click",this._handleDeleteClick),this._$acknowledgmentCheckbox.on("change",this._handleAcknowledgementChange),$("#IsHiringAgencyOptionYes").on("click",this._disableRequired),$("#IsHiringAgencyOptionNo").on("click",this._enableRequired)},n.prototype._disableRequired=function(){return $(".cantoggle").each(function(t,e){return $(e).removeClass("required")}),$("body").on("template-rendered",function(){return $(".cantoggle").each(function(t,e){return $(e).removeClass("required")})})},n.prototype._enableRequired=function(){return $(".cantoggle").each(function(t,e){return $(e).addClass("required")}),$("body").on("template-rendered",function(){return $(".cantoggle").each(function(t,e){return $(e).addClass("required")})})},n.prototype._loadJobs=function(){return $.get("/api/joblist",{searchText:null,status:6}).done(this._handleJobsLoaded).fail(function(){return window.alert("There was an error loading available positions, please try again later.")})},n.prototype._buildTableRow=function(e){var t="";return this._$formData.jobListRelateds.some(function(t){return t.jobListId===e.id})&&(t=" checked"),t='<tr> <td style="width: 5% !important;"> <input type="checkbox" value="'+e.id+'" id="JobIDs_'+e.id+'" onchange=\'\' name="JobIDs"'+t+'> </td> <td style="width: 95% !important;"> <a href="/judicial-administration/human-resources/job-openings/details/'+e.id+'" class="lytebox" lyte-options="slide:false doAnimations:false group:2291">'+e.positionRelated.name+"</a> </td> </tr>",this._$availablePositionsTable.append(t)},n.prototype._getApplication=function(t,e){return $.get("/api/jobapplicantauthentication/authenticatedjobapplicant",{id:t,hash:e}).done(this._handleApplicationLoaded).fail(function(t){return console.log("Error Message: ",t)})},n.prototype._showUpdatedOn=function(){var t=null===this._$formData.updatedOn?this._$formData.createdOn:this._$formData.updatedOn,t=moment(t).format("[Updated] M[/]D[/]YYYY h:mm A");return this._$formLastUpdated.text(t)},n.prototype._initializeComponents=function(){return this._$employmentAgencySegment=new us.pacourts.views.EmploymentAgencySegment(this.updateFormData,this._$formData),this._$saveApplicationSegment=new us.pacourts.views.SaveApplicationSegment(this.updateFormData,this._$formData,this.handleCreateSuccess),this._$personalInformationSegment=new us.pacourts.views.PersonalInformationSegment(this.updateFormData,this._$formData),this._$currentAddressSegment=new us.pacourts.views.CurrentAddressSegment(this.updateFormData,this._$formData),this._$attachments=new us.pacourts.views.Attachments(this.updateFormData,this._$formData),this._$referredBySegment=new us.pacourts.views.ReferredBySegment(this.updateFormData,this._$formData),this._$hiringInformationSegment=new us.pacourts.views.HiringInformation(this.updateFormData,this._$formData),this._$jobEmployersSegment=new us.pacourts.views.EmploymentHistorySegment(this.updateFormData,this._$formData,e),this._$jobEducationSegment=new us.pacourts.views.EducationSegment(this.updateFormData,this._$formData,e),this._$certificationsSegment=new us.pacourts.views.CertificationsSegment(this.updateFormData,this._$formData,e),this._$referencesSegment=new us.pacourts.views.ReferencesSegment(this._$formData,e),this._$militaryExperienceSegment=new us.pacourts.views.MilitaryExperienceSegment(this.updateFormData,this._$formData),this._$additionalQualificationsSegment=new us.pacourts.views.AdditionalQualificationsSegment(this.updateFormData,this._$formData),this._$optionalEEOSegment=new us.pacourts.views.OptionalEEOSegment(this.updateFormData,this._$formData),$(".datepicker").datepicker()},n.prototype.updateFormData=function(t,e){return this._$formData[t]=e},n.prototype.handleCreateSuccess=function(t){return this._$queryParams.append("id",t.id),this._$queryParams.append("hash",t.hashedEmail),window.location.search=this._$queryParams.toString()},n.prototype._handleScroll=function(){return 300<$(window).scrollTop()?this._$sidebarSaveDiv.css("top","5px"):this._$sidebarSaveDiv.css("top","0px")},n.prototype._handleJobsLoaded=function(t){var e,n,i,o,a;for(null==(o=(this._$availableJobs=t).find((a=this,function(t){return t.id===a._$selectedJobId}
1)))&&(o=t[0]),this._$jobTitleHeading.text(o.positionRelated.name),this._$formStatus===this._$formStatusOptions.new&&this._$formData.jobListRelateds.push({jobListId:o.id,jobApplicantId:this._$formData.id}),e=0,i=t.length;e<i;e++)n=t[e],this._buildTableRow(n);return this._$availableJobsCheckboxes=$('input[name="JobIDs"'),this._$availableJobsCheckboxes.on("change",this._handleJobSelectionChange)},n.prototype._handleJobSelectionChange=function(){for(var t,e,n,i,o,a=[],s=this._$availableJobsCheckboxes,r=0,l=s.length;r<l;r++)!1!==(t=s[r]).checked&&a.push(Number(t.value));for(o=this._$formData.jobListRelateds.filter(function(t){return a.includes(t.jobListId)}),n=0,i=a.length;n<i;n++)e=a[n],(0===this._$formData.jobListRelateds.length||this._$formData.jobListRelateds.every(function(t){return e!==t.jobListId}))&&o.push({jobListId:e,jobApplicantId:this._$formData.id});return this._$formData.jobListRelateds=o},n.prototype._handleFormSubmit=function(t){return t.preventDefault(),this._$submitButton.hide(),this._$loadingSpinner.show(),this._$formValidationContainer.toggle(!1),this._$formValidationErrors.empty(),this._$formData.finalSubmit=!0,this._ensureNullDateFormat(this._$formData),null===this._$formData.id?this._newFormSubmission(this._$formData):this._existingFormSubmission(this._$formData)},n.prototype._newFormSubmission=function(t){return $.ajax({contentType:"application/json",data:JSON.stringify(t),type:"POST",url:"/api/jobapplicantauthentication/submit"}).done(this._handleSubmitSuccess).fail(this._handleSubmitFail).always(this._handleSubmitAlways)},n.prototype._existingFormSubmission=function(t){return $.ajax({contentType:"application/json",data:JSON.stringify(t),type:"PUT",url:"/api/jobapplicantauthentication/update"}).done(this._handleSubmitSuccess).fail(this._handleSubmitFail).always(this._handleSubmitAlways)},n.prototype._handleSidebarSaveClick=function(){if(this._$sidebarSaveButton.prop("disabled",!0),this._$formStatus!==this._$formStatusOptions.inProgress)return this._$formValidationContainer.toggle(!1),this._$formValidationErrors.empty(),window.scrollTo(0,300),this._$saveApplicationSegment._populate(),this._$sidebarSaveDiv.toggle(!1),this._$pageHeader.text("Save Application"),this._$saveProgressInputs.toggle(!0),this._$formWrapperDiv.toggle(!1);$.ajax({contentType:"application/json",data:JSON.stringify(this._$formData),type:"PUT",url:"/api/jobapplicantauthentication/update"}).done(this._handleUpdateSuccess).fail(this._handleUpdateFail)},n.prototype._handleSaveProgressCancelClick=function(t){return t.preventDefault(),this._$sidebarSaveDiv.toggle(!0),this._$pageHeader.text("Apply Online"),this._$saveProgressInputs.toggle(!1),this._$formWrapperDiv.toggle(!0)},n.prototype._handleUpdateSuccess=function(t){return Object.assign(this._$formData,t),this._showUpdatedOn(),this._$deleteLink.show(),this._populateFormFields(),window.alert("Your application has been saved successfully"),this._$sidebarSaveButton.prop("disabled",!1)},n.prototype._handleUpdateFail=function(t){return window.alert("There was an error saving your application, please try again later"),this._$sidebarSaveButton.prop("disabled",!1)},n.prototype._handleApplicationLoaded=function(t){return Object.assign(this._$formData,t),!0===this._$formData.hasSignedAcknowledgement&&this._$acknowledgmentCheckbox.prop("checked",!0),this._showUpdatedOn(),this._$deleteLink.show(),this._loadJobs(),this._initializeComponents()},n.prototype._handleSubmitAlways=function(){return this._$loadingSpinner.hide(),this._$submitButton.show()},n.prototype._handleSubmitFail=function(t){return 400===t.status?(this._$formData.finalSubmit=!1,t=(t=t.responseJSON.message.split("--")).map(function(t){return"<li>"+t+"</li>"}).join(""),this._$formValidationErrors.append(""+t),this._$formValidationContainer.toggle(!0),window.scrollTo(0,300)):window.alert("There was an error submitting your application, please try again later")},n.prototype._handleSubmitSuccess=function(t){return this._$sidebarSaveDiv.hide(),this._$formWrapperDiv.hide(),window.scrollTo(0,300),this._$submitSuccessMessage.find("strong").text(""+t.email),this._$submitSuccessMessage.show()},n.prototype._populateFormFields=function(){for(var e,t=this._$availablePositionsTable,n=0,i=t.length;n<i;n++)e=t[n],this._$formData.jobListRelateds.every(function(t){return $(e).val()!==t.jobListId})?e.checked=!1:e.checked=!0;return!0===this._$formData.hasSignedAcknowledgement&&this._$acknowledgmentCheckbox.prop("checked",!0),this._initializeComponents()},n.prototype._handleDeleteClick=function(t){if(t.preventDefault(),!1!==confirm("Delete this application?"))return t="/api/jobapplicantauthentication/delete/?applicantId="+this._$formData.id,$.ajax({type:"DELETE",url:t}).done(this._handleDeleteSuccess).fail(this._handleDeleteFail)},n.prototype._handleDeleteSuccess=function(){return window.location=window.location.origin+"/judicial-administration/human-resources/job-openings"},n.prototype._handleDeleteFail=function(){return alert("There was an error while deleting your application, please try again")},n.prototype._handleAcknowledgementChange=function(t){return this.updateFormData(t.target.name,t.target.checked)},n.prototype._ensureNullDateFormat=function(t){for(var e,n,i=t.jobCertifications,o=[],a=n=0,s=i.length;n<s;a=++n)(e=i[a])&&""===e.expireOn?o.push(e.expireOn=null):o.push(void 0);return o},n)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this.mapClick=t(this.mapClick,this),this.mapHover=t(this.mapHover,this),this._initialize()}us.pacourts.views.JudicialPyramidView=(e.prototype._initialize=function(){return null},e.prototype.mapHover=function(t){return $("#rollover div[id="+t+"]").fadeToggle(200)}
1,e.prototype.mapClick=function(t){var e=$("#onclick div[id="+t+"]"),n=e.siblings(),t=$(".pyramid-section-"+t),i=t.siblings();return e.fadeToggle(400),n.removeAttr("style"),i.hide(),t.show()},e.prototype._attachEvents=function(){return null},e)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}function e(){this._handleTopAnchorClick=t(this._handleTopAnchorClick,this),this._handleDefAnchorClick=t(this._handleDefAnchorClick,this),this._initialize(),this._attachEvents()}us.pacourts.views.LegalGlossaryView=(e.prototype._$defAnchor=null,e.prototype._$topAnchor=null,e.prototype._initialize=function(){return this._$defAnchor=$(".glossary-letter"),this._$topAnchor=$(".backtotop")},e.prototype._attachEvents=function(){return this._$defAnchor.on("click",this._handleDefAnchorClick),this._$topAnchor.on("click",this._handleTopAnchorClick)},e.prototype._handleDefAnchorClick=function(t){return t.preventDefault(),t=$(t.currentTarget).attr("href"),$("html, body").animate({scrollTop:$("[name="+t+"]").offset().top},1e3)},e.prototype._handleTopAnchorClick=function(t){return t.preventDefault(),$("html,body").animate({scrollTop:0},1e3)},e)}.call(this),function(){function t(t,e){return function(){return t.apply(e,arguments)}}var e,n;function i(){this._addError=t(this._addError,this),this.updateTriggerLinks=t(this.updateTriggerLinks,this),this.imageAfterEndCallback=t(this.imageAfterEndCallback,this),this.imageAfterStartCallback=t(this.imageAfterStartCallback,this),this.audioAfterStartCallback=t(this.audioAfterStartCallback,this),this._handleLyteboxLinkClick=t(this._handleLyteboxLinkClick,this),this._handleBackgroundClick=t(this._handleBackgroundClick,this),this._onlyUnique=t(this._onlyUnique,this),this._handleAudioResourceClick=t(this._handleAudioResourceClick,this),this._handleAudioModalCloseClick=t(this._handleAudioModalCloseClick,this),this._handlePagerPreviousClick=t(this._handlePagerPreviousClick,this),this._handlePagerNextClick=t(this._handlePagerNextClick,this),this._handleTypeFilterClick=t(this._handleTypeFilterClick,this),this.videoAfterStartCallback=t(this.videoAfterStartCallback,this),this._refreshPaging=t(this._refreshPaging,this),this._dropExtraAudioItems=t(this._dropExtraAudioItems,this),this._renderMedia=t(this._renderMedia,this),this._setAudioMediaResources=t(this._setAudioMediaResources,this),this._addHistory=t(this._addHistory,this),this._loadData=t(this._loadData,this),this._setLoading=t(this._setLoading,this),this._makeModalScrollable=t(this._makeModalScrollable,this),this._lyteboxUpdateItems=t(this._lyteboxUpdateItems,this),this._lyteboxSetDefaultTagOptionsForDesktop=t(this._lyteboxSetDefaultTagOptionsForDesktop,this),this._lyteboxCustomSetup=t(this._lyteboxCustomSetup,this),this._isDesktopBrowser=t(this._isDesktopBrowser,this),this._createQueryString=t(this._createQueryString,this),this._parseQueryString=t(this._parseQueryString,this),this._handleAudioItemClick=t(this._handleAudioItemClick,this),this._initialize(),this._attachEvents()}n=us.pacourts.views,e=us.pacourts.templates,n.MediaResourcesView=(i.prototype._$mediaResourcesPage=null,i.prototype._$mediaResources=null,i.prototype._isLyteboxReady=!1,i.prototype._$lyteboxCloseBtn=null,i.prototype._$lyteboxImageBox=null,i.prototype._$lyteboxModal=null,i.prototype._audioMediaResources=[],i.prototype._defaultSkip=0,i.prototype._defaultTake=10,i.prototype._isLoading=!1,i.prototype._itemType=null,i.prototype._mediaResourceId=null,i.prototype._skip=0,i.prototype._take=10,i.prototype._initialize=function(){return this._mediaResourcesTemplate=e.mediaResources,this._mediaResourcesAudioTemplate=e.mediaResourcesAudio,this._$mediaResourcesPage=$("[media-resources-page]"),this._$mediaResourcesPagerSection=this._$mediaResourcesPage.find("[media-resources-pager]"),this._$mediaResourcesTypeFilter=this._$mediaResourcesPage.find("[media-resources-type-filter]"),this._$audioResource=this._$mediaResourcesPage.find("[audio-resource]"),this._$audioModalCloseBtn=this._$mediaResourcesPage.find("[audio-modal-close]"),this._$modal=this._$mediaResourcesPage.find("[audio-modal]"),this._$audioModalWrapper=this._$mediaResourcesPage.find("[audio-modal-wrapper]"),this._$loadingSpinner=$("[aopc-media-resource-loading]"),this._$searchResults=this._$mediaResourcesPage.find("[aopc-media-resource-results]"),this._$mediaResources=null,this._$audioMediaResource=null,this._$audioMediaItems=null,$("#lbMain").addClass("scrollable"),this._parseQueryString(),this._loadData()},i.prototype._attachEvents=function(){return this._$mediaResourcesTypeFilter.on("click",this._handleTypeFilterClick),this._$mediaResourcesPagerSection.on("click","[media-resources-pager-next]",this._handlePagerNextClick),this._$mediaResourcesPagerSection.on("click","[media-resources-pager-previous]",this._handlePagerPreviousClick),this._$modal.on("click","[audio-modal-close]",this._handleAudioModalCloseClick),this._$modal.on("click","[audio-modal-overlay]",this._handleAudioModalCloseClick),this._$searchResults.on("click","[audio-resource]",this._handleAudioItemClick),$("body").on("click","a.lytebox",this._handleLyteboxLinkClick),$(document).on("lbReady",this._lyteboxCustomSetup)},i.prototype._handleAudioItemClick=function(t){var e;if(this._$modal.empty(),t=$(t.currentTarget),e=t.attr("audio-resource"),t=this._audioMediaResources.find(function(t){return t.id===parseInt(e)}))return this._$modal.append(this._mediaResourcesAudioTemplate({items:t.items}))},i.prototype._parseQueryString=function(){var t,e,n,i,o={};if(window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,n){return o[e]=n}),t=parseInt(o.Resource),e=parseInt(o.skip),n=parseInt(o.take),i=parseInt(o.itemType),this._mediaResourceId=isNaN(t)?null:t,this._skip=isNaN(e)?this._defaultSkip:e,this._take=isNaN(n)?this._defaultTake:n,this._itemType=isNaN(i)?null:i,0<this._skip)return this._refreshPaging(!0)},i.prototype._createQueryString=function(t){var e;return null!==this._mediaResourceId?"?Resource="+this._mediaResourceId:(e="",null!==this._itemType&&(e+="&itemType="+this._itemType),this._skip!==this._defaultSkip&&(e+="&skip="+this._skip),!t&&this._take===this._defaultTake||(e+="&take="+this._take),""===e?"?":"?"+e.substring(1))},i.prototype._isDesktopBrowser=function(){return window.matchMedia?window.matchMedia("all and (min-device-width: 721px)").matches:720<screen.width},i.prototype._lyteboxCustomSetup=function(){if(myLytebox)return this._lyteboxSetDefaultTagOptionsForDesktop(),this._$lyteboxModal=$("#lbMain"),this._$lyteboxCloseBtn=this._$lyteboxModal.find("#lbClose"),this._$lyteboxImageBox=this._$lyteboxModal.find("#lbImageContainer"),this._$lyteboxModal.find("#lbOuterContainer").on("click",this._handleBackgroun
1dClick),this._$lyteboxModal.addClass("video-modal"),this._$lyteboxModal.addClass("scrollable"),this._isLyteboxReady=!0},i.prototype._lyteboxSetDefaultTagOptionsForDesktop=function(){if(myLytebox&&this._isDesktopBrowser())return myLytebox.__autoResize=!1},i.prototype._lyteboxUpdateItems=function(){if(myLytebox)return myLytebox.updateLyteboxItems()},i.prototype._makeModalScrollable=function(t){return t&&this._isDesktopBrowser()?(this._$lyteboxModal.addClass("scrollable"),this._$lyteboxImageBox.css("max-height","85%"),this._$lyteboxImageBox.scrollTop(0)):(this._$lyteboxModal.removeClass("scrollable"),this._$lyteboxImageBox.css("max-height",""))},i.prototype._setLoading=function(t){return this._$searchResults.attr("hidden",t),this._$loadingSpinner.attr("hidden",!t)},i.prototype._loadData=function(e){return this._$searchResults.empty(),this._setLoading(!0),$.ajax({contentType:"application/json",type:"GET",url:"/api/mediaresources"+this._createQueryString(!0)}).done((i=this,function(t){if(i._setAudioMediaResources(t),i._renderMedia(t),i._refreshPaging(t.length===i._take),e)return i._addHistory()})).fail((n=this,function(t){return n._refreshPaging(!1)})).always((t=this,function(){return t._setLoading(!1)}));var t,n,i},i.prototype._addHistory=function(){return window.history.pushState({skip:this._skip,take:this._take,type:this._itemType},"",this._createQueryString())},i.prototype._setAudioMediaResources=function(t){for(var e,n,i=[],o=0,a=t.length;o<a;o++)0<(e=(n=t[o]).items.filter(function(t){return 2===t.type})).length&&i.push({id:n.id,items:e});return this._audioMediaResources=i},i.prototype._renderMedia=function(t){var e,n,i,o;if(0!==t.length){for(o=[],e=0,n=t.length;e<n;e++)(i=t[e]).items=this._dropExtraAudioItems(i.items),o.push(this._$searchResults.append(this._mediaResourcesTemplate(i)));return o}this._$searchResults.append("<p>No matching Media Resources found</p>")},i.prototype._dropExtraAudioItems=function(t){for(var e,n=[],i=!1,o=0,a=t.length;o<a;o++)2===(e=t[o]).type?i||(n.push(e),i=!0):n.push(e);return n},i.prototype._refreshPaging=function(t){var e;return this._$mediaResourcesPagerSection.empty(),1==(e=this._skip/this._take+1)?this._$mediaResourcesPagerSection.append("<span>&lt; Previous</span>"):this._$mediaResourcesPagerSection.append('<a href="javascript:;" media-resources-pager-previous>&lt; Previous</a>'),this._$mediaResourcesPagerSection.append("<span>Page "+e+"</span>"),t?this._$mediaResourcesPagerSection.append('<a href="javascript:;" media-resources-pager-next>Next &gt;</a>'):this._$mediaResourcesPagerSection.append("<span>Next &gt;</span>")},i.prototype.videoAfterStartCallback=function(){if(this._isLyteboxReady)return this._$lyteboxModal.addClass("video-modal")},i.prototype._handleTypeFilterClick=function(t){t=parseInt($(t.currentTarget).attr("media-resources-type-filter"));return this._skip=this._defaultSkip,this._itemType=isNaN(t)?null:t,this._loadData(!0)},i.prototype._handlePagerNextClick=function(t){return this._skip+=this._take,this._loadData(!0)},i.prototype._handlePagerPreviousClick=function(t){return this._skip>=this._take?this._skip-=this._take:this._skip=0,this._loadData(!0)},i.prototype._handleAudioModalCloseClick=function(t){return this._$modal.empty()},i.prototype._handleAudioResourceClick=function(t){t=$(t.currentTarget).attr("audio-resource");return this._ajaxGetMediaResource(t)},i.prototype._onlyUnique=function(t,e,n){return n.indexOf(t)===e},i.prototype._handleBackgroundClick=function(t){if(t.target.id===t.currentTarget.id)return this._$lyteboxCloseBtn.click()},i.prototype._handleLyteboxLinkClick=function(t){if(myLytebox&&!this._isLyteboxReady&&this._lyteboxCustomSetup(),!this._isLyteboxReady)return console.warn("Lytebox is not ready",{myLytebox:myLytebox}),t.preventDefault()},i.prototype.audioAfterStartCallback=function(){if(this._isLyteboxReady)return this._$lyteboxModal.addClass("audio-modal")},i.prototype.imageAfterStartCallback=function(){if(this._isLyteboxReady)return this._makeModalScrollable(!0)},i.prototype.imageAfterEndCallback=function(){if(this._isLyteboxReady)return this._makeModalScrollable(!0)},i.prototype.updateTriggerLinks=function(){return this._lyteboxUpdateItems()},i.prototype._addError=function(t){return console.error("Error: ",t)},i)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var t;function e(t,e,n){this._handleEditOpinionSubmit=i(this._handleEditOpinionSubmit,this),this._handleCancelOpinion=i(this._handleCancelOpinion,this),this._handleDeleteOpinion=i(this._handleDeleteOpinion,this),this._gatherFormInputs=i(this._gatherFormInputs,this),this._requestSuccess=i(this._requestSuccess,this),this._deleteSuccess=i(this._deleteSuccess,this),this._uploadSuccess=i(this._uploadSuccess,this),this._addError=i(this._addError,this),this._ajaxUpdateOpinion=i(this._ajaxUpdateOpinion,this),this._ajaxDeleteOpinion=i(this._ajaxDeleteOpinion,this),this._attachEvents=i(this._attachEvents,this),this._initialize=i(this._initialize,this),this._initialize(t,e,n)}t=us.pacourts.views,us.pacourts.utilities,t.CommonwealthOpinionsAuthEditView=(e.prototype._COMMONWEALTH_ENUM_VALUE=0,e.prototype._courtType=null,e.prototype._opinionsView=null,e.prototype._$opinionsPage=null,e.prototype._$editForm=null,e.prototype._$deleteButton=null,e.prototype._$searchResults=null,e.prototype._$editAuthor=null,e.prototype._$editCaption=null,e.prototype._$editUserId=null,e.prototype._$editStatus=null,e.prototype._$editPostingType=null,e.prototype._$editUploadDate=null,e.prototype._$editFile=null,e.prototype._initialize=function(t,e,n){return this._courtType=e,this._opinionsView=n,this._$opinionsPage=$("[aopc-opinions-page]"),this._$courtTypeSelect=this._$opinionsPage.find("[aopc-opinions-court-type-select]"),this._$searchResults=this._$opinionsPage.find("[aopc-opinions-results]"),this._attachEvents(),this._$courtTypeSelect.val(e.toLowerCase())},e.prototype._attachEvents=function(){return this._$opinionsPage.on("click","[aopc-opinions-delete-button]",this._handleDeleteOpinion),this._$opinionsPage.on("click","[aopc-opinions-cancel-button]",this._handleCancelOpinion),this._$opinionsPage.on("click","[aopc-opinions-edit-submit]",this._handleEditOpinionSubmit)},e.prototype._ajaxDeleteOpinion=function(t,e){t="/api/opinion/delete?id="+t+"&courtType="+this._courtType;return $.ajax({url:t,type:"DELETE",contentType:"application/json"}).done(this._deleteSuccess).fail(this._addError)},e.prototype._ajaxUpdateOpinion=function(t,e){var n=new FormData,i="/api/opinion/update?id="+t+"&courtType="+this._courtType,o=0===this._$editFile[0].files.length?null:this._$editFile[0].files[0];return n.append("file",o),o={Author:this._$editAuthor.val(),Caption:this._$editCaption.val(),CourtType:this._COMMONWEALTH_ENUM_VALUE,DispositionDate:this._$editUploadDate.val(),Id:t,UserIdentifier:this._$editUserId.val(),UploadDate:this._$editUploadDate.val(),Postings:[{AuthorId:this._$editAuthor.val(),FileName:0===this._$editFile[0].files.length?null:o.name,FileVersion:1,Id:0,OpinionId:t,PostingTypeId:this._$editPostingType.val(),ProcessedDate:moment(),PublicationType:{Description:this._$editStatus.val()},RenderedDate:this._$editUploadDate.val(),SortOrder:1}]},n.append("JSON",JSON.stringify(o)),$.ajax({cache:!1,contentType:!1,data:n,enctype:"multipart/form-data",error:this._addError,processData:!1,timeout:3e5,type:"PUT",url:i}).done(this._uploadSuccess).fail(this._addError)},e.prototype._addError=function(t,e,n){t=t.responseJSON.exceptionMessage;return window.alert(t)},e.prototype._uploadSuccess=function(t){return this._requestSuccess("Opinion updated successfully!")},e.prototype._deleteSuccess=function(t){return this._requestSuccess("Opinion deleted successfully!")},e.prototype._requestSuccess=function(t){return this._opinionsView.refreshResults(),window.alert(t)},e.prototype._gatherFormInputs=function(t){t=this._$opinionsPage.find('[edit-opinion-form="'+t+'"]');return this._$editAuthor=t.find("[aopc-opinions-edit-author]"),this._$editCaption=t.find("[aopc-opinions-edit-caption]"),this._$editFile=t.find("[aopc-opinions-edit-file]"),this._$editPostingType=t.find("[aopc-opinions-edit-typeselect]"),this._$editStatus=t.find("[aopc-opinions-edit-status]"),this._$editUploadDate=t.find("[aopc-opinions-edit-datepicker]"),this._$editUserId=t.find("[aopc-opinions-edit-userid]")},e.prototype._handleDeleteOpinion=function(t){if(window.confirm("Are you sure you want to delete this opinion?"))return t=$(t.currentTarget).attr("aopc-opinions-delete-button"),this._ajaxDeleteOpinion(t)},e.prototype._handleCancelOpinion=function(t){t=$(t.currentTarget).attr("aopc-opinions-cancel-button");return this._$selectedOpinion=this._$searchResults.find('[search-result="'+t+'"]'),this._$selectedOpinion.removeClass("-is-editing").find('[edit-opinion-form="'+t+'"]').remove()},e.prototype._handleEditOpinionSubmit=function(t){return t.preventDefault(),t=$(t.currentTarget).attr("aopc-opinions-edit-submit"),this._gatherFormInputs(t),this._ajaxUpdateOpinion(t,this._courtType)},e)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var i,o;function t(t,e){this._handleUploadFormSubmit=n(this._handleUploadFormSubmit,this),this._handleCancelButtonClick=n(this._handleCancelButtonClick,this),this._handleAccordionToggle=n(this._handleAccordionToggle,this),this._val
1idateFields=n(this._validateFields,this),this._submitSuccess=n(this._submitSuccess,this),this._setupDatePickers=n(this._setupDatePickers,this),this._initializeDatePicker=n(this._initializeDatePicker,this),this._ajaxUploadOpinions=n(this._ajaxUploadOpinions,this),this._attachEvents=n(this._attachEvents,this),this._initialize=n(this._initialize,this),this._initialize(t,e)}o=us.pacourts.views,i=us.pacourts.utilities,o.CommonwealthOpinionsAuthUploadView=(t.prototype._activeFilterCount=0,t.prototype._dateFormat="MM/DD/YYYY",t.prototype._errorHandler=null,t.prototype._errorMessages=null,t.prototype._courtType=null,t.prototype._currentOpinions=null,t.prototype._defaultOpinions=null,t.prototype._$opinionsPage=null,t.prototype._$accordionToggle=null,t.prototype._$accordionWrapper=null,t.prototype._$cancelButton=null,t.prototype._$uploadErrors=null,t.prototype._$uploadForm=null,t.prototype._$uploadSection=null,t.prototype._$uploadValidation=null,t.prototype._$uploadAuthor=null,t.prototype._$uploadCaption=null,t.prototype._$uploadDatepicker=null,t.prototype._$uploadFile=null,t.prototype._$uploadSelect=null,t.prototype._$uploadStatus=null,t.prototype._$uploadSubmit=null,t.prototype._$uploadUserId=null,t.prototype._initialize=function(t,e){return this._courtType=e,this._errorHandler=new i.ErrorHandlerUtil,this._errorMessages=new o.OpinionsErrorMessages,this._$opinionsPage=$("[aopc-opinions-page]"),this._$accordionToggle=this._$opinionsPage.find("[aopc-opinions-upload-accordion-toggle]"),this._$accordionWrapper=this._$opinionsPage.find("[aopc-opinions-upload-accordion-wrapper]"),this._$cancelButton=this._$opinionsPage.find("[aopc-opinions-upload-cancel]"),this._$uploadErrors=this._$opinionsPage.find("[aopc-opinions-upload-errors]"),this._$uploadForm=this._$opinionsPage.find("[aopc-opinions-upload-form]"),this._$uploadSection=this._$opinionsPage.find("[aopc-opinions-upload-section]"),this._$uploadSubmit=this._$opinionsPage.find("[aopc-opinions-upload-submit]"),this._$uploadValidation=this._$opinionsPage.find("[aopc-opinions-upload-validation]"),this._$uploadAuthor=this._$opinionsPage.find("[aopc-opinions-upload-author]"),this._$uploadCaption=this._$opinionsPage.find("[aopc-opinions-upload-caption]"),this._$uploadDatepicker=this._$opinionsPage.find("[aopc-opinions-upload-datepicker]"),this._$uploadFile=this._$opinionsPage.find("[aopc-opinions-upload-file]"),this._$uploadTypeSelect=this._$opinionsPage.find("[aopc-opinions-upload-typeselect]"),this._$uploadStatus=this._$opinionsPage.find("[aopc-opinions-upload-status]"),this._$uploadUserId=this._$opinionsPage.find("[aopc-opinions-upload-userid]"),this._attachEvents(),this._setupDatePickers()},t.prototype._attachEvents=function(){return this._$accordionToggle.on("click",this._handleAccordionToggle),this._$cancelButton.on("click",this._handleCancelButtonClick),this._$uploadForm.on("submit",this._handleUploadFormSubmit)},t.prototype._ajaxUploadOpinions=function(){var t=new FormData,e=this._$uploadFile[0].files[0];return t.append("file",e),e={Author:this._$uploadAuthor.val(),Caption:this._$uploadCaption.val(),CourtType:0,DispositionDate:this._$uploadDatepicker.val(),UserIdentifier:this._$uploadUserId.val(),UploadDate:this._$uploadDatepicker.val(),Postings:[{AuthorId:this._$uploadAuthor.val(),FileName:e.name,FileVersion:1,PostingTypeId:this._$uploadTypeSelect.val(),ProcessedDate:moment(),PublicationType:{Description:this._$uploadStatus.val()},RenderedDate:this._$uploadDatepicker.val(),SortOrder:1}]},t.append("JSON",JSON.stringify(e)),$.ajax({cache:!1,contentType:!1,data:t,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:1e4,type:"POST",url:"/api/opinion/create"}).fail(this._errorHandler.handleAjaxError)},t.prototype._initializeDatePicker=function(t){return $(t).datepicker({showOn:"button",buttonImage:"/Themes/AOPC/assets/images/icons/calendar.png",buttonImageOnly:!0})},t.prototype._setupDatePickers=function(){return this._initializeDatePicker("[aopc-opinions-upload-datepicker]")},t.prototype._submitSuccess=function(){return this._$uploadForm[0].reset(),window.alert("The posting has been submitted successfully.")},t.prototype._validateFields=function(){return{authorIsValid:!!this._$uploadAuthor.val(),captionIsValid:!!this._$uploadCaption.val(),dateIsValid:!!this._$uploadDatepicker.val(),statusIsValid:!!this._$uploadStatus.val(),typeIsValid:!!this._$uploadTypeSelect.val(),postingFileIsValid:!!this._$uploadFile[0].files[0]}},t.prototype._handleAccordionToggle=function(){return this._$uploadSection.toggleClass("closed"),this._$accordionWrapper.fadeToggle("slow","linear")},t.prototype._handleCancelButtonClick=function(){return this._$uploadForm.trigger("reset"),this._handleAccordionToggle(
1)},t.prototype._handleUploadFormSubmit=function(t){var e,n,i,o;if(t.preventDefault(),this._$uploadErrors.empty(),o=this._validateFields(),Object.keys(o).map(function(t){return o[t]}).some(function(t){return!t})){for(e in this._$uploadValidation.show(),i=[],o)n=o[e],i.push(n?void 0:this._$uploadErrors.append('<li class="error">'+this._errorMessages.getMessage(e)+"</li>"));return i}return this._ajaxUploadOpinions()},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var t;function e(t,e,n){this._handleEditOpinionSubmit=i(this._handleEditOpinionSubmit,this),this._handleCancelOpinion=i(this._handleCancelOpinion,this),this._handleDeleteOpinion=i(this._handleDeleteOpinion,this),this._hasFile=i(this._hasFile,this),this._gatherFormInputs=i(this._gatherFormInputs,this),this._requestSuccess=i(this._requestSuccess,this),this._deleteSuccess=i(this._deleteSuccess,this),this._uploadSuccess=i(this._uploadSuccess,this),this._addError=i(this._addError,this),this._ajaxUpdateOpinion=i(this._ajaxUpdateOpinion,this),this._ajaxDeleteOpinion=i(this._ajaxDeleteOpinion,this),this._attachEvents=i(this._attachEvents,this),this._initialize=i(this._initialize,this),this._initialize(t,e,n)}t=us.pacourts.views,us.pacourts.utilities,t.DboardOpinionsAuthEditView=(e.prototype._courtType=null,e.prototype._opinionsView=null,e.prototype._$opinionsPage=null,e.prototype._$editForm=null,e.prototype._$deleteButton=null,e.prototype._$searchResults=null,e.prototype._$editBoardDocketNumber=null,e.prototype._$editCourtDocketNumber=null,e.prototype._$editDatepicker=null,e.prototype._$editFile=null,e.prototype._$editKeywords=null,e.prototype._initialize=function(t,e,n){return this._courtType=e,this._opinionsView=n,this._$opinionsPage=$("[aopc-opinions-page]"),this._$courtTypeSelect=this._$opinionsPage.find("[aopc-opinions-court-type-select]"),this._$searchResults=this._$opinionsPage.find("[aopc-opinions-results]"),this._attachEvents(),this._$courtTypeSelect.val(e.toLowerCase())},e.prototype._attachEvents=function(){return this._$opinionsPage.on("click","[aopc-opinions-delete-button]",this._handleDeleteOpinion),this._$opinionsPage.on("click","[aopc-opinions-cancel-button]",this._handleCancelOpinion),this._$opinionsPage.on("click","[aopc-opinions-edit-submit]",this._handleEditOpinionSubmit)},e.prototype._ajaxDeleteOpinion=function(t,e){t="/api/opinion/delete?id="+t+"&courtType="+this._courtType;return $.ajax({url:t,type:"DELETE",contentType:"application/json"}).done(this._deleteSuccess).fail(this._addError)},e.prototype._ajaxUpdateOpinion=function(t,e){var n=new FormData,i="/api/opinion/update?id="+t+"&courtType="+this._courtType,o=this._hasFile()?this._$editFile[0].files[0]:null,t={BoardDocketNumber:this._$editBoardDocketNumber.val(),CourtDocketNumber:this._$editCourtDocketNumber.val(),CourtType:1,DispositionDate:this._$editDatepicker.val(),Id:t,Keywords:$.trim(this._$editKeywords.val()),UploadDate:moment(),Postings:[{FileName:this._hasFile()?o.name:null,FileVersion:1,OpinionId:t}]};return n.append("JSON",JSON.stringify(t)),null!==o&&n.append("file",o),$.ajax({cache:!1,contentType:!1,data:n,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:3e5,type:"PUT",url:i}).done(this._uploadSuccess).fail(this._addError)},e.prototype._addError=function(t,e,n){t=t.responseJSON.exceptionMessage;return window.alert(t)},e.prototype._uploadSuccess=function(t){return this._requestSuccess("Opinion updated successfully!")},e.prototype._deleteSuccess=function(t){return this._requestSuccess("Opinion deleted successfully!")},e.prototype._requestSuccess=function(t){return this._opinionsView.refreshResults(),window.alert(t)},e.prototype._gatherFormInputs=function(t){t=this._$opinionsPage.find('[edit-opinion-form="'+t+'"]');return this._$editBoardDocketNumber=t.find("[aopc-opinions-edit-boardDocketNumber]"),this._$editCourtDocketNumber=t.find("[aopc-opinions-edit-courtDocketNumber]"),this._$editDatepicker=t.find("[aopc-opinions-edit-datepicker]"),this._$editFile=t.find("[aopc-opinions-edit-file]"),this._$editKeywords=t.find("[aopc-opinions-edit-keywords]")},e.prototype._hasFile=function(){return null===this._$editFile&&this._gatherFormInputs(),0<this._$editFile[0].files.length},e.prototype._handleDeleteOpinion=function(t){if(window.confirm("Are you sure you want to delete this opinion?"))return t=$(t.currentTarget).attr("aopc-opinions-delete-button"),this._ajaxDeleteOpinion(t)},e.prototype._handleCancelOpinion=function(t){t=$(t.currentTarget).attr("aopc-opinions-cancel-button");return this._$selectedOpinion=this._$searchResults.find('[search-result="'+t+'"]'),this._$selectedOpinion.removeClass("-is-editing").find("[edit-opinion-form]").remove()},e.prototype._handleEditOpinionSubmit=function(t){return t.preventDefault(),t=$(t.currentTarget).attr("aopc-opinions-edit-submit"),this._gatherFormInputs(t),this._ajaxUpdateOpinion(t,this._courtType)},e)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var i,o;function t(t,e){this._handleUploadFormSubmit=n(this._handleUploadFormSubmit,this),this._handleCancelButtonClick=n(this._handleCancelButtonClick,this),this._handleAccordionToggle=n(this._handleAccordionToggle,this),this._val
1idateFields=n(this._validateFields,this),this._submitSuccess=n(this._submitSuccess,this),this._setupDatePickers=n(this._setupDatePickers,this),this._initializeDatePicker=n(this._initializeDatePicker,this),this._ajaxUploadOpinions=n(this._ajaxUploadOpinions,this),this._attachEvents=n(this._attachEvents,this),this._initialize=n(this._initialize,this),this._initialize(t,e)}o=us.pacourts.views,i=us.pacourts.utilities,o.DboardOpinionsAuthUploadView=(t.prototype._activeFilterCount=0,t.prototype._dateFormat="MM/DD/YYYY",t.prototype._errorHandler=null,t.prototype._errorMessages=null,t.prototype._courtType=null,t.prototype._currentOpinions=null,t.prototype._defaultOpinions=null,t.prototype._$opinionsPage=null,t.prototype._initialize=function(t,e){return this._courtType=e,this._errorHandler=new i.ErrorHandlerUtil,this._errorMessages=new o.OpinionsErrorMessages,this._$opinionsPage=$("[aopc-opinions-page]"),this._$accordionToggle=this._$opinionsPage.find("[aopc-opinions-upload-accordion-toggle]"),this._$accordionWrapper=this._$opinionsPage.find("[aopc-opinions-upload-accordion-wrapper]"),this._$cancelButton=this._$opinionsPage.find("[aopc-opinions-upload-cancel]"),this._$uploadAuthor=this._$opinionsPage.find("[aopc-opinions-upload-author]"),this._$uploadErrors=this._$opinionsPage.find("[aopc-opinions-upload-errors]"),this._$uploadForm=this._$opinionsPage.find("[aopc-opinions-upload-form]"),this._$uploadSection=this._$opinionsPage.find("[aopc-opinions-upload-section]"),this._$uploadSubmit=this._$opinionsPage.find("[aopc-opinions-upload-submit]"),this._$uploadValidation=this._$opinionsPage.find("[aopc-opinions-upload-validation]"),this._$uploadBoardDocketNumber=this._$opinionsPage.find("[aopc-opinions-upload-board-docket-number]"),this._$uploadCourtDocketNumber=this._$opinionsPage.find("[aopc-opinions-upload-court-docket-number]"),this._$uploadDatepicker=this._$opinionsPage.find("[aopc-opinions-upload-datepicker]"),this._$uploadKeywords=this._$opinionsPage.find("[aopc-opinions-upload-keywords]"),this._$uploadFile=this._$opinionsPage.find("[aopc-opinions-upload-file]"),this._attachEvents(),this._setupDatePickers()},t.prototype._attachEvents=function(){return this._$accordionToggle.on("click",this._handleAccordionToggle),this._$cancelButton.on("click",this._handleCancelButtonClick),this._$uploadForm.on("submit",this._handleUploadFormSubmit)},t.prototype._ajaxUploadOpinions=function(){var t=new FormData,e=this._$uploadFile[0].files[0];return t.append("file",e),e={BoardDocketNumber:this._$uploadBoardDocketNumber.val(),CourtDocketNumber:this._$uploadCourtDocketNumber.val(),CourtType:1,DispositionDate:this._$uploadDatepicker.val(),Keywords:this._$uploadKeywords.val(),UploadDate:moment(),Postings:[{FileName:e.name,FileVersion:1}]},t.append("JSON",JSON.stringify(e)),$.ajax({cache:!1,contentType:!1,data:t,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:1e4,type:"POST",url:"/api/opinion/create"}).fail(this._errorHandler.handleAjaxError)},t.prototype._initializeDatePicker=function(t){return $(t).datepicker({showOn:"button",buttonImage:"/Themes/AOPC/assets/images/icons/calendar.png",buttonImageOnly:!0})},t.prototype._setupDatePickers=function(){return this._initializeDatePicker("[aopc-opinions-upload-datepicker]")},t.prototype._submitSuccess=function(){return this._$uploadForm[0].reset(),window.alert("The posting has been submitted successfully.")},t.prototype._validateFields=function(){return{boardDocketNumberIsValid:!!this._$uploadBoardDocketNumber.val(),courtDocketNumberIsValid:!!this._$uploadCourtDocketNumber.val(),dateIsValid:!!this._$uploadDatepicker.val(),keywordsIsValid:!!this._$uploadKeywords.val(),fileIsValid:!!this._$uploadFile.val()}},t.prototype._handleAccordionToggle=function(){return this._$uploadSection.toggleClass("closed"),this._$accordionWrapper.fadeToggle("slow","linear")},t.prototype._handleCancelButtonClick=function(){return this._$uploadForm.trigger("reset"),this._handleAccordionToggle()},t.prototype._handleUploadFormSubmit=function(t){var e,n,i,o;
1if(t.preventDefault(),this._$uploadErrors.empty(),o=this._validateFields(),Object.keys(o).map(function(t){return o[t]}).some(function(t){return!t})){for(e in this._$uploadValidation.show(),i=[],o)n=o[e],i.push(n?void 0:this._$uploadErrors.append('<li class="error">'+this._errorMessages.getMessage(e)+"</li>"));return i}return this._ajaxUploadOpinions()},t)}.call(this),function(){function t(){}us.pacourts.views.OpinionsErrorMessages=(t.prototype.getMessage=function(t){switch(t){case"authorIsValid":return"Author is a required field";case"authorIsValid1":return"Author is required for posting #1";case"authorIsValid2":return"Author is required for posting #2";case"authorIsValid3":return"Author is required for posting #3";case"authorIsValid4":return"Author is required for posting #4";case"authorIsValid5":return"Author is required for posting #5";case"authorIsValid6":return"Author is required for posting #6";case"authorIsValid7":return"Author is required for posting #7";case"authorIsValid8":return"Author is required for posting #8";case"boardDocketNumberIsValid":return"Board Docket Number is a required field";case"captionIsValid":return"Case Caption is a required field";case"courtDocketNumberIsValid":return"Court Docket Number is a required field";case"dateIsValid":return"Opinion Date is a required field";case"dateIsValid2":return"Opinion Date is required for posting #2";case"dateIsValid3":return"Opinion Date is required for posting #3";case"dateIsValid4":return"Opinion Date is required for posting #4";case"dateIsValid5":return"Opinion Date is required for posting #5";case"dateRenderedIsValid1":return"Date Rendered is required for posting #1";case"dateRenderedIsValid2":return"Date Rendered is required for posting #2";case"dateRenderedIsValid3":return"Date Rendered is required for posting #3";case"dateRenderedIsValid4":return"Date Rendered is required for posting #4";case"dateRenderedIsValid5":return"Date Rendered is required for posting #5";case"dateRenderedIsValid6":return"Date Rendered is required for posting #6";case"dateRenderedIsValid7":return"Date Rendered is required for posting #7";case"dateRenderedIsValid8":return"Date Rendered is required for posting #8";case"dispositionDateIsValid":return"Disposition Date is a required field";case"fileIsValid":return"A file is required for posting";case"fileIsValid1":return"A file is required for posting #1";case"fileIsValid2":return"A file is required for posting #2";case"fileIsValid3":return"A file is required for posting #3";case"fileIsValid4":return"A file is required for posting #4";case"fileIsValid5":return"A file is required for posting #5";case"keywordsIsValid":return"Keywords is a required field";case"postedDateIsValid1":return'New Posted Date is required for posting #1 when "Change Date" is selected';case"postedDateIsValid2":return'New Posted Date is required for posting #2 when "Change Date" is selected';case"postedDateIsValid3":return'New Posted Date is required for posting #3 when "Change Date" is selected';case"postedDateIsValid4":return'New Posted Date is required for posting #4 when "Change Date" is selected';case"postedDateIsValid5":return'New Posted Date is required for posting #5 when "Change Date" is selected';case"postedDateIsValid6":return'New Posted Date is required for posting #6 when "Change Date" is selected';case"postedDateIsValid7":return'New Posted Date is required for posting #7 when "Change Date" is selected';case"postedDateIsValid8":return'New Posted Date is required for posting #8 when "Change Date" is selected';case"postingAuthorIsValid1":return"Author is required for posting #1";case"postingAuthorIsValid2":return"Author is required for posting #2";case"postingAuthorIsValid3":return"Author is required for posting #3";case"postingAuthorIsValid4":return"Author is required for posting #4";case"postingAuthorIsValid5":return"Author is required for posting #5";case"postingAuthorIsValid6":return"Author is required for posting #6";case"postingAuthorIsValid7":return"Author is required for posting #7";case"postingAuthorIsValid8":return"Author is required for posting #8";case"postingDateIsValid1":return"Date Posting Rendered is required for posting #1";case"postingDateIsValid2":return"Date Posting Rendered is required for posting #2";case"postingDateIsValid3":return"Date Posting Rendered is required for posting #3";case"postingDateIsValid4":return"Date Posting Rendered is required for posting #4";case"postingDateIsValid5":return"Date Posting Rendered is required for posting #5";case"postingDateIsValid6":return"Date Posting Rendered is required for posting #6";case"postingDateIsValid7":return"Date Posting Rendered is required for posting #7";case"postingDateIsValid8":return"Date Posting Rendered is required for posting #8";case"postingFileIsValid":return"A file is required for posting";case"postingFileIsValid1":return"A file is required for posting #1";case"postingFileIsValid2":return"A file is required for posting #2";case"postingFileIsValid3":return"A file is required for posting #3";case"postingFileIsValid4":return"A file is required for posting #4";case"postingFileIsValid5":return"A file is required for posting #5";case"postingFileIsValid6":return"A file is required for posting #6";case"postingFileIsValid7":return"A file is required for posting #7";case"postingFileIsValid8":return"A file is required for posting #8";case"postingTypeIsValid1":return"Posting Type is required for posting #1";case"postingTypeIsValid2":return"Posting Type is required for posting #2";case"postingTypeIsValid3":return"Posting Type is required for posting #3";case"postingTypeIsValid4":return"Posting Type is required for posting #4";case"postingTypeIsValid5":return"Posting Type is required for posting #5";case"postingTypeIsValid6":return"Posting Type is required for posting #6";case"postingTypeIsValid7":return"Posting Type is required for posting #7";case"postingTypeIsValid8":return"Posting Type is required for posting #8";case"publicationTypeIsValid1":return"Publication Type is required for posting #1";case"publicationTypeIsValid2":return"Publication Type is required for posting #2";case"publicationTypeIsValid3":return"Publication Type is required for posting #3";case"publicationTypeIsValid4":return"Publication Type is required for posting #4";case"publicationTypeIsValid5":return"Publication Type is required for posting #5";case"someFileIsValid":return"At least one file is required";case"statusIsValid":return"Opinion Status is a required field";case"typeIsValid":return"Opinion Type is a required field";case"typeIsValid1":return"Opinion Type is required for posting #1";case"typeIsValid2":return"Opinion Type is required for posting #2";case"typeIsValid3":return"Opinion Type is required for posting #3";case"typeIsValid4":return"Opinion Type is required for posting #4";case"typeIsValid5":return"Opinion Type is required for posting #5";case"typeIsValid6":return"Opinion Type is required for posting #6";case"typeIsValid7":return"Opinion Type is required for posting #7";case"typeIsValid8":return"Opinion Type is required for posting #8";case"userIdIsValid":return"User ID is a required field";default:return console.warn("OpinionsErrorMessages.getMessage() key is not handled:",{key:t}),"Field "+t+" is required"}},t)}.call(this),function(){function l(t,e){return function(){return t.apply(e,arguments)}}var e,t;function n(t,e,n,i,o,a,s,r){this._handlePageClick=l(this._handlePageClick,this),this._handleEditOpinion=l(this._handleEditOpinion,this),this._handleSortDirectionDropdown=l(this._handleSortDirectionDropdown,this),this._handleSearchButtonClick=l(this._handleSearchButtonClick,this),this._handleClearButtonClick=l(this._handleClearButtonClick,this),this._handleCourtChange=l(this._handleCourtChange,this),this._val
1idateDateSearch=l(this._validateDateSearch,this),this._getPageOptions=l(this._getPageOptions,this),this._showPaging=l(this._showPaging,this),this._setupDatePickers=l(this._setupDatePickers,this),this._initializeDatePicker=l(this._initializeDatePicker,this),this._fetchSuccess=l(this._fetchSuccess,this),this._fetchSingleSuccess=l(this._fetchSingleSuccess,this),this._addError=l(this._addError,this),this._convertDate=l(this._convertDate,this),this._clearDateRangeWhenValueSet=l(this._clearDateRangeWhenValueSet,this),this._disableSearch=l(this._disableSearch,this),this._enableSearch=l(this._enableSearch,this),this._ajaxFetchOpinions=l(this._ajaxFetchOpinions,this),this._ajaxFetchOpinion=l(this._ajaxFetchOpinion,this),this._attachEvents=l(this._attachEvents,this),this._assignEditFormTemplate=l(this._assignEditFormTemplate,this),this._assignUnauthorizedOpinionTemplate=l(this._assignUnauthorizedOpinionTemplate,this),this._assignOpinionTemplate=l(this._assignOpinionTemplate,this),this.refreshResults=l(this.refreshResults,this),this._initialize=l(this._initialize,this),this._metadata.currentAuthors=o.filter(function(t){return t.Selectable}),this._metadata.formerAuthors=o.filter(function(t){return!t.Selectable}),this._metadata.postTypes=a,this._metadata.publicationTypes=s,this._initialize(t,e,n,i,r)}t=us.pacourts.views,e=us.pacourts.templates,t.OpinionsPageView=(n.prototype._activeFilterCount=0,n.prototype._dateFormat="MM/DD/YYYY",n.prototype._courtType=null,n.prototype._currentOpinions=null,n.prototype._currentPageNumber=1,n.prototype._defaultOpinions=null,n.prototype._totalPages=1,n.prototype._$opinionsPage=null,n.prototype._$authorSearch=null,n.prototype._$boardDocketNumberSearch=null,n.prototype._$captionSearch=null,n.prototype._$clearButton=null,n.prototype._$courtDocketNumberSearch=null,n.prototype._$courtTypeSelect=null,n.prototype._$datePickerEnd=null,n.prototype._$datePickerStart=null,n.prototype._$keywordSearch=null,n.prototype._$monthSearch=null,n.prototype._$postTypeSelect=null,n.prototype._$publicationTypeSelect=null,n.prototype._$searchButton=null,n.prototype._$searchForm=null,n.prototype._$yearSearch=null,n.prototype._$selectedOpinion=null,n.prototype._$loadingSpinner=null,n.prototype._$noResultsText=null,n.prototype._$searchPaging=null,n.prototype._$searchResults=null,n.prototype._$searchResultsHeader=null,n.prototype._$searchValidation=null,n.prototype._$sortDirectionDropdown=null,n.prototype._metadata={currentAuthors:[],formerAuthors:[],postTypes:[],publicationTypes:[]},n.prototype._initialize=function(t,e,n,i,o){return this._courtType=i,this._currentOpinions=n,this._defaultOpinions=n,this._opinionTemplate=o?this._assignOpinionTemplate(i):this._assignUnauthorizedOpinionTemplate(i),this._editOpinionForm=this._assignEditFormTemplate(i),this._currentPageNumber=t,this._totalPages=e,this._$opinionsPage=$("[aopc-opinions-page]"),this._$authorSearch=this._$opinionsPage.find("[aopc-opinions-author-search]"),this._$boardDocketNumberSearch=this._$opinionsPage.find("[aopc-opinions-board-docket-search]"),this._$captionSearch=this._$opinionsPage.find("[aopc-opinions-caption-search]"),this._$clearButton=this._$opinionsPage.find("[aopc-opinions-clear-button]"),this._$courtDocketNumberSearch=this._$opinionsPage.find("[aopc-opinions-court-docket-search]"),this._$courtTypeSelect=this._$opinionsPage.find("[aopc-opinions-court-type-select]"),this._$datePickerEnd=this._$opinionsPage.find("[aopc-opinions-date-range-end]"),this._$datePickerStart=this._$opinionsPage.find("[aopc-opinions-date-range-start]"),this._$keywordSearch=this._$opinionsPage.find("[aopc-opinions-keyword-search]"),this._$monthSearch=this._$opinionsPage.find("[aopc-opinions-month-search]"),this._$postTypeSelect=this._$opinionsPage.find("[aopc-opinions-post-type-select]"),this._$publicationTypeSelect=this._$opinionsPage.find("[aopc-opinions-publication-type-search]"),this._$searchButton=this._$opinionsPage.find("[aopc-opinions-search-button]"),this._$searchForm=this._$opinionsPage.find("[aopc-opinions-search-form]"),this._$yearSearch=this._$opinionsPage.find("[aopc-opinions-year-search]"),this._$editButton=this._$opinionsPage.find("[aopc-opinions-edit-button]"),this._$loadingSpinner=this._$opinionsPage.find("[aopc-opinions-loading-spinner]"),this._$noResultsText=this._$opinionsPage.find("[aopc-opinions-no-results]"),this._$searchPaging=this._$opinionsPage.find("[aopc-opinions-paging]"),this._$searchResults=this._$opinionsPage.find("[aopc-opinions-results]"),this._$searchResultsHeader=this._$opinionsPage.find("[aopc-opinions-results-header]"),this._$searchValidation=this._$opinionsPage.find("[aopc-opinions-validation]"),this._$sortDirectionDropdown=this._$opinionsPage.find("[aopc-opinions-sort-order]"),this._attachEvents(),this._setupDatePickers(),this._$courtTypeSelect.val(i.toLowerCase()),this._showPaging(
1)},n.prototype.refreshResults=function(){return this._enableSearch(),this._ajaxFetchOpinions(this._currentPageNumber)},n.prototype._assignOpinionTemplate=function(t){switch(t){case"COMMONWEALTH":return e.commonwealthOpinion;case"DBOARD":return e.dboardOpinion;case"SUPERIOR":return e.superiorOpinion;case"SUPREME":return e.supremeOpinion;default:return null}},n.prototype._assignUnauthorizedOpinionTemplate=function(t){switch(t){case"COMMONWEALTH":return e.commonwealthOpinionUnauthorized;case"DBOARD":return e.dboardOpinionUnauthorized;case"SUPERIOR":return e.superiorOpinionUnauthorized;case"SUPREME":return e.supremeOpinionUnauthorized;default:return null}},n.prototype._assignEditFormTemplate=function(t){switch(t){case"COMMONWEALTH":return e.commonwealthOpinionEditForm;case"DBOARD":return e.dboardOpinionEditForm;case"SUPERIOR":return e.superiorOpinionEditForm;case"SUPREME":return e.supremeOpinionEditForm;default:return null}},n.prototype._attachEvents=function(){return this._$monthSearch.on("change",this._clearDateRangeWhenValueSet),this._$clearButton.on("click",this._handleClearButtonClick),this._$searchButton.on("click",this._handleSearchButtonClick),this._$sortDirectionDropdown.on("change",this._handleSortDirectionDropdown),this._$yearSearch.on("change",this._clearDateRangeWhenValueSet),this._$opinionsPage.on("click","[aopc-opinions-edit-button]",this._handleEditOpinion),this._$courtTypeSelect.on("change",this._handleCourtChange),this._$searchPaging.on("click",".-page",this._handlePageClick)},n.prototype._ajaxFetchOpinion=function(t){try{if(this._disableSearch(),null!==this._courtType&&""!==this._courtType&&"undefined"!==this._courtType&&(null!==t&&""!==t&&"undefined"!==t))return $.ajax({url:"/api/opinion/opinion/"+t+"?courtType="+this._courtType,type:"GET",contentType:"application/json"}).done(this._fetchSingleSuccess).fail(this._addError)}catch(t){return this._enableSearch()}},n.prototype._ajaxFetchOpinions=function(t){var e,n,i,o,a,s,r,l,p,u,d,h;try{if(this._disableSearch(),r={startDate:this._$datePickerStart.val(),endDate:this._$datePickerEnd.val(),month:this._$monthSearch.val(),year:this._$yearSearch.val()},this._validateDateSearch(r))return h=null,r.startDate&&r.endDate&&(o=this._convertDate(r.endDate),h="/api/opinion?startDate="+this._convertDate(r.startDate)+"&endDate="+o+"&courtType="+this._courtType),r.year&&(h="/api/opinion?month="+r.month+"&year="+r.year+"&courtType="+this._courtType),null!==(i=this._$captionSearch.val())&&""!==i&&"undefined"!==i&&(h+="&captionText="+i),null!==(e=this._$authorSearch.val())&&""!==e&&"undefined"!==e&&(h+="&authorName="+e),null!==(n=this._$boardDocketNumberSearch.val())&&""!==n&&"undefined"!==n&&(h+="&boardDocketNumber="+n),null!==(a=this._$courtDocketNumberSearch.val())&&""!==a&&"undefined"!==a&&(h+="&courtDocketNumber="+a),null!==(s=this._$keywordSearch.val())&&""!==s&&"undefined"!==s&&(h+="&keywords="+s),l=[],(u=this._$postTypeSelect.find("input:checked")).each(function(t){return l.push($(u[t]).attr("value"))}),0<l.length&&(h+="&postTypes="+l.join(",")),null!==(p=this._$publicationTypeSelect.val())&&""!==p&&"undefined"!==p&&(h+="&publicationType="+p),null!==(d=this._$sortDirectionDropdown.val())&&""!==d&&"undefined"!==d&&(h+="&sortDirection="+d),1<t&&(h+="&pageNumber="+t),this._$loadingSpinner.toggleClass("-hidden"),this._$noResultsText.addClass("-hidden"),$.ajax({url:h,type:"GET",contentType:"application/json"}).done(this._fetchSuccess).fail(this._addError);window.alert("Please select only a month/year combination OR a start and end date for your search"),this._enableSearch()}catch(t){return this._enableSearch()}finally{this._enableSearch()}},n.prototype._enableSearch=function(){return this._$searchButton.prop("disabled",!1)},n.prototype._disableSearch=function(){return this._$searchButton.prop("disabled",!0)},n.prototype._clearDateRangeWhenValueSet=function(t){if(""!==$(t.target).val())return this._$datePickerEnd.val(""),this._$datePickerStart.val("")},n.prototype._convertDate=function(t){return moment(t,this._dateFormat).format()},n.prototype._addError=function(t,e,n){return this._$searchResults.empty(),this._$searchPaging.empty(),this._$loadingSpinner.toggleClass("-hidden"),t=t.responseJSON?t.responseJSON.exceptionMessage||t.responseJSON.message:"Server error searching opinions",this._$searchValidation.removeClass("-hidden"),this._$searchValidation.find("#validation-message").text(t),this._enableSearch()},n.prototype._fetchSingleSuccess=function(t){var e=this._editOpinionForm({selectedOpinion:t,metadata:this._metadata});return this._$selectedOpinion.append(e).trigger("opinion-edit-loaded",t.id),e=this._$selectedOpinion.find("[aopc-opinions-edit-datepicker]"),this._initializeDatePicker(e),this._enableSearch()},n.prototype._fetchSuccess=function(t){if(this._$searchValidation.addClass("-hidden"),this._$loadingSpinner.toggleClass("-hidden"),this._currentOpinions=t.Items,this._currentPageNumber=t.PageNumber,this._totalPages=t.TotalPages,null!==this._currentOpinions&&0!==this._currentOpinions.length)return this._$searchResultsHeader.get(0).scrollIntoView({behavior:"smooth"}),this._$searchResults.empty(),t=this._opinionTemplate({opinions:this._currentOpinions}
1),this._$searchResults.append(t),this._showPaging(),this._enableSearch();this._$searchResults.empty(),this._$searchPaging.empty(),this._$noResultsText.removeClass("-hidden")},n.prototype._initializeDatePicker=function(t){return $(t).datepicker({showOn:"button",buttonImage:"/Themes/AOPC/assets/images/icons/calendar.png",buttonImageOnly:!0})},n.prototype._setupDatePickers=function(){return"DBOARD"===this._courtType?this._$opinionsPage.find("[aopc-opinions-date-range-start]").val(moment().subtract(4,"months").format(this._dateFormat)):this._$opinionsPage.find("[aopc-opinions-date-range-start]").val(moment().subtract(7,"days").format(this._dateFormat)),this._$opinionsPage.find("[aopc-opinions-date-range-end]").val(moment().format(this._dateFormat)),this._initializeDatePicker("[aopc-opinions-date-range-start]"),this._initializeDatePicker("[aopc-opinions-date-range-end]")},n.prototype._showPaging=function(){var t,e,n,i,o,a;for(this._$searchPaging.empty(),i=this._getPageOptions(),1<this._currentPageNumber?this._$searchPaging.append('<span class="-page" data-page="'+(this._currentPageNumber-1)+'">&lt; Prev</span>'):this._$searchPaging.append('<span class="-disabled">&lt; Prev</span>'),o=1,e=n=0,a=i.length;0<=a?n<a:a<n;e=0<=a?++n:--n)1<(t=i[e])-o&&this._$searchPaging.append('<span class="-disabled">...</span>'),t===this._currentPageNumber?this._$searchPaging.append('<span class="-current">'+t+"</span>"):this._$searchPaging.append('<span class="-page" data-page="'+t+'">'+t+"</span>"),o=t;return this._currentPageNumber<this._totalPages?this._$searchPaging.append('<span class="-page" data-page="'+(this._currentPageNumber+1)+'">Next &gt;</span>'):this._$searchPaging.append('<span class="-disabled">Next &gt;</span>')},n.prototype._getPageOptions=function(){var t=this._currentPageNumber-1,e=this._currentPageNumber+1,n=[1];return 1<t&&-1===n.indexOf(t)&&n.push(t),-1===n.indexOf(this._currentPageNumber)&&n.push(this._currentPageNumber),e<this._totalPages&&-1===n.indexOf(e)&&n.push(e),-1===n.indexOf(this._totalPages)&&n.push(this._totalPages),n},n.prototype._validateDateSearch=function(t){var e=t.startDate&&t.endDate&&!t.month&&!t.year,t=t.year&&!t.startDate&&!t.endDate;return e||t},n.prototype._handleCourtChange=function(t){return window.location=t.currentTarget.selectedOptions[0].getAttribute("href")},n.prototype._handleClearButtonClick=function(){return this._$searchResults.empty(),this._$searchResults.append(this._opinionTemplate({opinions:this._defaultOpinions})),this._enableSearch()},n.prototype._handleSearchButtonClick=function(t){return t.preventDefault(),this._ajaxFetchOpinions(1)},n.prototype._handleSortDirectionDropdown=function(){return this._ajaxFetchOpinions(1)},n.prototype._handleEditOpinion=function(t){t=$(t.currentTarget).attr("aopc-opinions-edit-button");return this._$selectedOpinion=this._$searchResults.find('[search-result="'+t+'"]'),this._$selectedOpinion.addClass("-is-editing"),this._ajaxFetchOpinion(t)},n.prototype._handlePageClick=function(t){t=$(t.currentTarget),t=parseInt(t.data("page"));return this._ajaxFetchOpinions(t)},n)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var o;function t(t,e,n){this._handleCancelOpinion=i(this._handleCancelOpinion,this),this._handleUpdateOpinion=i(this._handleUpdateOpinion,this),this._handlePostedDateToggle=i(this._handlePostedDateToggle,this),this._handleDeletePosting=i(this._handleDeletePosting,this),this._handleDeleteOpinion=i(this._handleDeleteOpinion,this),this._gatherFormInputs=i(this._gatherFormInputs,this),this._initializeEdit=i(this._initializeEdit,this),this._requestSuccess=i(this._requestSuccess,this),this._deleteSuccess=i(this._deleteSuccess,this),this._deletePostSuccess=i(this._deletePostSuccess,this),this._uploadSuccess=i(this._uploadSuccess,this),this._addError=i(this._addError,this),this._hasFile=i(this._hasFile,this),this._getActivePostings=i(this._getActivePostings,this),this._ajaxUpdateOpinion=i(this._ajaxUpdateOpinion,this),this._ajaxDeletePosting=i(this._ajaxDeletePosting,this),this._ajaxDeleteOpinion=i(this._ajaxDeleteOpinion,this),this._someFileIsValid=i(this._someFileIsValid,this),this._val
1idatePosting=i(this._validatePosting,this),this._validateFields=i(this._validateFields,this),this._getActiveFiles=i(this._getActiveFiles,this),this._attachEvents=i(this._attachEvents,this),this._initialize=i(this._initialize,this),this._initialize(t,e,n)}o=us.pacourts.views,us.pacourts.utilities,o.SuperiorOpinionsAuthEditView=(t.prototype._courtType=null,t.prototype._errorMessages=null,t.prototype._opinionsView=null,t.prototype._selectedOpinion=null,t.prototype._$opinionsPage=null,t.prototype._$editForm=null,t.prototype._$deleteButton=null,t.prototype._$searchResults=null,t.prototype._initialize=function(t,e,n){return this._courtType=e,this._errorMessages=new o.OpinionsErrorMessages,this._opinionsView=n,this._$opinionsPage=$("[aopc-opinions-page]"),this._$courtTypeSelect=this._$opinionsPage.find("[aopc-opinions-court-type-select]"),this._$searchResults=this._$opinionsPage.find("[aopc-opinions-results]"),this._$editbutton=this._$opinionsPage.find("[aopc-opinions-edit-button]"),this._attachEvents(),this._$courtTypeSelect.val(e.toLowerCase())},t.prototype._attachEvents=function(){return this._$opinionsPage.on("click","[aopc-opinions-delete-button]",this._handleDeleteOpinion),this._$opinionsPage.on("click","[aopc-posting-delete-button]",this._handleDeletePosting),this._$opinionsPage.on("click","[aopc-opinions-cancel-button]",this._handleCancelOpinion),this._$opinionsPage.on("click","[aopc-opinions-update-button]",this._handleUpdateOpinion),this._$opinionsPage.on("opinion-edit-loaded",this._gatherFormInputs),this._$opinionsPage.on("click",".c-opinions-page__posteddate__toggle-wrapper :checkbox",this._handlePostedDateToggle)},t.prototype._getActiveFiles=function(){var t,e,n=[],i=this._files;for(e in i)t=i[e],this._hasFile(t)&&n.push(t[0].files[0]);return n},t.prototype._validateFields=function(t){for(var e,n={userIdIsValid:!!this._$updateUserId.val(),captionIsValid:!!this._$updateCaption.val(),dispositionDateIsValid:!!this._$updateDispositionDate.val()},i=e=1,o=t;1<=o?e<=o:o<=e;i=1<=o?++e:--e)this._validatePosting(i,n);return n},t.prototype._validatePosting=function(t,e){var n=t-1;if(e["typeIsValid"+t]=!!this._typeSelects[n].val(),e["publicationTypeIsValid"+t]=!!this._publicationTypeSelects[n].val(),this._postedDateToggles[n].is(":checked"))return e["postedDateIsValid"+t]=!!this._postedDateInputs[n].val()},t.prototype._someFileIsValid=function(){return this._files.some(function(t){return!!t.val()})},t.prototype._ajaxDeleteOpinion=function(t,e){t="/api/opinion/delete?id="+t+"&courtType="+this._courtType;return $.ajax({url:t,type:"DELETE",contentType:"application/json"}).done(this._deleteSuccess).fail(this._addError)},t.prototype._ajaxDeletePosting=function(t,e){t="/api/opinionpost/delete?id="+t+"&courtType="+this._courtType;return $.ajax({url:t,type:"DELETE",contentType:"application/json"}).done(this._deletePostSuccess).fail(this._addError)},t.prototype._ajaxUpdateOpinion=function(t,e){for(var n,i=new FormData,o=this._getActiveFiles(),a=0,s=o.length;a<s;a++)n=o[a],i.append("file",n);return e={UserIdentifier:this._$updateUserId.val(),Caption:this._$updateCaption.val(),DispositionDate:this._$updateDispositionDate.val(),CourtType:2,Id:t,UpdatedOn:moment(),UploadDate:this._$uploadDate.val(),Postings:this._getActivePostings(t,e)},i.append("JSON",JSON.stringify(e)),e="/api/opinion/update?id="+t+"&courtType="+this._courtType,$.ajax({cache:!1,contentType:!1,data:i,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:3e5,type:"PUT",url:e}).done(this._uploadSuccess).fail(this._addError)},t.prototype._getActivePostings=function(t,e){for(var n,i,o=[],a=n=0,s=e-1;0<=s?n<=s:s<=n;a=0<=s?++n:--n)o.push({AuthorId:this._authors[a].val(),Id:this._postingIds[a].attr("aopc-opinions-update-postingid"+a.toString()),OpinionId:t,PostedDateOverride:null!=(i=this._postedDateToggles[a])&&i.is(":checked")||"hidden"===this._postedDateInputs[a].attr("type")?this._postedDateInputs[a].val():null,PostingTypeId:this._typeSelects[a].val(),PublicationTypeId:this._publicationTypeSelects[a].val(),ProcessedDate:this._processDates[a].val(),UpdatedOn:moment(),FileName:this._hasFile(this._files[a])?this._files[a][0].files[0].name:null,FileVersion:parseInt(this._files[a].attr("file-version"),10)});return o},t.prototype._hasFile=function(t){return 0<(null!=(t=t[0])&&null!=(t=t.files)?t.length:void 0)},t.prototype._addError=function(t,e,n){t=t.responseJSON.exceptionMessage;return window.alert(t)},t.prototype._uploadSuccess=function(t){return this._requestSuccess("Opinion updated successfully!")},t.prototype._deletePostSuccess=function(t){return this._requestSuccess("Opinion posting deleted successfully!")},t.prototype._deleteSuccess=function(t){return this._requestSuccess("Opinion deleted successfully!")},t.prototype._requestSuccess=function(t){return this._opinionsView.refreshResults(),window.alert(t)},t.prototype._initializeEdit=function(){return this._$opinionsPage.on("click","[aopc-opinions-edit-button]",this._initializeFields)},t.prototype._gatherFormInputs=function(t,e){e=this._$opinionsPage.find('[edit-opinion-form="'+e+'"]');return this._$updateDispositionDate=e.find("[aopc-opinions-update-dispositiondate]"),this._$updateValidation=e.find("[aopc-opinions-update-validation]"),this._$updateErrors=e.find("[aopc-opinions-update-errors]"),this._$updateCaption=e.find("[aopc-opinions-update-caption]"),this._$updateUserId=e.find("[aopc-opinions-update-userid]"),this._$uploadDate=e.find("[aopc-opinions-update-uploaddate]"),this._opinionsView._initializeDatePicker(this._$updateDispositionDate),this._opinionsView._initializeDatePicker(".c-opinions-page__posteddateoverride"),this._authors=[e.find("[aopc-opinions-update-author0]"),e.find("[aopc-opinions-update-author1]"),e.find("[aopc-opinions-update-author2]"),e.find("[aopc-opinions-update-author3]"),e.find("[aopc-opinions-update-author4]")],this._typeSelects=[e.find("[aopc-opinions-update-typeselect0]"),e.find("[aopc-opinions-update-typeselect1]"),e.find("[aopc-opinions-update-typeselect2]"),e.find("[aopc-opinions-update-typeselect3]"),e.find("[aopc-opinions-update-typeselect4]")],this._postedDateToggles=[e.find("#aopc-opinions-update-posteddateoverride0-toggle"),e.find("#aopc-opinions-update-posteddateoverride1-toggle"),e.find("#aopc-opinions-update-posteddateoverride2-toggle"),e.find("#aopc-opinions-update-posteddateoverride3-toggle"),e.find("#aopc-opinions-update-posteddateoverride4-toggle")],this._postedDateInputs=[e.find("[aopc-opinions-update-posteddateoverride0]"),e.find("[aopc-opinions-update-posteddateoverride1]"),e.find("[aopc-opinions-update-posteddateoverride2]"),e.find("[aopc-opinions-update-posteddateoverride3]"),e.find("[aopc-opinions-update-posteddateoverride4]")],this._postingIds=[this._$opinionsPage.find("[aopc-opinions-update-postingid0]"),this._$opinionsPage.find("[aopc-opinions-update-postingid1]"),this._$opinionsPage.find("[aopc-opinions-update-postingid2]"),this._$opinionsPage.find("[aopc-opinions-update-postingid3]"),this._$opinionsPage.find("[aopc-opinions-update-postingid4]")],this._processDates=[e.find("[aopc-opinions-update-processeddate0]"),e.find("[aopc-opinions-update-processeddate1]"),e.find("[aopc-opinions-update-processeddate2]"),e.find("[aopc-opinions-update-processeddate3]"),e.find("[aopc-opinions-update-processeddate4]"),e.find("[aopc-opinions-update-processeddate5]"),e.find("[aopc-opinions-update-processeddate6]"),e.find("[aopc-opinions-update-processeddate7]")],this._publicationTypeSelects=[e.find("[aopc-opinions-update-publicationtype0]"),e.find("[aopc-opinions-update-publicationtype1]"),e.find("[aopc-opinions-update-publicationtype2]"),e.find("[aopc-opinions-update-publicationtype3]"),e.find("[aopc-opinions-update-publicationtype4]")],this._files=[e.find("[aopc-opinions-update-file0]"),e.find("[aopc-opinions-update-file1]"),e.find("[aopc-opinions-update-file2]"),e.find("[aopc-opinions-update-file3]"),e.find("[aopc-opinions-update-file4]")],this._postings=[e.find("[aopc-opinions-update-posting0]"),e.find("[aopc-opinions-update-posting1]"),e.find("[aopc-opinions-update-posting2]"),e.find("[aopc-opinions-update-posting3]"),e.find("[aopc-opinions-update-posting4]")]},t.prototype._handleDeleteOpinion=function(t){if(window.confirm("Are you sure you want to delete this opinion?"))return t=$(t.currentTarget).attr("aopc-opinions-delete-button"),this._ajaxDeleteOpinion(t)},t.prototype._handleDeletePosting=function(t){if(window.confirm("Are you sure you want to delete this posting?"))return t=$(t.currentTarget).attr("aopc-posting-delete-button"),this._ajaxDeletePosting(t)}
1,t.prototype._handlePostedDateToggle=function(t){var e=$("["+t.target.id.replace("-toggle","-wrapper")+"]");return t.target.checked?e.removeClass("-hidden"):(e.addClass("-hidden"),e.find("input").val(""))},t.prototype._handleUpdateOpinion=function(t){var e,n,i,o,a=$(t.currentTarget),s=a.attr("aopc-opinions-update-button"),a=a.attr("aopc-opinions-posting-count");if(this._gatherFormInputs(null,s),t.preventDefault(),this._$updateErrors.empty(),o=this._validateFields(a),Object.keys(o).map(function(t){return o[t]}).some(function(t){return!t})){for(e in this._$updateValidation.show(),i=[],o)n=o[e],i.push(n?void 0:this._$updateErrors.append('<li class="error">'+this._errorMessages.getMessage(e)+"</li>"));return i}return this._ajaxUpdateOpinion(s,a)},t.prototype._handleCancelOpinion=function(t){t=$(t.currentTarget).attr("aopc-opinions-cancel-button");return this._$selectedOpinion=this._$searchResults.find('[search-result="'+t+'"]'),this._$selectedOpinion.removeClass("-is-editing").find("[edit-opinion-form]").remove()},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var i,o;function t(t,e){this._handleUploadFormSubmit=n(this._handleUploadFormSubmit,this),this._handlePostingChange=n(this._handlePostingChange,this),this._handleCancelButtonClick=n(this._handleCancelButtonClick,this),this._handleAccordionToggle=n(this._handleAccordionToggle,this),this._someFileIsValid=n(this._someFileIsValid,this),this._validatePosting=n(this._validatePosting,this),this._getActiveFiles=n(this._getActiveFiles,this),this._getActivePostings=n(this._getActivePostings,this),this._validateFields=n(this._validateFields,this),this._submitSuccess=n(this._submitSuccess,this),this._initializeDatePicker=n(this._initializeDatePicker,this),this._postingIsClear=n(this._postingIsClear,this),this._ajaxUploadOpinions=n(this._ajaxUploadOpinions,this),this._attachEvents=n(this._attachEvents,this),this._initialize=n(this._initialize,this),this._initialize(t,e)}o=us.pacourts.views,i=us.pacourts.utilities,o.SuperiorOpinionsAuthUploadView=(t.prototype._activeFilterCount=0,t.prototype._dateFormat="MM/DD/YYYY",t.prototype._errorHandler=null,t.prototype._errorMessages=null,t.prototype._courtType=null,t.prototype._currentOpinions=null,t.prototype._defaultOpinions=null,t.prototype._$opinionsPage=null,t.prototype._initialize=function(t,e){return this._courtType=e,this._errorHandler=new i.ErrorHandlerUtil,this._errorMessages=new o.OpinionsErrorMessages,this._$opinionsPage=$("[aopc-opinions-page]"),this._$accordionToggle=this._$opinionsPage.find("[aopc-opinions-upload-accordion-toggle]"),this._$accordionWrapper=this._$opinionsPage.find("[aopc-opinions-upload-accordion-wrapper]"),this._$cancelButton=this._$opinionsPage.find("[aopc-opinions-upload-cancel]"),this._$uploadCaption=this._$opinionsPage.find("[aopc-opinions-upload-caption]"),this._$uploadDispositionDate=this._$opinionsPage.find("[aopc-opinions-upload-dispositiondate]"),this._$uploadUserId=this._$opinionsPage.find("[aopc-opinions-upload-userid]"),this._$uploadErrors=this._$opinionsPage.find("[aopc-opinions-upload-errors]"),this._$uploadForm=this._$opinionsPage.find("[aopc-opinions-upload-form]"),this._$uploadSection=this._$opinionsPage.find("[aopc-opinions-upload-section]"),this._$uploadSubmit=this._$opinionsPage.find("[aopc-opinions-upload-submit]"),this._$uploadValidation=this._$opinionsPage.find("[aopc-opinions-upload-validation]"),this._authors=[this._$opinionsPage.find("[aopc-opinions-upload-author1]"),this._$opinionsPage.find("[aopc-opinions-upload-author2]"),this._$opinionsPage.find("[aopc-opinions-upload-author3]"),this._$opinionsPage.find("[aopc-opinions-upload-author4]"),this._$opinionsPage.find("[aopc-opinions-upload-author5]"),this._$opinionsPage.find("[aopc-opinions-upload-author6]"),this._$opinionsPage.find("[aopc-opinions-upload-author7]"),this._$opinionsPage.find("[aopc-opinions-upload-author8]")],this._typeSelects=[this._$opinionsPage.find("[aopc-opinions-upload-typeselect1]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect2]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect3]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect4]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect5]")],this._publicationTypeSelects=[this._$opinionsPage.find("[aopc-opinions-upload-publicationtype1]"),this._$opinionsPage.find("[aopc-opinions-upload-publicationtype2]"),this._$opinionsPage.find("[aopc-opinions-upload-publicationtype3]"),this._$opinionsPage.find("[aopc-opinions-upload-publicationtype4]"),this._$opinionsPage.find("[aopc-opinions-upload-publicationtype5]")],this._files=[this._$opinionsPage.find("[aopc-opinions-upload-file1]"),this._$opinionsPage.find("[aopc-opinions-upload-file2]"),this._$opinionsPage.find("[aopc-opinions-upload-file3]"),this._$opinionsPage.find("[aopc-opinions-upload-file4]"),this._$opinionsPage.find("[aopc-opinions-upload-file5]")],this._postings=[this._$opinionsPage.find("[aopc-opinions-upload-posting1]"),this._$opinionsPage.find("[aopc-opinions-upload-posting2]"),this._$opinionsPage.find("[aopc-opinions-upload-posting3]"),this._$opinionsPage.find("[aopc-opinions-upload-posting4]"),this._$opinionsPage.find("[aopc-opinions-upload-posting5]")],this._activePostings=[],this._attachEvents(),this._initializeDatePicker()},t.prototype._attachEvents=function(){var t,e,n,i;for(t in this._$accordionToggle.on("click",this._handleAccordionToggle),this._$cancelButton.on("click",this._handleCancelButtonClick),this._$uploadForm.on("submit",this._handleUploadFormSubmit),i=[],n=this._postings)e=n[t],i.push(e.on("change",this._handlePostingChange.bind(null,t)));return i},t.prototype._ajaxUploadOpinions=function(){for(var t,e,n=new FormData,i=this._getActiveFiles(),o=0,a=i.length;o<a;o++)t=i[o],n.append("file",t);return e={UserIdentifier:this._$uploadUserId.val(),Caption:this._$uploadCaption.val(),DispositionDate:this._$uploadDispositionDate.val(),CourtType:2,UploadDate:moment(),Postings:this._getActivePostings()},n.append("JSON",JSON.stringify(e)),$.ajax({cache:!1,contentType:!1,data:n,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:1e4,type:"POST",url:"/api/opinion/create"}).fail(this._errorHandler.handleAjaxError)},t.prototype._postingIsClear=function(t){return!(this._authors[t].val()||this._publicationTypeSelects[t].val()||this._files[t].val()||this._typeSelects[t].val())},t.prototype._initializeDatePicker=function(){return this._$uploadDispositionDate.datepicker({showOn:"button",buttonImage:"/Themes/AOPC/assets/images/icons/calendar.png",buttonImageOnly:!0})},t.prototype._submitSuccess=function(){return this._$uploadForm[0].reset(),window.alert("The posting has been submitted successfully.")},t.prototype._validateFields=function(){for(var t,e={userIdIsValid:!!this._$uploadUserId.val(),captionIsValid:!!this._$uploadCaption.val(),dispositionDateIsValid:!!this._$uploadDispositionDate.val(),someFileIsValid:this._someFileIsValid()},n=this._activePostings,i=0,o=n.length;i<o;
1i++)t=n[i],this._validatePosting(Number(t),e);return e},t.prototype._getActivePostings=function(){for(var t,e=[],n=this._activePostings,i=0,o=n.length;i<o;i++)t=n[i],this._postingIsClear(t)||e.push({AuthorId:this._authors[t].val(),PostingTypeId:this._typeSelects[t].val(),PublicationTypeId:this._publicationTypeSelects[t].val(),ProcessedDate:moment(),FileName:this._files[t][0].files[0].name,FileVersion:1});return e},t.prototype._getActiveFiles=function(){for(var t,e=[],n=this._activePostings,i=0,o=n.length;i<o;i++)t=n[i],this._postingIsClear(t)||e.push(this._files[t][0].files[0]);return e},t.prototype._validatePosting=function(t,e){var n;if(!this._postingIsClear(t))return e["fileIsValid"+(n=t+1)]=!!this._files[t].val(),e["typeIsValid"+n]=!!this._typeSelects[t].val(),e["publicationTypeIsValid"+n]=!!this._publicationTypeSelects[t].val()},t.prototype._someFileIsValid=function(){return this._files.some(function(t){return!!t.val()})},t.prototype._handleAccordionToggle=function(){return this._$uploadSection.toggleClass("closed"),this._$accordionWrapper.fadeToggle("slow","linear")},t.prototype._handleCancelButtonClick=function(){return this._$uploadForm.trigger("reset"),this._handleAccordionToggle()},t.prototype._handlePostingChange=function(t,e){if(-1===this._activePostings.indexOf(t))return this._activePostings.push(t)},t.prototype._handleUploadFormSubmit=function(t){var e,n,i,o;if(t.preventDefault(),this._$uploadErrors.empty(),o=this._validateFields(),Object.keys(o).map(function(t){return o[t]}).some(function(t){return!t})){for(e in this._$uploadValidation.show(),i=[],o)n=o[e],i.push(n?void 0:this._$uploadErrors.append('<li class="error">'+this._errorMessages.getMessage(e)+"</li>"));return i}return this._ajaxUploadOpinions()},t)}.call(this),function(){function i(t,e){return function(){return t.apply(e,arguments)}}var o;function t(t,e,n){this._handleUpdateOpinion=i(this._handleUpdateOpinion,this),this._handlePostedDateToggle=i(this._handlePostedDateToggle,this),this._handleCancelOpinion=i(this._handleCancelOpinion,this),this._handleDeletePosting=i(this._handleDeletePosting,this),this._handleDeleteOpinion=i(this._handleDeleteOpinion,this),this._gatherFormInputs=i(this._gatherFormInputs,this),this._setupDatePickers=i(this._setupDatePickers,this),this._hasFile=i(this._hasFile,this),this._getActiveFiles=i(this._getActiveFiles,this),this._getActivePostings=i(this._getActivePostings,this),this._requestSuccess=i(this._requestSuccess,this),this._deleteSuccess=i(this._deleteSuccess,this),this._deletePostSuccess=i(this._deletePostSuccess,this),this._uploadSuccess=i(this._uploadSuccess,this),this._addError=i(this._addError,this),this._ajaxUpdateOpinion=i(this._ajaxUpdateOpinion,this),this._ajaxDeletePosting=i(this._ajaxDeletePosting,this),this._ajaxDeleteOpinion=i(this._ajaxDeleteOpinion,this),this._attachEvents=i(this._attachEvents,this),this._validatePosting=i(this._validatePosting,this),this._validateFields=i(this._validateFields,this),this._initialize=i(this._initialize,this),this._initialize(t,e,n)}o=us.pacourts.views,us.pacourts.utilities,o.SupremeOpinionsAuthEditView=(t.prototype._courtType=null,t.prototype._errorMessages=null,t.prototype._opinionsView=null,t.prototype._selectedOpinion=null,t.prototype._$opinionsPage=null,t.prototype._$editForm=null,t.prototype._$deleteButton=null,t.prototype._$searchResults=null,t.prototype._initialize=function(t,e,n){return this._courtType=e,this._errorMessages=new o.OpinionsErrorMessages,this._opinionsView=n,this._$opinionsPage=$("[aopc-opinions-page]"),this._$courtTypeSelect=this._$opinionsPage.find("[aopc-opinions-court-type-select]"),this._$searchResults=this._$opinionsPage.find("[aopc-opinions-results]"),this._attachEvents(),this._$courtTypeSelect.val(e.toLowerCase())},t.prototype._validateFields=function(t){for(var e,n={userIdIsValid:!!this._$updateUserId.val(),captionIsValid:!!this._$updateCaption.val()},i=e=1,o=t;1<=o?e<=o:o<=e;i=1<=o?++e:--e)this._validatePosting(i,n);return n},t.prototype._validatePosting=function(t,e){var n=t-1;if(e["authorIsValid"+t]=!!this._authors[n].val(),e["typeIsValid"+t]=!!this._typeSelects[n].val(),e["dateRenderedIsValid"+t]=!!this._datepickers[n].val(),this._postedDateToggles[n].is(":checked"))return e["postedDateIsValid"+t]=!!this._postedDateInputs[n].val()},t.prototype._attachEvents=function(){return this._$opinionsPage.on("click","[aopc-opinions-delete-button]",this._handleDeleteOpinion),this._$opinionsPage.on("click","[aopc-posting-delete-button]",this._handleDeletePosting),this._$opinionsPage.on("click","[aopc-opinions-cancel-button]",this._handleCancelOpinion),this._$opinionsPage.on("click","[aopc-opinions-update-button]",this._handleUpdateOpinion),this._$opinionsPage.on("opinion-edit-loaded",this._gatherFormInputs),this._$opinionsPage.on("click",".c-opinions-page__posteddate__toggle-wrapper :checkbox",this._handlePostedDateToggle)},t.prototype._ajaxDeleteOpinion=function(t,e){t="/api/opinion/delete?id="+t+"&courtType="+this._courtType;return $.ajax({url:t,type:"DELETE",contentType:"application/json"}).done(this._deleteSuccess).fail(this._addError)}
1,t.prototype._ajaxDeletePosting=function(t,e){t="/api/opinionpost/delete?id="+t+"&courtType="+this._courtType;return $.ajax({url:t,type:"DELETE",contentType:"application/json"}).done(this._deletePostSuccess).fail(this._addError)},t.prototype._ajaxUpdateOpinion=function(t,e){for(var n,i=new FormData,o=this._getActiveFiles(),a=0,s=o.length;a<s;a++)n=o[a],i.append("file",n);return e={UserIdentifier:this._$updateUserId.val(),Caption:this._$updateCaption.val(),CourtType:3,Id:t,UpdatedOn:moment(),UploadDate:this._$uploadDate.val(),Postings:this._getActivePostings(t,e)},i.append("JSON",JSON.stringify(e)),e="/api/opinion/update?id="+t+"&courtType="+this._courtType,$.ajax({cache:!1,contentType:!1,data:i,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:3e5,type:"PUT",url:e}).done(this._uploadSuccess).fail(this._addError)},t.prototype._addError=function(t,e,n){t=t.responseJSON.exceptionMessage;return window.alert(t)},t.prototype._uploadSuccess=function(t){return this._requestSuccess("Opinion updated successfully!")},t.prototype._deletePostSuccess=function(t){return this._requestSuccess("Opinion posting deleted successfully!")},t.prototype._deleteSuccess=function(t){return this._requestSuccess("Opinion deleted successfully!")},t.prototype._requestSuccess=function(t){return this._opinionsView.refreshResults(),window.alert(t)},t.prototype._getActivePostings=function(t,e){for(var n,i,o=[],a=n=0,s=e-1;0<=s?n<=s:s<=n;a=0<=s?++n:--n)o.push({AuthorId:this._authors[a].val(),FileName:this._hasFile(this._files[a])?this._files[a][0].files[0].name:null,FileVersion:this._files[a].attr("file-version"),Id:this._postingIds[a].attr("aopc-opinions-update-postingid"+a.toString()),OpinionId:t,PostedDateOverride:null!=(i=this._postedDateToggles[a])&&i.is(":checked")||"hidden"===this._postedDateInputs[a].attr("type")?this._postedDateInputs[a].val():null,PostingTypeId:this._typeSelects[a].val(),ProcessedDate:this._processDates[a].val(),RenderedDate:$(this._datepickers[a]).val()});return o},t.prototype._getActiveFiles=function(){var t,e,n=[],i=this._files;for(e in i)t=i[e],this._hasFile(t)&&n.push(t[0].files[0]);return n},t.prototype._hasFile=function(t){return 0<(null!=(t=t[0])&&null!=(t=t.files)?t.length:void 0)},t.prototype._setupDatePickers=function(){for(var t,e=this._datepickers,n=[],i=0,o=e.length;i<o;i++)t=e[i],this._opinionsView._initializeDatePicker(t),n.push(this._opinionsView._initializeDatePicker(".c-opinions-page__posteddateoverride"));return n},t.prototype._gatherFormInputs=function(t,e){e=this._$opinionsPage.find('[edit-opinion-form="'+e+'"]');return this._$updateValidation=e.find("[aopc-opinions-update-validation]"),this._$updateErrors=e.find("[aopc-opinions-update-errors]"),this._$updateCaption=e.find("[aopc-opinions-update-caption]"),this._$updateUserId=e.find("[aopc-opinions-update-userid]"),this._$uploadDate=e.find("[aopc-opinions-update-uploaddate]"),this._datepickers=[e.find("[aopc-opinions-update-datepicker0]"),e.find("[aopc-opinions-update-datepicker1]"),e.find("[aopc-opinions-update-datepicker2]"),e.find("[aopc-opinions-update-datepicker3]"),e.find("[aopc-opinions-update-datepicker4]"),e.find("[aopc-opinions-update-datepicker5]"),e.find("[aopc-opinions-update-datepicker6]"),e.find("[aopc-opinions-update-datepicker7]")],this._processDates=[e.find("[aopc-opinions-update-processeddate0]"),e.find("[aopc-opinions-update-processeddate1]"),e.find("[aopc-opinions-update-processeddate2]"),e.find("[aopc-opinions-update-processeddate3]"),e.find("[aopc-opinions-update-processeddate4]"),e.find("[aopc-opinions-update-processeddate5]"),e.find("[aopc-opinions-update-processeddate6]"),e.find("[aopc-opinions-update-processeddate7]")],this._setupDatePickers(),this._authors=[e.find("[aopc-opinions-update-author0]"),e.find("[aopc-opinions-update-author1]"),e.find("[aopc-opinions-update-author2]"),e.find("[aopc-opinions-update-author3]"),e.find("[aopc-opinions-update-author4]"),e.find("[aopc-opinions-update-author5]"),e.find("[aopc-opinions-update-author6]"),e.find("[aopc-opinions-update-author7]")],this._typeSelects=[e.find("[aopc-opinions-update-typeselect0]"),e.find("[aopc-opinions-update-typeselect1]"),e.find("[aopc-opinions-update-typeselect2]"),e.find("[aopc-opinions-update-typeselect3]"),e.find("[aopc-opinions-update-typeselect4]"),e.find("[aopc-opinions-update-typeselect5]"),e.find("[aopc-opinions-update-typeselect6]"),e.find("[aopc-opinions-update-typeselect7]")],this._postedDateToggles=[e.find("#aopc-opinions-update-posteddateoverride0-toggle"),e.find("#aopc-opinions-update-posteddateoverride1-toggle"),e.find("#aopc-opinions-update-posteddateoverride2-toggle"),e.find("#aopc-opinions-update-posteddateoverride3-toggle"),e.find("#aopc-opinions-update-posteddateoverride4-toggle"),e.find("#aopc-opinions-update-posteddateoverride5-toggle"),e.find("#aopc-opinions-update-posteddateoverride6-toggle"),e.find("#aopc-opinions-update-posteddateoverride7-toggle")],this._postedDateInputs=[e.find("[aopc-opinions-update-posteddateoverride0]"),e.find("[aopc-opinions-update-posteddateoverride1]"),e.find("[aopc-opinions-update-posteddateoverride2]"),e.find("[aopc-opinions-update-posteddateoverride3]"),e.find("[aopc-opinions-update-posteddateoverride4]"),e.find("[aopc-opinions-update-posteddateoverride5]"),e.find("[aopc-opinions-update-posteddateoverride6]"),e.find("[aopc-opinions-update-posteddateoverride7]")],this._postingIds=[this._$opinionsPage.find("[aopc-opinions-update-postingid0]"),this._$opinionsPage.find("[aopc-opinions-update-postingid1]"),this._$opinionsPage.find("[aopc-opinions-update-postingid2]"),this._$opinionsPage.find("[aopc-opinions-update-postingid3]"),this._$opinionsPage.find("[aopc-opinions-update-postingid4]"),this._$opinionsPage.find("[aopc-opinions-update-postingid5]"),this._$opinionsPage.find("[aopc-opinions-update-postingid6]"),this._$opinionsPage.find("[aopc-opinions-update-postingid7]")],this._files=[e.find("[aopc-opinions-update-file0]"),e.find("[aopc-opinions-update-file1]"),e.find("[aopc-opinions-update-file2]"),e.find("[aopc-opinions-update-file3]"),e.find("[aopc-opinions-update-file4]"),e.find("[aopc-opinions-update-file5]"),e.find("[aopc-opinions-update-file6]"),e.find("[aopc-opinions-update-file7]")],this._postings=[e.find("[aopc-opinions-update-posting0]"),e.find("[aopc-opinions-update-posting1]"),e.find("[aopc-opinions-update-posting2]"),e.find("[aopc-opinions-update-posting3]"),e.find("[aopc-opinions-update-posting4]"),e.find("[aopc-opinions-update-posting5]"),e.find("[aopc-opinions-update-posting6]"),e.find("[aopc-opinions-update-posting7]")]},t.prototype._handleDeleteOpinion=function(t){if(window.confirm("Are you sure you want to delete this opinion?"))return t=$(t.currentTarget).attr("aopc-opinions-delete-button"),this._ajaxDeleteOpinion(t)},t.prototype._handleDeletePosting=function(t){if(window.confirm("Are you sure you want to delete this posting?"))return t=$(t.currentTarget).attr("aopc-posting-delete-button"),this._ajaxDeletePosting(t)},t.prototype._handleCancelOpinion=function(t){t=$(t.currentTarget).attr("aopc-opinions-cancel-button");return this._$selectedOpinion=this._$searchResults.find('[search-result="'+t+'"]'),this._$selectedOpinion.removeClass("-is-editing").find("[edit-opinion-form]").remove()}
1,t.prototype._handlePostedDateToggle=function(t){var e=$("["+t.target.id.replace("-toggle","-wrapper")+"]");return t.target.checked?e.removeClass("-hidden"):(e.addClass("-hidden"),e.find("input").val(""))},t.prototype._handleUpdateOpinion=function(t){var e,n,i,o,a=$(t.currentTarget),s=a.attr("aopc-opinions-update-button"),a=a.attr("aopc-opinions-posting-count");if(this._gatherFormInputs(null,s),t.preventDefault(),this._$updateErrors.empty(),o=this._validateFields(a),Object.keys(o).map(function(t){return o[t]}).some(function(t){return!t})){for(e in this._$updateValidation.show(),i=[],o)n=o[e],i.push(n?void 0:this._$updateErrors.append('<li class="error">'+this._errorMessages.getMessage(e)+"</li>"));return i}return this._ajaxUpdateOpinion(s,a)},t)}.call(this),function(){function n(t,e){return function(){return t.apply(e,arguments)}}var i,o;function t(t,e){this._handleUploadFormSubmit=n(this._handleUploadFormSubmit,this),this._handlePostingChange=n(this._handlePostingChange,this),this._handleCancelButtonClick=n(this._handleCancelButtonClick,this),this._handleAccordionToggle=n(this._handleAccordionToggle,this),this._validatePosting=n(this._validatePosting,this),this._validateFields=n(this._validateFields,this),this._submitSuccess=n(this._submitSuccess,this),this._someFileIsValid=n(this._someFileIsValid,this),this._setupDatePickers=n(this._setupDatePickers,this),this._postingIsClear=n(this._postingIsClear,this),this._initializeDatePicker=n(this._initializeDatePicker,this),this._ajaxUploadOpinions=n(this._ajaxUploadOpinions,this),this._attachEvents=n(this._attachEvents,this),this._initialize=n(this._initialize,this),this._initialize(t,e)}o=us.pacourts.views,i=us.pacourts.utilities,o.SupremeOpinionsAuthUploadView=(t.prototype._activeFilterCount=0,t.prototype._courtType=null,t.prototype._dateFormat="MM/DD/YYYY",t.prototype._errorHandler=null,t.prototype._errorMessages=null,t.prototype._currentOpinions=null,t.prototype._defaultOpinions=null,t.prototype._$opinionsPage=null,t.prototype._$accordionToggle=null,t.prototype._$accordionWrapper=null,t.prototype._$cancelButton=null,t.prototype._$uploadErrors=null,t.prototype._$uploadForm=null,t.prototype._$uploadSection=null,t.prototype._$uploadValidation=null,t.prototype._$uploadCaption=null,t.prototype._$uploadUserId=null,t.prototype._activePostings=[],t.prototype._authors=null,t.prototype._datepickers=null,t.prototype._files=null,t.prototype._postings=null,t.prototype._typeSelects=null,t.prototype._initialize=function(t,e){return this._courtType=e,this._errorHandler=new i.ErrorHandlerUtil,this._errorMessages=new o.OpinionsErrorMessages,this._$opinionsPage=$("[aopc-opinions-page]"),this._$accordionToggle=this._$opinionsPage.find("[aopc-opinions-upload-accordion-toggle]"),this._$accordionWrapper=this._$opinionsPage.find("[aopc-opinions-upload-accordion-wrapper]"),this._$cancelButton=this._$opinionsPage.find("[aopc-opinions-upload-cancel]"),this._$uploadErrors=this._$opinionsPage.find("[aopc-opinions-upload-errors]"),this._$uploadForm=this._$opinionsPage.find("[aopc-opinions-upload-form]"),this._$uploadSection=this._$opinionsPage.find("[aopc-opinions-upload-section]"),this._$uploadSubmit=this._$opinionsPage.find("[aopc-opinions-upload-submit]"),this._$uploadValidation=this._$opinionsPage.find("[aopc-opinions-upload-validation]"),this._$uploadCaption=this._$opinionsPage.find("[aopc-opinions-upload-caption]"),this._$uploadUserId=this._$opinionsPage.find("[aopc-opinions-upload-userid]"),this._authors=[this._$opinionsPage.find("[aopc-opinions-upload-author1]"),this._$opinionsPage.find("[aopc-opinions-upload-author2]"),this._$opinionsPage.find("[aopc-opinions-upload-author3]"),this._$opinionsPage.find("[aopc-opinions-upload-author4]"),this._$opinionsPage.find("[aopc-opinions-upload-author5]"),this._$opinionsPage.find("[aopc-opinions-upload-author6]"),this._$opinionsPage.find("[aopc-opinions-upload-author7]"),this._$opinionsPage.find("[aopc-opinions-upload-author8]")],this._datepickers=[this._$opinionsPage.find("[aopc-opinions-upload-datepicker1]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker2]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker3]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker4]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker5]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker6]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker7]"),this._$opinionsPage.find("[aopc-opinions-upload-datepicker8]")],this._files=[this._$opinionsPage.find("[aopc-opinions-upload-file1]"),this._$opinionsPage.find("[aopc-opinions-upload-file2]"),this._$opinionsPage.find("[aopc-opinions-upload-file3]"),this._$opinionsPage.find("[aopc-opinions-upload-file4]"),this._$opinionsPage.find("[aopc-opinions-upload-file5]"),this._$opinionsPage.find("[aopc-opinions-upload-file6]"),this._$opinionsPage.find("[aopc-opinions-upload-file7]"),this._$opinionsPage.find("[aopc-opinions-upload-file8]")],this._postings=[this._$opinionsPage.find("[aopc-opinions-upload-posting1]"),this._$opinionsPage.find("[aopc-opinions-upload-posting2]"),this._$opinionsPage.find("[aopc-opinions-upload-posting3]"),this._$opinionsPage.find("[aopc-opinions-upload-posting4]"),this._$opinionsPage.find("[aopc-opinions-upload-posting5]"),this._$opinionsPage.find("[aopc-opinions-upload-posting6]"),this._$opinionsPage.find("[aopc-opinions-upload-posting7]"),this._$opinionsPage.find("[aopc-opinions-upload-posting8]")],this._typeSelects=[this._$opinionsPage.find("[aopc-opinions-upload-typeselect1]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect2]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect3]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect4]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect5]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect6]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect7]"),this._$opinionsPage.find("[aopc-opinions-upload-typeselect8]")],this._attachEvents(),this._setupDatePickers()},t.prototype._attachEvents=function(){var t,e,n,i;for(t in this._$accordionToggle.on("click",this._handleAccordionToggle),this._$cancelButton.on("click",this._handleCancelButtonClick),this._$uploadForm.on("submit",this._handleUploadFormSubmit),i=[],n=this._postings)e=n[t],i.push(e.on("change",this._handlePostingChange.bind(null,t)));return i},t.prototype._ajaxUploadOpinions=function(){for(var t,e,n,i=new FormData,o=[],a=this._activePostings,s=0,r=a.length;s<r;s++)e=a[s],this._postingIsClear(e)||(i.append(e,this._files[e][0].files[0]),t=this._files[e][0].files[0].name,o.push({AuthorId:$(this._authors[e]).val(),FileName:t,FileVersion:1,PostingTypeId:$(this._typeSelects[e]).val(),ProcessedDate:moment(),RenderedDate:$(this._datepickers[e]).val()}));return n={Caption:this._$uploadCaption.val(),CourtType:3,UserIdentifier:this._$uploadUserId.val(),UploadDate:moment(),Postings:o},i.append("JSON",JSON.stringify(n)),$.ajax({cache:!1,contentType:!1,data:i,enctype:"multipart/form-data",error:this._addError,processData:!1,success:this._submitSuccess,timeout:1e4,type:"POST",url:"/api/opinion/create"}).fail(this._errorHandler.handleAjaxError)},t.prototype._initializeDatePicker=function(t){return $(t).datepicker({showOn:"button",buttonImage:"/Themes/AOPC/assets/images/icons/calendar.png",buttonImageOnly:!0})},t.prototype._postingIsClear=function(t){return!(this._authors[t].val()||this._datepickers[t].val()||this._files[t].val()||this._typeSelects[t].val())},t.prototype._setupDatePickers=function(){for(var t,e=this._datepickers,n=[],i=0,o=e.length;i<o;i++)t=e[i],n.push(this._initializeDatePicker(t));return n},t.prototype._someFileIsValid=function(){return this._files.some(function(t){return!!$(t).val()})},t.prototype._submitSuccess=function(){return this._$uploadForm[0].reset(),window.alert("The posting has been submitted successfully.")},t.prototype._validateFields=function(){for(var t,e={userIdIsValid:!!this._$uploadUserId.val(),captionIsValid:!!this._$uploadCaption.val(),someFileIsValid:this._someFileIsValid()},n=this._activePostings,i=0,o=n.length;i<o;
1i++)t=n[i],this._validatePosting(Number(t),e);return e},t.prototype._validatePosting=function(t,e){var n;if(!this._postingIsClear(t))return e["postingAuthorIsValid"+(n=t+1)]=!!this._authors[t].val(),e["postingDateIsValid"+n]=!!this._datepickers[t].val(),e["postingFileIsValid"+n]=!!this._files[t].val(),e["postingTypeIsValid"+n]=!!this._typeSelects[t].val()},t.prototype._handleAccordionToggle=function(){return this._$uploadSection.toggleClass("closed"),this._$accordionWrapper.fadeToggle("slow","linear")},t.prototype._handleCancelButtonClick=function(){return this._$uploadForm.trigger("reset"),this._handleAccordionToggle()},t.prototype._handlePostingChange=function(t,e){if(-1===this._activePostings.indexOf(t))return this._activePostings.push(t)},t.prototype._handleUploadFormSubmit=function(t){var e,n,i,o;if(t.preventDefault(),this._$uploadErrors.empty(),o=this._validateFields(),Object.keys(o).map(function(t){return o[t]}).some(function(t){return!t})){for(e in this._$uploadValidation.show(),i=[],o)n=o[e],i.push(n?void 0:this._$uploadErrors.append('<li class="error">'+this._errorMessages.getMessage(e)+"</li>"));return i}return this._$uploadValidation.hide(),this._ajaxUploadOpinions()},t)}.call(this),(t=>{t.registerHelper("formatDate",function(t,e){return null!=t&&""!=t&&moment?moment(t).format(e):t}),t.registerHelper("ifCond",function(t,e,n,i){switch(e){case"==":return t==n?i.fn(this):i.inverse(this);case"===":return t===n?i.fn(this):i.inverse(this);case"!==":return t!==n?i.fn(this):i.inverse(this);case"<":return t<n?i.fn(this):i.inverse(this);case"<=":return t<=n?i.fn(this):i.inverse(this);case">":return n<t?i.fn(this):i.inverse(this);case">=":return n<=t?i.fn(this):i.inverse(this);case"&&":return t&&n?i.fn(this):i.inverse(this);case"||":return t||n?i.fn(this):i.inverse(this);default:return i.inverse(this)}}),t.registerHelper("json",function(t){return JSON.stringify(t)}),t.registerHelper("toLowerCaseClass",function(t){return(-1<t.indexOf(" ")?t.substring(0,t.indexOf(" ")):t).toLowerCase()}),t.registerHelper("substring",function(t,e,n){return null===t?"":t.substring(e,n)}),t.registerHelper("nullOrUndefined",function(t){return null==t||void 0===t}),t.registerHelper("log",function(t){console.log(t)}),t.registerHelper("select",function(t,e){e=$("<select />").html(e.fn(this));return e.find('[value="'+t+'"]').attr({selected:"selected"}),e.html()}),t.registerHelper("trueIsChecked",function(t){return!0===t?" checked":""}),t.registerHelper("falseIsChecked",function(t){return!1===t?" checked":""})})(window.Handlebars);

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.