1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c891d17c-18d9-4d99-a1dc-8532a72f25f2",t._sentryDebugIdIdentifier="sentry-dbid-c891d17c-18d9-4d99-a1dc-8532a72f25f2")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28764],{21001:(t,e,n)=>{n.d(e,{Bn:()=>I,C7:()=>d,Es:()=>v,H0:()=>O,QM:()=>R,Qu:()=>h,UN:()=>T,YS:()=>f,Z0:()=>E,ZD:()=>A,bL:()=>p,fw:()=>b,hB:()=>m,jv:()=>N,oz:()=>l,pZ:()=>_,t9:()=>S,tA:()=>y,zi:()=>g});var r=n(44478),i=n(63857),o=n(60180),s=n.n(o);n(25012);var a=n(22600),c=n(65588),u=n(84151),d=function(t){return function(e){e({type:u.A.SET_HOME_PAGE_REVISION,revision:{id:t.id,meta:t.sections.meta,sections:t.sections.sections,published:t.published,updatedAt:t.updatedAt,oldHomePageId:t.oldHomePageId}})}},E=function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t=(0,i.A)(s().mark(function t(n,r){var i,o,c;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=r().homePageRevision.revision.published||e,n({type:u.A.SAVE_HOME_PAGE_REVISION_REQUEST}),o=new a.A({sections:{meta:r().homePageRevision.revision.meta,sections:r().homePageRevision.revision.sections},published:i}),t.prev=3,t.next=6,o.save();case 6:c=t.sent,n({type:u.A.SAVE_HOME_PAGE_REVISION_SUCCESS,id:c.id,meta:c.sections.meta,sections:c.sections.sections,published:c.published}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),n({type:u.A.SAVE_HOME_PAGE_REVISION_FAILURE,errorMessage:t.t0.message||t.t0.statusText||t.t0.status,errors:o.errors.extract()});case 13:case"end":return t.stop()}},t,null,[[3,10]])})),function(e,n){return t.apply(this,arguments)}},l=function(t,e,n){return{type:u.A.UPDATE_HOME_PAGE_REVISION_SECTION_THEME,key:t,value:e,sectionId:n}},_=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:u.A.UPDATE_HOME_PAGE_REVISION_SECTION_DATA,key:t,value:e,sectionId:n,index:r}},A=function(t,e){return{type:u.A.ADD_HOME_PAGE_REVISION_SECTION_DATA,sectionId:t,tabId:e}},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:u.A.DELETE_HOME_PAGE_REVISION_SECTION_DATA,sectionId:t,index:e}},f=function(t,e,n){return{type:u.A.UPDATE_HOME_PAGE_REVISION_SECTION_META,key:t,value:e,sectionId:n}},I=function(t,e){return{type:u.A.ADD_NEW_HOME_PAGE_REVISION_SECTION,position:t,sectionContent:e}},h=function(t){return{type:u.A.SET_HOME_PAGE_REVISION_CURRENT_SECTION_ID,id:t}},v=function(t){return{type:u.A.SHOW_HOME_PAGE_TEMPLATES_DRAWER,value:t}},S=function(t){return{type:u.A.SHOW_HOME_PAGE_ADD_NEW_SECTIONS_DRAWER,value:t}},y=function(t){return{type:u.A.DELETE_HOME_PAGE_REVISION_SECTION,position:t}},O=function(t,e,n){return{type:u.A.SELECT_HOME_PAGE_REVISION_TEMPLATE,sections:t,templateId:e,meta:n}},b=function(t,e){return{type:u.A.UPDATE_HOME_PAGE_REVISION_TEMPLATE_META,key:t,value:e}},R=function(t){var e;return e=(0,i.A)(s().mark(function e(n){var r;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n({type:u.A.UPLOAD_HOME_PAGE_REVISION_IMAGE_REQUEST}),e.prev=1,e.next=4,c.A.perform(t);case 4:return r=e.sent,n({type:u.A.UPLOAD_HOME_PAGE_REVISION_IMAGE_SUCCESS,imageUrl:r}),e.abrupt("return",r);case 9:e.prev=9,e.t0=e.catch(1),n({type:u.A.UPLOAD_HOME_PAGE_REVISION_IMAGE_FAILURE,errorMessage:e.t0.statusText||e.t0.status});case 12:case"end":return e.stop()}},e,null,[[1,9]])})),function(t){return e.apply(this,arguments)}},m=function(t,e){return function(n,i){var o=(0,r.A)(i().homePageRevision.revision.sections),s="before"===e?t-1:t+1,a=o[t];o.splice(t,1),o.splice(s,0,a),n({type:u.A.MOVE_HOME_PAGE_REVISION_SECTION,sections:o,toIndex:s})}},T=function(t,e){var n;return n=(0,i.A)(s().mark(function n(r,i){var o,a;return s().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:o=i().homePageRevision.revision.sections[e].data,a=Object.values(t).map(function(t){return o[t]}),r({type:u.A.REORDER_HOME_PAGE_ITEMS,data:a,sectionId:e});case 4:case"end":return n.stop()}},n)})),function(t,e){return n.apply(this,arguments)}},g=function(t){return{type:u.A.CHANGE_HOME_PAGE_SECTION_KEY,key:t}},N=function(t,e){return{type:u.A.UPDATE_HOME_PAGE_REVISION,key:t,value:e}}},22600:(t,e,n)=>{n.d(e,{A:()=>_});var r=n(23745),i=n(67251),o=n(29898),s=n(52672),a=n(76966),c=n(42969),u=n(7379),d=n.n(u);function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(E=function(){return!!t})()}var l=function(t){function e(){var t,n,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)(this,e),t=e,n=[a],t=(0,s.default)(t),r=(0,o.default)(this,E()?Reflect.construct(t,n||[],(0,s.default)(this).constructor):t.apply(this,n)),d().call(r,a),r.sections=a.sections||{},r.updatedAt=a.updatedAt,r.oldHomePageId=a.oldHomePageId,r.published="boolean"!=typeof a.published||a.published,r}return(0,a.default)(e,t),(0,r.default)(e)}(d());(0,c.default)(l,"_type","home-page-revisions"),(0,c.default)(l,"baseURL","/home_page_revisions");let _=l},30069:(t,e,n)=>{n.d(e,{Bn:()=>I,Es:()=>v,F2:()=>E,H0:()=>O,Kc:()=>m,L1:()=>T,NG:()=>g,QM:()=>b,Qu:()=>h,YS:()=>f,ZD:()=>A,bL:()=>p,cN:()=>d,hB:()=>R,jZ:()=>N,oz:()=>l,pZ:()=>_,t9:()=>S,tA:()=>y});var r=n(44478),i=n(63857),o=n(60180),s=n.n(o);n(25012);
1var a=n(54162),c=n(65588),u=n(77175),d=function(t){return function(e){t&&t.id&&e({type:u.A.SET_HUB_PAGE_REVISION,revision:{id:t.id,meta:t.sections.meta,sections:t.sections.sections,published:t.published,updatedAt:t.updatedAt}})}},E=function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t=(0,i.A)(s().mark(function t(n,r){var i,o,c;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=r().hubPageRevision.revision.published||e,n({type:u.A.SAVE_HUB_PAGE_REVISION_REQUEST}),o=new a.A({sections:{meta:r().hubPageRevision.revision.meta,sections:r().hubPageRevision.revision.sections},published:i,hub:r().hub.hub}),t.prev=3,t.next=6,o.save();case 6:c=t.sent,n({type:u.A.SAVE_HUB_PAGE_REVISION_SUCCESS,id:c.id,meta:c.sections.meta,sections:c.sections.sections,published:c.published}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),n({type:u.A.SAVE_HUB_PAGE_REVISION_FAILURE,errorMessage:t.t0.message||t.t0.statusText||t.t0.status,errors:o.errors.extract()});case 13:case"end":return t.stop()}},t,null,[[3,10]])})),function(e,n){return t.apply(this,arguments)}},l=function(t,e,n){return{type:u.A.UPDATE_HUB_PAGE_REVISION_SECTION_THEME,key:t,value:e,sectionId:n}},_=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:u.A.UPDATE_HUB_PAGE_REVISION_SECTION_DATA,key:t,value:e,sectionId:n,index:r}},A=function(t,e){return{type:u.A.ADD_HUB_PAGE_REVISION_SECTION_DATA,sectionId:t,tabId:e}},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:u.A.DELETE_HUB_PAGE_REVISION_SECTION_DATA,sectionId:t,index:e}},f=function(t,e,n){return{type:u.A.UPDATE_HUB_PAGE_REVISION_SECTION_META,key:t,value:e,sectionId:n}},I=function(t,e){return{type:u.A.ADD_NEW_HUB_PAGE_REVISION_SECTION,position:t,sectionContent:e}},h=function(t){return{type:u.A.SET_HUB_PAGE_REVISION_CURRENT_SECTION_ID,id:t}},v=function(t){return{type:u.A.SHOW_HUB_PAGE_TEMPLATES_DRAWER,value:t}},S=function(t){return{type:u.A.SHOW_HUB_PAGE_ADD_NEW_SECTIONS_DRAWER,value:t}},y=function(t){return{type:u.A.DELETE_HUB_PAGE_REVISION_SECTION,position:t}},O=function(t,e){return{type:u.A.SELECT_HUB_PAGE_REVISION_TEMPLATE,sections:t,meta:e}},b=function(t){var e;return e=(0,i.A)(s().mark(function e(n){var r;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n({type:u.A.UPLOAD_HUB_PAGE_REVISION_IMAGE_REQUEST}),e.prev=1,e.next=4,c.A.perform(t);case 4:return r=e.sent,n({type:u.A.UPLOAD_HUB_PAGE_REVISION_IMAGE_SUCCESS,imageUrl:r}),e.abrupt("return",r);case 9:e.prev=9,e.t0=e.catch(1),n({type:u.A.UPLOAD_HUB_PAGE_REVISION_IMAGE_FAILURE,errorMessage:e.t0.statusText||e.t0.status});case 12:case"end":return e.stop()}},e,null,[[1,9]])})),function(t){return e.apply(this,arguments)}},R=function(t,e){return function(n,i){var o=(0,r.A)(i().hubPageRevision.revision.sections),s="before"===e?t-1:t+1,a=o[t];o.splice(t,1),o.splice(s,0,a),n({type:u.A.MOVE_HUB_PAGE_REVISION_SECTION,sections:o,toIndex:s})}},m=function(t,e){var n;return n=(0,i.A)(s().mark(function n(r,i){var o,a;return s().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:o=i().hubPageRevision.revision.sections[e].data,a=Object.values(t).map(function(t){return o[t]}),r({type:u.A.REORDER_HUB_PAGE_ITEMS,data:a,sectionId:e});case 4:case"end":return n.stop()}},n)})),function(t,e){return n.apply(this,arguments)}},T=function(t){return{type:u.A.CHANGE_HUB_PAGE_SECTION_KEY,key:t}},g=function(t,e){return{type:u.A.UPDATE_HUB_PAGE_REVISION,key:t,value:e}},N=function(){return{type:u.A.RESET_HUB_PAGE_REVISION}}},43531:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(96501),i=n(37876);let o=(0,r.A)((0,i.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},54162:(t,e,n)=>{n.d(e,{A:()=>A});var r=n(67251),i=n(23745),o=n(29898),s=n(52672),a=n(76966),c=n(42969),u=n(7379),d=n.n(u),E=n(73664);function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}var _=function(t){function e(){var t,n,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.default)(this,e),t=e,n=[a],t=(0,s.default)(t),i=(0,o.default)(this,l()?Reflect.construct(t,n||[],(0,s.default)(this).constructor):t.apply(this,n)),d().call(i,a),i.sections=a.sections||{},i.updatedAt=a.updatedAt,i.published="boolean"==typeof a.published&&a.published,i.hub=i.belongsTo(E.A,a.hub),i}
1return(0,a.default)(e,t),(0,i.default)(e,[{key:"constructBaseURL",value:function(){return this.constructor.constructBaseURL({hubId:this.hub.id})}}])}(d());(0,c.default)(_,"_type","hub-page-revisions"),(0,c.default)(_,"baseURL","/hubs/:hubId/hub_page_revisions");let A=_},66858:(t,e,n)=>{n.r(e),n.d(e,{default:()=>v});var r=n(31777),i=n(83129),o=n(47091),s=n.n(o),a=n(14232),c=n(54237),u=n(73936),d=n(96673),E=n(21471),l=n(43531),_=n(37876),A={styles:(0,_.jsx)(s(),{id:"275199688",children:[".button-container.jsx-275199688{position:absolute;top:12px;left:12px;z-index:2;}",".edit-button.jsx-275199688{background-color:#2e7d32;border:1px solid #d9d9d9;color:white;text-transform:none;}",".edit-button.jsx-275199688:hover{background-color:#256628;border-color:#d9d9d9;}"]}),className:"jsx-275199688"},p=A.className,f=A.styles;let I=(0,c.withTranslation)(["editor"])(function(t){var e=t.t,n=t.sectionId,r=t.setCurrentSectionId,i=t.changeHubPageSectionKey,o=t.dataTestId,s=(0,a.useRef)(null);return(0,a.useEffect)(function(){return function(){clearInterval(s.current)}}),(0,_.jsxs)("div",{className:"".concat(p," button-container"),children:[(0,_.jsx)(u.A,{theme:function(){return d.D9},children:(0,_.jsx)(E.A,{"data-testid":o,startIcon:(0,_.jsx)(l.A,{}),className:"".concat(p," edit-button"),onClick:function(){r(n),i("sections"),s.current=setTimeout(function(){var t=document.getElementById("hub-page-editor-section-".concat(n));t&&t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},1e3)},size:"large",children:e("editor:editor.editSection")})}),f]})});var h=n(30069);let v=(0,r.Ng)(function(){return{dataTestId:"admin-hubs-editor-edit-section-btn"}},function(t){return(0,i.zH)({setCurrentSectionId:h.Qu,changeHubPageSectionKey:h.L1},t)})(I)},73664:(t,e,n)=>{n.d(e,{A:()=>p});var r=n(67251),i=n(23745),o=n(29898),s=n(52672),a=n(76966),c=n(42969),u=n(7379),d=n.n(u),E=n(48363),l=n(1234);function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_=function(){return!!t})()}var A=function(t){function e(){var t,n,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.default)(this,e),t=e,n=[a],t=(0,s.default)(t),i=(0,o.default)(this,_()?Reflect.construct(t,n||[],(0,s.default)(this).constructor):t.apply(this,n)),d().call(i,a),i.name=a.name,i.description=a.description,i.state=a.state,i.createdAt=a.createdAt,i.updatedAt=a.updatedAt,i.permalink=a.permalink,i.isNewHub=a.isNewHub||!1,i.platformAnalyticsTagList=a.platformAnalyticsTagList||[],i.userIds=a.userIds||[],i.imageDescription=a.imageDescription,i.imageCaption=a.imageCaption,i.imageUrl=a.imageUrl,i.visibilityMode=a.visibilityMode,i.segments=i.hasMany(l.A,a.segments),i}return(0,a.default)(e,t),(0,i.default)(e,[{key:"validate",value:function(){(0,E.default)(this.name)&&this.errors.add({code:"blank",source:{pointer:"/data/attributes/name"}})}},{key:"getTags",value:function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/").concat(this.id,"/tags")).then(function(e){var n=e.data;return t.constructor.deserialize(n)})}},{key:"getAdmins",value:function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/").concat(this.id,"/admins")).then(function(e){var n=e.data;return t.constructor.deserialize(n)})}},{key:"associateSegments",value:function(){return this.constructor.adapter.put("".concat(this.constructBaseURL(),"/").concat(this.id,"/visibility"),this.serialize())}},{key:"generatePermalink",value:function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/generate_permalink?name=").concat(this.name)).then(function(e){var n=e.data;return t.constructor.deserialize(n)})}}],[{key:"authorize",value:function(t,e){return this.adapter.post("".concat(this.constructBaseURL(),"/").concat(t,"/admins"),{data:{attributes:{user_id:e}}})}},{key:"unauthorize",value:function(t,e){return this.adapter.delete("".concat(this.constructBaseURL(),"/").concat(t,"/admins/").concat(e))}}])}(d());(0,c.default)(A,"_type","hubs"),(0,c.default)(A,"baseURL","/hubs");let p=A},86307:(t,e,n)=>{n.r(e),n.d(e,{default:()=>v});var r=n(31777),i=n(83129),o=n(47091),s=n.n(o),a=n(14232),c=n(54237),u=n(73936),d=n(96673),E=n(21471),l=n(43531),_=n(37876),A={styles:(0,_.jsx)(s(),{id:"2223662321",children:[".button-container.jsx-2223662321{position:absolute;top:12px;left:12px;z-index:2;}",".edit-button.jsx-2223662321{background-color:#2e7d32;border:1px solid #d9d9d9;color:white;}"]}),className:"jsx-2223662321"},p=A.className,f=A.styles;let I=(0,c.withTranslation)(["editor"])(function(t){var e=t.t,n=t.sectionId,r=t.setCurrentSectionId,i=t.changeHomePageSectionKey,o=t.dataTestId,s=(0,a.useRef)(null);return(0,a.useEffect)(function(){return function(){clearTimeout(s.current)}},[]),(0,_.jsxs)("div",{className:"".concat(p," button-container"),children:[(0,_.jsx)(u.A,{theme:d.D9,children:(0,_.jsx)(E.A,{"data-testid":"".concat(o),startIcon:(0,_.jsx)(l.A,{}),className:"".concat(p," edit-button"),onClick:function(){r(n),i("sections"),s.current=setTimeout(function(){document.getElementById("home-page-editor-section-".concat(n))&&document.getElementById("home-page-editor-section-".concat(n)).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},1e3)},size:"large",children:e("editor:editor.editSection")})}),f]})});var h=n(21001);let v=(0,r.Ng)(function(){return{dataTestId:"admin-ae-he-preview-editSectionBtn"}},function(t){return(0,i.zH)({setCurrentSectionId:h.Qu,changeHomePageSectionKey:h.zi},t)})(I)}}]); 2//# sourceMappingURL=EditSectionButton.e68cc215316689f4.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.