Commit 9262aedc by Vladislav

#19460 Разворачивание инфраструктуры

1 parent f885d096
/node_modules
/public/css/*.map
/public/css
/public/hot
/public/js/*.map
/public/js/resources_*.js
/public/js
/public/storage
/storage/*.key
/vendor
......
This diff could not be displayed because it is too large.
(self.webpackChunk=self.webpackChunk||[]).push([[456],{5456:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var s=r(3354),n=r(6119);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l={metaInfo:{title:"Login"},components:{LoadingButton:r(1100).Z,Logo:s.Z,TextInput:n.Z},data:function(){return{form:this.$inertia.form({email:"johndoe@example.com",password:"secret",remember:!1})}},methods:{login:function(){this.form.transform((function(e){return i(i({},e),{},{remember:e.remember?"on":""})})).post(this.route("login.attempt"))}}};const c=(0,r(1900).Z)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"p-6 bg-indigo-800 min-h-screen flex justify-center items-center"},[r("div",{staticClass:"w-full max-w-md"},[r("logo",{staticClass:"block mx-auto w-full max-w-xs fill-white",attrs:{height:"50"}}),e._v(" "),r("form",{staticClass:"mt-8 bg-white rounded-lg shadow-xl overflow-hidden",on:{submit:function(t){return t.preventDefault(),e.login(t)}}},[r("div",{staticClass:"px-10 py-12"},[r("h1",{staticClass:"text-center font-bold text-3xl"},[e._v("Welcome Back!")]),e._v(" "),r("div",{staticClass:"mx-auto mt-6 w-24 border-b-2"}),e._v(" "),r("text-input",{staticClass:"mt-10",attrs:{error:e.form.errors.email,label:"Email",type:"email",autofocus:"",autocapitalize:"off"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),e._v(" "),r("text-input",{staticClass:"mt-6",attrs:{error:e.form.errors.password,label:"Password",type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),e._v(" "),r("label",{staticClass:"mt-6 select-none flex items-center",attrs:{for:"remember"}},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.remember,expression:"form.remember"}],staticClass:"mr-1",attrs:{id:"remember",type:"checkbox"},domProps:{checked:Array.isArray(e.form.remember)?e._i(e.form.remember,null)>-1:e.form.remember},on:{change:function(t){var r=e.form.remember,s=t.target,n=!!s.checked;if(Array.isArray(r)){var o=e._i(r,null);s.checked?o<0&&e.$set(e.form,"remember",r.concat([null])):o>-1&&e.$set(e.form,"remember",r.slice(0,o).concat(r.slice(o+1)))}else e.$set(e.form,"remember",n)}}}),e._v(" "),r("span",{staticClass:"text-sm"},[e._v("Remember Me")])])],1),e._v(" "),r("div",{staticClass:"px-10 py-4 bg-gray-100 border-t border-gray-100 flex justify-between items-center"},[r("a",{staticClass:"hover:underline",attrs:{tabindex:"-1",href:"#reset-password"}},[e._v("Forgot password?")]),e._v(" "),r("loading-button",{staticClass:"btn-indigo",attrs:{loading:e.form.processing,type:"submit"}},[e._v("Login")])],1)])],1)])}),[],!1,null,null,null).exports},1100:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const s={props:{loading:Boolean}};const n=(0,r(1900).Z)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("button",{staticClass:"flex items-center",attrs:{disabled:e.loading}},[e.loading?r("div",{staticClass:"btn-spinner mr-2"}):e._e(),e._v(" "),e._t("default")],2)}),[],!1,null,null,null).exports},3354:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});const s=(0,r(1900).Z)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{viewBox:"0 0 1185 266",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M77.463 265c-19.497 0-35.318-15.405-35.318-34.39v-22.054C17.987 202.676 0 181.326 0 155.948V55.206C0 25.291 24.946 1 55.668 1h154.664C241.054 1 266 25.29 266 55.206v100.806c0 29.916-24.946 54.206-55.668 54.206H145.67c-2.823 0-5.383 1.407-6.827 3.58-10.7 17.067-24.158 31.897-39.98 43.915-6.236 4.794-13.654 7.287-21.4 7.287zM55.701 27.336c-15.771 0-28.65 12.465-28.65 27.87v100.806c0 15.342 12.813 27.87 28.65 27.87 7.49 0 13.536 5.881 13.536 13.168v33.624c0 4.922 4.272 7.99 8.214 7.99 1.709 0 3.286-.575 4.732-1.662 13.273-10.1 24.576-22.565 33.578-36.947 6.309-10.036 17.743-16.237 29.965-16.237h64.727c15.77 0 28.65-12.464 28.65-27.87V55.206c0-15.341-12.814-27.87-28.65-27.87H55.7z"}}),e._v(" "),r("path",{attrs:{d:"M395.752 2.4c37.152 0 65.088 27.936 65.088 64.8 0 36.576-27.936 64.8-65.088 64.8h-46.368v72H322.6V2.4h73.152zm0 104.544c22.176 0 38.592-16.992 38.592-39.744 0-23.04-16.416-39.744-38.592-39.744h-46.368v79.488h46.368zM502.6 33.792c-9.504 0-16.992-7.488-16.992-16.704 0-9.216 7.488-16.992 16.992-16.992 9.216 0 16.704 7.776 16.704 16.992 0 9.216-7.488 16.704-16.704 16.704zM489.928 204V60h25.056v144h-25.056zM625 56.256c33.696 0 55.872 22.464 55.872 59.328V204h-25.056v-86.976c0-23.616-13.536-36.864-35.712-36.864-23.04 0-41.76 13.536-41.76 47.52V204h-25.056V60h25.056v20.736C589 63.744 604.84 56.256 625 56.256zM835.24 60h24.768v137.952c0 44.928-36 67.392-73.44 67.392-32.256 0-56.448-12.384-68.256-35.136l21.888-12.384c6.624 13.536 18.72 24.192 46.944 24.192 29.952 0 48.096-16.992 48.096-44.064v-20.448c-11.52 17.568-29.952 28.8-54.144 28.8-40.896 0-73.44-33.12-73.44-75.168 0-41.76 32.544-74.88 73.44-74.88 24.192 0 42.624 10.944 54.144 28.512V60zm-51.264 122.4c29.088 0 51.264-22.176 51.264-51.264 0-28.8-22.176-50.976-51.264-50.976-29.088 0-51.264 22.176-51.264 50.976 0 29.088 22.176 51.264 51.264 51.264zM946.8 205.08c-28.21 0-45.63-20.8-41.08-48.88 4.42-27.17 26.91-46.28 53.56-46.28 19.37 0 31.59 9.36 38.35 22.36l-23.79 12.61c-3.25-5.85-9.1-9.49-16.9-9.49-12.35 0-23.14 9.23-25.35 22.1-2.08 11.83 4.29 22.1 17.16 22.1 8.06 0 13.91-4.03 18.59-10.14l21.58 13.65c-9.36 13.78-24.44 21.97-42.12 21.97zm126.36-59.93c-1.95 11.18-8.58 19.5-18.2 24.44l11.7 33.28h-26l-9.36-28.6h-8.32l-5.07 28.6h-26l16.12-91h36.4c18.33 0 32.24 13.65 28.73 33.28zm-43.42-9.36l-2.99 16.9h10.66c5.07.13 8.84-2.99 9.75-8.32.91-5.33-1.82-8.58-7.02-8.58h-10.4zM1184.05 112l-15.99 91h-26l7.67-43.81-25.48 33.54h-2.34l-14.82-35.23-7.93 45.5h-26l15.99-91h26l13.65 37.31 27.95-37.31h27.3z"}})])}),[],!1,null,null,null).exports},6119:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const s={inheritAttrs:!1,props:{id:{type:String,default:function(){return"text-input-".concat(this._uid)}},type:{type:String,default:"text"},value:String,label:String,error:String,readonly:Boolean},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()},setSelectionRange:function(e,t){this.$refs.input.setSelectionRange(e,t)}}};const n=(0,r(1900).Z)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.label?r("label",{staticClass:"form-label",attrs:{for:e.id}},[e._v(e._s(e.label)+":")]):e._e(),e._v(" "),r("input",e._b({ref:"input",staticClass:"form-input",class:{error:e.error},attrs:{id:e.id,readonly:e.readonly,type:e.type},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)}}},"input",e.$attrs,!1)),e._v(" "),e.error?r("div",{staticClass:"form-error"},[e._v(e._s(e.error))]):e._e()])}),[],!1,null,null,null).exports},1900:(e,t,r)=>{"use strict";function s(e,t,r,s,n,o,i,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),s&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=l):n&&(l=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var m=c.beforeCreate;c.beforeCreate=m?[].concat(m,l):[l]}return{exports:e,options:c}}r.d(t,{Z:()=>s})}}]);
\ No newline at end of file
(self.webpackChunk=self.webpackChunk||[]).push([[492],{1492:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(3669);const n={components:{Icon:s(5007).Z,SelectInput:a.Z},props:{cities:Array,token:Object,main_token_campaigns:Array},data:function(){return{city:!1}},watch:{},mounted:function(){},methods:{cityAdd:function(){this.$emit("add",this.city)},cityDelete:function(t){this.$emit("delete",t)},synced:function(t,e,s){this.$emit("synced",t,e,s)},updated:function(t,e,s){this.$emit("updated",t,e,s)},enabled:function(t,e,s){this.$emit("enabled",t,e,s)}}};const i=(0,s(1900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h2",{staticClass:"mt-12 font-bold text-2xl"},[t._v("Cities")]),t._v(" "),t.cities.length?s("div",{staticClass:"mt-4 flex flex-wrap"},[s("select-input",{staticClass:"pr-6",model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.cities,(function(e){return s("option",{domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),0),t._v(" "),s("button",{staticClass:"btn-indigo hover:underline",attrs:{tabindex:"-1",type:"button"},on:{click:t.cityAdd}},[t._v("\n Add\n ")])],1):t._e(),t._v(" "),s("div",{staticClass:"mt-6 bg-white rounded shadow"},[s("table",{staticClass:"w-full whitespace-nowrap"},[t._m(0),t._v(" "),t._l(t.token.cities,(function(e){return[s("tr",{key:e.id,staticClass:"hover:bg-gray-100 focus-within:bg-gray-100"},[s("td",{staticClass:"border-t",attrs:{colspan:"5"}},[s("div",{staticClass:"px-6 py-4"},[t._v("\n "+t._s(e.name)+"\n ")])]),t._v(" "),s("td",{staticClass:"border-t w-px"},[s("div",{staticClass:"px-6 py-4"},[s("button",{staticClass:"px-4 flex items-center",attrs:{tabindex:"-1"},on:{click:function(s){return t.cityDelete(e.id)}}},[s("icon",{staticClass:"block w-6 h-6 fill-gray-400",attrs:{name:"trash"}})],1)])])]),t._v(" "),e.dictionary_campaigns.length?s("tr",[s("th",{staticClass:"px-6 pt-6 pb-4"}),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Кампания")]),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Обновлять?")]),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Синхронизировать?")]),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Включено?")]),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"})]):t._e(),t._v(" "),t._l(e.dictionary_campaigns,(function(a){return e.dictionary_campaigns.length?s("tr",{key:a.id},[s("td",{staticClass:"border-t"}),t._v(" "),s("td",{staticClass:"border-t"},[s("span",{staticClass:"px-6 py-4 flex items-center focus:text-indigo-500"},[s("inertia-link",{staticClass:"hover:text-indigo-500 focus:text-indigo-500",attrs:{href:t.route("token.campaign.variables",[t.token.id,e.id,a.campaign_id])}},[t._v("\n "+t._s(a.name)+"\n ")])],1)]),t._v(" "),s("td",{staticClass:"border-t text-center"},[s("div",{staticClass:"px-6 py-4"},[s("input",{attrs:{type:"checkbox"},domProps:{checked:a.updated},on:{change:function(s){return t.updated(e.id,a.campaign_id,!a.updated)}}})])]),t._v(" "),s("td",{staticClass:"border-t text-center"},[s("input",{attrs:{type:"checkbox"},domProps:{checked:a.synced},on:{change:function(s){return t.synced(e.id,a.campaign_id,!a.synced)}}})]),t._v(" "),s("td",{staticClass:"border-t text-center"},[s("input",{attrs:{type:"checkbox"},domProps:{checked:a.enabled},on:{change:function(s){return t.enabled(e.id,a.campaign_id,!a.enabled)}}})]),t._v(" "),s("td",{staticClass:"border-t"})]):t._e()}))]})),t._v(" "),0===t.token.cities.length?s("tr",[s("td",{staticClass:"border-t px-6 py-4",attrs:{colspan:"4"}},[t._v("No City found.")])]):t._e()],2)])])}),[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",{staticClass:"text-left font-bold"},[s("th",{staticClass:"px-6 pt-6 pb-4",attrs:{colspan:"5"}},[t._v("Name")]),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"})])}],!1,null,null,null).exports},5007:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});const a={props:{name:String}};const n=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return"apple"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[s("g",{attrs:{"fill-rule":"nonzero"}},[s("path",{attrs:{d:"M46.173 19.967C49.927-1.838 19.797-.233 14.538.21c-.429.035-.648.4-.483.8 2.004 4.825 14.168 31.66 32.118 18.957zm13.18 1.636c1.269-.891 1.35-1.614.047-2.453l-2.657-1.71c-.94-.607-1.685-.606-2.532.129-5.094 4.42-7.336 9.18-8.211 15.24 1.597.682 3.55.79 5.265.328 1.298-4.283 3.64-8.412 8.088-11.534z"}}),s("path",{attrs:{d:"M88.588 67.75c9.65-27.532-13.697-45.537-35.453-32.322-1.84 1.118-4.601 1.118-6.441 0-21.757-13.215-45.105 4.79-35.454 32.321 5.302 15.123 17.06 39.95 37.295 29.995.772-.38 1.986-.38 2.758 0 20.235 9.955 31.991-14.872 37.295-29.995z"}})])]):"book"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M6 4H5a1 1 0 1 1 0-2h11V1a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5a1 1 0 0 0-1-1h-7v8l-2-2-2 2V4z"}})]):"cheveron-down"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})]):"cheveron-right"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("polygon",{attrs:{points:"12.95 10.707 13.657 10 8 4.343 6.586 5.757 10.828 10 6.586 14.243 8 15.657 12.95 10.707"}})]):"dashboard"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64l3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z"}})]):"location"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M10 20S3 10.87 3 7a7 7 0 1 1 14 0c0 3.87-7 13-7 13zm0-11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}})]):"office"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M7 0h86v100H57.108V88.418H42.892V100H7V0zm9 64h11v15H16V64zm57 0h11v15H73V64zm-19 0h11v15H54V64zm-19 0h11v15H35V64zM16 37h11v15H16V37zm57 0h11v15H73V37zm-19 0h11v15H54V37zm-19 0h11v15H35V37zM16 11h11v15H16V11zm57 0h11v15H73V11zm-19 0h11v15H54V11zm-19 0h11v15H35V11z"}})]):"printer"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z"}})]):"shopping-cart"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M4 2h16l-3 9H4a1 1 0 1 0 0 2h13v2H4a3 3 0 0 1 0-6h.33L3 5 2 2H0V0h3a1 1 0 0 1 1 1v1zm1 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})]):"store-front"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M18 9.87V20H2V9.87a4.25 4.25 0 0 0 3-.38V14h10V9.5a4.26 4.26 0 0 0 3 .37zM3 0h4l-.67 6.03A3.43 3.43 0 0 1 3 9C1.34 9 .42 7.73.95 6.15L3 0zm5 0h4l.7 6.3c.17 1.5-.91 2.7-2.42 2.7h-.56A2.38 2.38 0 0 1 7.3 6.3L8 0zm5 0h4l2.05 6.15C19.58 7.73 18.65 9 17 9a3.42 3.42 0 0 1-3.33-2.97L13 0z"}})]):"trash"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"}})]):"users"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M7 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1c2.15 0 4.2.4 6.1 1.09L12 16h-1.25L10 20H4l-.75-4H2L.9 10.09A17.93 17.93 0 0 1 7 9zm8.31.17c1.32.18 2.59.48 3.8.92L18 16h-1.25L16 20h-3.96l.37-2h1.25l1.65-8.83zM13 0a4 4 0 1 1-1.33 7.76 5.96 5.96 0 0 0 0-7.52C12.1.1 12.53 0 13 0z"}})]):t._e()}),[],!1,null,null,null).exports},3669:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});const a={inheritAttrs:!1,props:{id:{type:String,default:function(){return"select-input-".concat(this._uid)}},value:[String,Number,Boolean],label:String,error:String},data:function(){return{selected:this.value}},watch:{selected:function(t){this.$emit("input",t)}},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()}}};const n=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.label?s("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),s("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"input",staticClass:"form-select",class:{error:t.error},attrs:{id:t.id},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected=e.target.multiple?s:s[0]}}},"select",t.$attrs,!1),[t._t("default")],2),t._v(" "),t.error?s("div",{staticClass:"form-error"},[t._v(t._s(t.error))]):t._e()])}),[],!1,null,null,null).exports},1900:(t,e,s)=>{"use strict";function a(t,e,s,a,n,i,r,o){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),a&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=c):n&&(c=o?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(t,e){return c.call(e),d(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}s.d(e,{Z:()=>a})}}]);
\ No newline at end of file
(self.webpackChunk=self.webpackChunk||[]).push([[568],{2568:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(5007),n=s(3669),r=s(1100);const i={components:{Icon:a.Z,SelectInput:n.Z,LoadingButton:r.Z},props:{campaigns:Array,token:Object},data:function(){return{campaign_id:null}},watch:{},mounted:function(){},methods:{add:function(){this.campaign_id&&this.$emit("add",this.campaign_id)},enabled:function(t,e){this.$emit("enabled",t,e)},destroy:function(t){this.$emit("delete",t)}}};const o=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h2",{staticClass:"mt-12 font-bold text-2xl"},[t._v("Campaigns")]),t._v(" "),t.campaigns.length?s("div",{staticClass:"mt-4 flex flex-wrap"},[s("select-input",{staticClass:"pr-6",attrs:{readonly:t.campaign_id},model:{value:t.campaign_id,callback:function(e){t.campaign_id=e},expression:"campaign_id"}},t._l(t.campaigns,(function(e){return s("option",{domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),0),t._v(" "),s("button",{staticClass:"btn-indigo hover:underline",attrs:{tabindex:"-1",type:"button"},on:{click:t.add}},[t._v("\n Add\n ")])],1):t._e(),t._v(" "),s("div",{staticClass:"mt-4 flex flex-wrap"}),t._v(" "),s("div",{staticClass:"mt-6 bg-white rounded shadow overflow-x-auto"},[s("table",{staticClass:"w-full whitespace-nowrap"},[t._m(0),t._v(" "),t._l(t.token.campaigns,(function(e){return s("tr",{key:e.id,staticClass:"hover:bg-gray-100 focus-within:bg-gray-100"},[s("td",{staticClass:"border-t px-6 py-3"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),s("td",{staticClass:"border-t px-6 py-3"},[s("input",{attrs:{id:"campaign-enabled-"+e.id,type:"checkbox"},domProps:{checked:e.enabled},on:{change:function(s){return t.enabled(e.id,!e.enabled)}}}),t._v(" "),s("label",{attrs:{for:"campaign-enabled-"+e.id}},[t._v("Enabled")])]),t._v(" "),s("td",{staticClass:"border-t w-px"},[s("div",{staticClass:"px-6 py-4"},[s("button",{staticClass:"px-4 flex items-center",attrs:{tabindex:"-1"},on:{click:function(s){return t.destroy(e.id)}}},[s("icon",{staticClass:"block w-6 h-6 fill-gray-400",attrs:{name:"trash"}})],1)])])])})),t._v(" "),0===t.token.campaigns.length?s("tr",[s("td",{staticClass:"border-t px-6 py-4",attrs:{colspan:"5"}},[t._v("No campaigns found.")])]):t._e()],2)])])}),[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",{staticClass:"text-left font-bold"},[s("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Name")]),t._v(" "),s("th",{staticClass:"px-6 pt-6 pb-4"},[t._v("Action")])])}],!1,null,null,null).exports},5007:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});const a={props:{name:String}};const n=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return"apple"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[s("g",{attrs:{"fill-rule":"nonzero"}},[s("path",{attrs:{d:"M46.173 19.967C49.927-1.838 19.797-.233 14.538.21c-.429.035-.648.4-.483.8 2.004 4.825 14.168 31.66 32.118 18.957zm13.18 1.636c1.269-.891 1.35-1.614.047-2.453l-2.657-1.71c-.94-.607-1.685-.606-2.532.129-5.094 4.42-7.336 9.18-8.211 15.24 1.597.682 3.55.79 5.265.328 1.298-4.283 3.64-8.412 8.088-11.534z"}}),s("path",{attrs:{d:"M88.588 67.75c9.65-27.532-13.697-45.537-35.453-32.322-1.84 1.118-4.601 1.118-6.441 0-21.757-13.215-45.105 4.79-35.454 32.321 5.302 15.123 17.06 39.95 37.295 29.995.772-.38 1.986-.38 2.758 0 20.235 9.955 31.991-14.872 37.295-29.995z"}})])]):"book"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M6 4H5a1 1 0 1 1 0-2h11V1a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5a1 1 0 0 0-1-1h-7v8l-2-2-2 2V4z"}})]):"cheveron-down"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})]):"cheveron-right"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("polygon",{attrs:{points:"12.95 10.707 13.657 10 8 4.343 6.586 5.757 10.828 10 6.586 14.243 8 15.657 12.95 10.707"}})]):"dashboard"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64l3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z"}})]):"location"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M10 20S3 10.87 3 7a7 7 0 1 1 14 0c0 3.87-7 13-7 13zm0-11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}})]):"office"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M7 0h86v100H57.108V88.418H42.892V100H7V0zm9 64h11v15H16V64zm57 0h11v15H73V64zm-19 0h11v15H54V64zm-19 0h11v15H35V64zM16 37h11v15H16V37zm57 0h11v15H73V37zm-19 0h11v15H54V37zm-19 0h11v15H35V37zM16 11h11v15H16V11zm57 0h11v15H73V11zm-19 0h11v15H54V11zm-19 0h11v15H35V11z"}})]):"printer"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z"}})]):"shopping-cart"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M4 2h16l-3 9H4a1 1 0 1 0 0 2h13v2H4a3 3 0 0 1 0-6h.33L3 5 2 2H0V0h3a1 1 0 0 1 1 1v1zm1 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})]):"store-front"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M18 9.87V20H2V9.87a4.25 4.25 0 0 0 3-.38V14h10V9.5a4.26 4.26 0 0 0 3 .37zM3 0h4l-.67 6.03A3.43 3.43 0 0 1 3 9C1.34 9 .42 7.73.95 6.15L3 0zm5 0h4l.7 6.3c.17 1.5-.91 2.7-2.42 2.7h-.56A2.38 2.38 0 0 1 7.3 6.3L8 0zm5 0h4l2.05 6.15C19.58 7.73 18.65 9 17 9a3.42 3.42 0 0 1-3.33-2.97L13 0z"}})]):"trash"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"}})]):"users"===t.name?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M7 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1c2.15 0 4.2.4 6.1 1.09L12 16h-1.25L10 20H4l-.75-4H2L.9 10.09A17.93 17.93 0 0 1 7 9zm8.31.17c1.32.18 2.59.48 3.8.92L18 16h-1.25L16 20h-3.96l.37-2h1.25l1.65-8.83zM13 0a4 4 0 1 1-1.33 7.76 5.96 5.96 0 0 0 0-7.52C12.1.1 12.53 0 13 0z"}})]):t._e()}),[],!1,null,null,null).exports},1100:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});const a={props:{loading:Boolean}};const n=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("button",{staticClass:"flex items-center",attrs:{disabled:t.loading}},[t.loading?s("div",{staticClass:"btn-spinner mr-2"}):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports},3669:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});const a={inheritAttrs:!1,props:{id:{type:String,default:function(){return"select-input-".concat(this._uid)}},value:[String,Number,Boolean],label:String,error:String},data:function(){return{selected:this.value}},watch:{selected:function(t){this.$emit("input",t)}},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()}}};const n=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.label?s("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),s("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"input",staticClass:"form-select",class:{error:t.error},attrs:{id:t.id},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected=e.target.multiple?s:s[0]}}},"select",t.$attrs,!1),[t._t("default")],2),t._v(" "),t.error?s("div",{staticClass:"form-error"},[t._v(t._s(t.error))]):t._e()])}),[],!1,null,null,null).exports},1900:(t,e,s)=>{"use strict";function a(t,e,s,a,n,r,i,o){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=s,c._compiled=!0),a&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):n&&(l=o?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}s.d(e,{Z:()=>a})}}]);
\ No newline at end of file
This diff could not be displayed because it is too large.
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!