PageSourceSearch

https://www.tag-walk.com/build/20.8bd26937.js

js tag-walk.com collected 2026-10-02 03:08:57 UTC 4,733 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{ei2a:function(e,t,a){"use strict";a.r(t);var n,o=a("q1tI"),l=a("p4+i"),r=a.n(l),i=a("o4RR"),u=(a("p6Lp"),a("FGyW")),s=(n=function extendStatics(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),__assign=function(){return(__assign=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=function(e){function PageData(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={slug:null,name:null,publishedAt:null,path:null,isPublic:!1,isPremium:!1},t.setValues=function(){t.setState({slug:t.props.slug,name:t.props.name,publishedAt:t.props.publishedAt,path:t.props.path,isPublic:t.props.isPublic,isPremium:t.props.isPremium})},t.onSubmit=function(e){e.preventDefault();var a=t.props,n=a.toggleModal,o=a.setPageInfo,l=a.toggleModalSpinner,r=a.generateRoute,s=t.state,c=s.slug,p=s.name,m=s.publishedAt,h=s.path,d=s.isPublic,f=s.isPremium,b=m?m.toUTCString():null;if(n&&l&&o&&r){l();var g=r("dynamic_page_edit_info",{slug:c,name:p,publishedAt:b,path:h,public:d,premium:f});fetch(g,{method:"POST"}).then(i.handleError).then((function(){o(__assign({},t.state)),n(),u.d.success('Page: "'+t.state.name+'" was successfully edited')})).catch((function(e){u.d.error(Object(i.getThrownError)(e))})).finally((function(){l()}))}},t.handleValueChange=function(e,a){t.setState((function(t){var n;return __assign(__assign({},t),((n={})[e]=a,n))}),(function(){return t.displayForm()}))},t.handleNameChange=function(e){t.setState({name:e.target.value})},t.displayForm=function(){var e,a,n,l,i,u,s,c=t.props,p=c.setModalContent,m=c.toggleModal,h=c.showModal,d=o.createElement("form",{id:"info",className:"info",onSubmit:t.onSubmit},o.createElement("h3",null,"Edit page info"),o.createElement("div",{className:"form-group"},o.createElement("label",{htmlFor:"path"},"Path"),o.createElement("input",{id:"path",defaultValue:null!==(e=t.state.path)&&void 0!==e?e:"/",className:"form-control",placeholder:"The path of your page",type:"text",onChange:function onChange(e){return t.setState({path:e.target.value})}})),o.createElement("div",{className:"form-group"},o.createElement("label",{htmlFor:"name"},"Name"),o.createElement("input",{id:"name",defaultValue:null!==(a=t.state.name)&&void 0!==a?a:"",className:"form-control",placeholder:"The name of your page",type:"text",onChange:t.handleNameChange})),o.createElement("div",{className:"form-group"},o.createElement("label",{htmlFor:"publishedAt"},"Date of publication"),o.createElement(r.a,{className:"published-at form-control",showTimeSelect:!0,timeFormat:"HH:mm",selected:null!==(n=t.state.publishedAt)&&void 0!==n?n:new Date,onChange:function onChange(e){e&&t.handleValueChange("publishedAt",e)},dateFormat:"MMMM d, yyyy h:mm aa",calendarStartDay:1})),o.createElement("div",{className:"form-group form-check"},o.createElement("input",{className:"form-check-input",type:"checkbox",id:"public",defaultChecked:null!==(l=t.state.isPublic)&&void 0!==l&&l,disabled:null!==(i=t.state.isPremium)&&void 0!==i&&i,onChange:function onChange(e){return t.handleValueChange("isPublic",e.target.checked)}}),o.createElement("label",{className:"form-check-label",htmlFor:"public"},"Public")),o.createElement("div",{className:"form-group form-check"},o.createElement("input",{className:"form-check-input",type:"checkbox",id:"premium",defaultChecked:null!==(u=t.state.isPremium)&&void 0!==u&&u,disabled:null!==(s=t.state.isPublic)&&void 0!==s&&s,onChange:function onChange(e){return t.handleValueChange("isPremium",e.target.checked)}}),o.createElement("label",{className:"form-check-label",htmlFor:"premium"},"Premium")),o.createElement("button",{className:"btn btn-primary submit",type:"submit"},"Submit"));p&&m&&(p(d),h||m())},t}return s(PageData,e),PageData.prototype.componentDidMount=function(){this.setValues(),this.props.displayForm&&this.displayForm()},PageData.prototype.componentDidUpdate=function(e,t,a){var n=this.props,o=n.name,l=n.publishedAt;o===e.name&&l===e.publishedAt||this.setValues()},PageData.prototype.render=function(){return o.createElement("button",{type:"button",className:"btn btn-secondary",onClick:this.displayForm},"Set Info")},PageData}(o.Component);t.default=c}}]);
2//# sourceMappingURL=20.8bd26937.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.