UNPKG

@nethesis/phone-island

Version:
3 lines (2 loc) 806 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../node_modules/tslib/tslib.es6.js"),e=require("../node_modules/@rematch/core/dist/core.esm.js"),u={url:"",onlyQueues:!1,hasValidUrl:!1,openParamUrlType:"never",throughTrunk:!1},n=e.createModel()({state:u,reducers:{setParamUrl:function(r,e){return{url:e.url||"",onlyQueues:e.onlyQueues||!1,hasValidUrl:e.hasValidUrl||!1,openParamUrlType:e.openParamUrlType||r.openParamUrlType,throughTrunk:void 0!==e.throughTrunk?e.throughTrunk:r.throughTrunk}},setOpenParamUrlType:function(e,u){return r.__assign(r.__assign({},e),{openParamUrlType:u})},setThroughTrunk:function(e,u){return r.__assign(r.__assign({},e),{throughTrunk:u})},reset:function(){return r.__assign({},u)}}});exports.paramUrl=n; //# sourceMappingURL=paramUrl.js.map