https://www.maka.im/mk-web-store-v7/_next/static/chunks/pages/mobile/prompt-apps-c3600df322c78159.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7506],{98093:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobile/prompt-apps",function(){return r(94395)}])},94395:function(e,t,r){"use strict";r.r(t),r.d(t,{PromptAppEntryContainer:function(){return s},default:function(){return Prompt}});var n=r(82729),o=r(85893);r(95301),r(67294),r(46652),r(55857),r(8341);var i=r(39332);r(58732),r(34613),r(13886),r(89168);var a=r(28833);r(91265),r(39892);var c=r(77372);function _templateObject(){let e=(0,n._)(["\n background-repeat: no-repeat;\n background-size: contain;\n min-height: 100vh;\n position: relative;\n display: flex;\n flex-direction: column;\n .no_select {\n user-select: none;\n }\n &.green {\n background-image: url(https://res.maka.im/cdn/webstore7/assets/app/preschool/home_bg_v2.png);\n background-color: #f5f5f5;\n }\n &.red {\n background-color: #eef1f5;\n background-image: url(https://res.maka.im/cdn/webstore7/assets/app/gov/%E6%94%BF%E5%AE%A3bg.png);\n }\n\n &.yellow {\n background-color: #eef1f5;\n background-image: url(https://res.maka.im/cdn/webstore7/assets/app/education/prompt_bg.png);\n }\n"]);return _templateObject=function(){return e},e}let s=a.default.div(_templateObject());function Prompt(){let e=(0,i.useSearchParams)();return decodeURIComponent(e.get("appid")||""),(0,o.jsx)(c.default,{type:"writing"})}},34613:function(e,t,r){"use strict";r.d(t,{d:function(){return f}});var n=r(43651),o=r.n(n),i=r(39892),a=r(98253),c=r(68949),s=r(13886);let u=new a.DebounceClass,l={},setContainerMountCache=e=>{l[e]=!0},isContainerMount=e=>!!l[e];(0,a.random)(25).toUpperCase();let getPlatform=()=>(0,a.isPc)()?"web":(0,a.isMakaAppAndroid)()?"android":(0,a.isMakaAppIOS)()?"ios":"wap",getAppVersion=()=>{let e=(0,s.rhL)();return"".concat(e,"_").concat({preschool:"1.0.9"}[e]||"1.0.0")},f=new class{getBaseInfo(){var e,t;let r="",n="";return r=null!==(e=sessionStorage.getItem("source_type"))&&void 0!==e?e:"",n=null!==(t=sessionStorage.getItem("source_id"))&&void 0!==t?t:"",{uid:String((0,s.sqP)()),platform:getPlatform(),distinct_id:"",device_id:"",event_id:(0,a.random)(25).toUpperCase(),is_login:"",ab_test:"",source_type:r,source_id:n,version:getAppVersion()}}track_pageview(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{location:t,parent:r}=window,n=t!==r.location?document.referrer:document.location.href,o=Object.assign({event_type:"page_view",title:document.title,url:document.location.href,referrer:n,pageview_event_id:"",ref_page_inst_id:"",ref_object_type:"",ref_object_id:"",ref_object_inst_id:"",ref_event_id:"",source_type:"",source_id:""},e);this.track(o)}track_click(e){let t=Object.assign(e,{event_type:"click"});this.track(t,!0)}track_show(e){let t=Object.assign(e,{event_type:"show"});this.track(t)}track_log(e){let t=this.mergeLoggerObj(e,"editor_log");this.track(t)}track_search(e){let t=Object.assign(e,{event_type:"search"});this.track(t,!0)}track_success(e){let{no_save:t}=(0,a.queryToObj)();if(t)return;let r=Object.assign(e,{event_type:"success"});this.track(r)}constructor(){var e=this;this.handleMkTrackerMount=e=>{e.object_inst_id&&!isContainerMount(e.object_inst_id)&&(this.track_show(e),setContainerMountCache(e.object_inst_id))},this.handleElemClickDebounce=e=>{u.exec(()=>this.handleElemClick(e),100)},this.handleElemClick=e=>{var t;let r=e.target,n=[r,r.parentElement,null===(t=r.parentElement)||void 0===t?void 0:t.parentElement].filter(e=>!!e),o=n.find(e=>"true"===e.dataset.tracker);if(o){let{dataset:e}=o;try{let t=JSON.parse(e.behavior||"");Object.keys(t).length>0&&this.track_click(t)}catch(e){}}},this.track=function(t){var r;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.parent_id||(t.parent_id=t.page_id),t.parent_type||(t.parent_type=t.page_type),t.parent_inst_id||(t.parent_inst_id=t.page_inst_id);let{parent_page_type:o,ref_page_id:i,hotword_floor_word_btn:c,page_inst_id:s}=(0,a.queryToObj)();!t.parent_page_type&&o&&(t.parent_page_type=o),!t.ref_page_id&&i&&(t.ref_page_id=decodeURIComponent(i)),!t.hotword_floor_word_btn&&c&&(t.hotword_floor_word_btn=decodeURIComponent(c)),!t.page_inst_id&&s&&(t.page_inst_id=decodeURIComponent(s)),null===(r=e._logger)||void 0===r||r.track(t,n)},this.mergeLoggerObj=(e,t)=>{let r=this.getBaseInfo();return Object.keys(e).forEach(t=>{let n=e[t];"string"==typeof n||"number"==typeof n?r[t]=n:r[t]=JSON.stringify((0,c.toJS)(n))}),r.event_type=t,r};let t=(0,a.queryToObj)();
1t.source_type&&t.source_id&&(sessionStorage.setItem("source_type",t.source_type),sessionStorage.setItem("source_id",t.source_id)),sessionStorage.getItem("source_type"),sessionStorage.getItem("source_id");let r=(0,i.getCurrEnv)(),n=(0,s.rhL)();this._logger=new(o())({project:n?"".concat(n,"-web-store"):"mk_web_store",version:"7.0.0",env:"prod"===r||"staging"===r?"prod":"test",baseInfo:this.getBaseInfo}),a.EventEmitter.on("mkTrackerMount",this.handleMkTrackerMount);try{window.addEventListener("click",this.handleElemClickDebounce,!1)}catch(e){}}}},11163:function(e,t,r){e.exports=r(59974)},30907:function(e,t,r){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return _arrayLikeToArray}})},83878:function(e,t,r){"use strict";function _arrayWithHoles(e){if(Array.isArray(e))return e}r.d(t,{Z:function(){return _arrayWithHoles}})},15671:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return _classCallCheck}})},43144:function(e,t,r){"use strict";r.d(t,{Z:function(){return _createClass}});var n=r(83997);function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,r){"use strict";r.d(t,{Z:function(){return _defineProperty}});var n=r(83997);function _defineProperty(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},61120:function(e,t,r){"use strict";function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,{Z:function(){return _getPrototypeOf}})},60136:function(e,t,r){"use strict";r.d(t,{Z:function(){return _inherits}});var n=r(89611);function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.Z)(e,t)}},59199:function(e,t,r){"use strict";function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return _iterableToArray}})},25267:function(e,t,r){"use strict";function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return _nonIterableRest}})},82963:function(e,t,r){"use strict";r.d(t,{Z:function(){return _possibleConstructorReturn}});var n=r(71002),o=r(97326);function _possibleConstructorReturn(e,t){if(t&&("object"==(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},97685:function(e,t,r){"use strict";r.d(t,{Z:function(){return _slicedToArray}});var n=r(83878),o=r(40181),i=r(25267);function _slicedToArray(e,t){return(0,n.Z)(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},74902:function(e,t,r){"use strict";r.d(t,{Z:function(){return _toConsumableArray}});var n=r(30907),o=r(59199),i=r(40181);function _toConsumableArray(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},83997:function(e,t,r){"use strict";r.d(t,{Z:function(){return toPropertyKey}});var n=r(71002);function toPropertyKey(e){var t=function(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.Z)(t)?t:t+""}},71002:function(e,t,r){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return _typeof}})},40181:function(e,t,r){"use strict";r.d(t,{Z:function(){return _unsupportedIterableToArray}});var n=r(30907);function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},function(e){e.O(0,[461,1466,9019,3135,965,1758,2116,9110,6937,2824,4610,5253,9323,5713,5199,9483,4913,3976,3443,5727,9776,2512,9259,2103,9774,2888,179],function(){return e(e.s=98093)}),_N_E=e.O()}]);
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.